@taiga-ui/legacy 4.0.0-rc.1

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 (632) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +22 -0
  3. package/classes/abstract-native-select.d.ts +17 -0
  4. package/classes/abstract-textfield-host.d.ts +19 -0
  5. package/classes/control.d.ts +58 -0
  6. package/classes/index.d.ts +8 -0
  7. package/classes/interactive.d.ts +35 -0
  8. package/classes/multiple-control.d.ts +8 -0
  9. package/classes/named-day.d.ts +8 -0
  10. package/classes/nullable-control.d.ts +7 -0
  11. package/classes/stringifiable-item.d.ts +10 -0
  12. package/components/arrow/arrow.component.d.ts +16 -0
  13. package/components/arrow/arrow.options.d.ts +13 -0
  14. package/components/arrow/arrow.providers.d.ts +14 -0
  15. package/components/arrow/index.d.ts +3 -0
  16. package/components/combo-box/combo-box-strict.directive.d.ts +8 -0
  17. package/components/combo-box/combo-box.component.d.ts +47 -0
  18. package/components/combo-box/combo-box.directive.d.ts +9 -0
  19. package/components/combo-box/combo-box.module.d.ts +16 -0
  20. package/components/combo-box/index.d.ts +4 -0
  21. package/components/index.d.ts +31 -0
  22. package/components/input/index.d.ts +3 -0
  23. package/components/input/input.component.d.ts +27 -0
  24. package/components/input/input.directive.d.ts +8 -0
  25. package/components/input/input.module.d.ts +11 -0
  26. package/components/input-copy/index.d.ts +4 -0
  27. package/components/input-copy/input-copy.component.d.ts +30 -0
  28. package/components/input-copy/input-copy.directive.d.ts +8 -0
  29. package/components/input-copy/input-copy.module.d.ts +15 -0
  30. package/components/input-copy/input-copy.options.d.ts +14 -0
  31. package/components/input-date/index.d.ts +3 -0
  32. package/components/input-date/input-date.component.d.ts +61 -0
  33. package/components/input-date/input-date.directive.d.ts +15 -0
  34. package/components/input-date/input-date.module.d.ts +20 -0
  35. package/components/input-date/native-date/native-date.component.d.ts +11 -0
  36. package/components/input-date-multi/index.d.ts +2 -0
  37. package/components/input-date-multi/input-date-multi.component.d.ts +66 -0
  38. package/components/input-date-multi/input-date-multi.module.d.ts +20 -0
  39. package/components/input-date-range/index.d.ts +3 -0
  40. package/components/input-date-range/input-date-range.component.d.ts +63 -0
  41. package/components/input-date-range/input-date-range.directive.d.ts +12 -0
  42. package/components/input-date-range/input-date-range.module.d.ts +18 -0
  43. package/components/input-date-time/index.d.ts +3 -0
  44. package/components/input-date-time/input-date-time.component.d.ts +77 -0
  45. package/components/input-date-time/input-date-time.directive.d.ts +13 -0
  46. package/components/input-date-time/input-date-time.module.d.ts +19 -0
  47. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +9 -0
  48. package/components/input-month/index.d.ts +3 -0
  49. package/components/input-month/input-month.component.d.ts +41 -0
  50. package/components/input-month/input-month.directive.d.ts +15 -0
  51. package/components/input-month/input-month.module.d.ts +15 -0
  52. package/components/input-month-range/index.d.ts +3 -0
  53. package/components/input-month-range/input-month-range.component.d.ts +35 -0
  54. package/components/input-month-range/input-month-range.directive.d.ts +15 -0
  55. package/components/input-month-range/input-month-range.module.d.ts +14 -0
  56. package/components/input-number/index.d.ts +4 -0
  57. package/components/input-number/input-number.component.d.ts +56 -0
  58. package/components/input-number/input-number.directive.d.ts +12 -0
  59. package/components/input-number/input-number.module.d.ts +14 -0
  60. package/components/input-number/input-number.options.d.ts +17 -0
  61. package/components/input-password/index.d.ts +4 -0
  62. package/components/input-password/input-password.component.d.ts +30 -0
  63. package/components/input-password/input-password.directive.d.ts +12 -0
  64. package/components/input-password/input-password.module.d.ts +16 -0
  65. package/components/input-password/input-password.options.d.ts +13 -0
  66. package/components/input-phone/index.d.ts +4 -0
  67. package/components/input-phone/input-phone.component.d.ts +48 -0
  68. package/components/input-phone/input-phone.directive.d.ts +13 -0
  69. package/components/input-phone/input-phone.module.d.ts +12 -0
  70. package/components/input-phone/input-phone.options.d.ts +12 -0
  71. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +9 -0
  72. package/components/input-phone/utils/create-phone-mask-expression.d.ts +7 -0
  73. package/components/input-phone/utils/index.d.ts +2 -0
  74. package/components/input-phone-international/index.d.ts +3 -0
  75. package/components/input-phone-international/input-phone-international.component.d.ts +38 -0
  76. package/components/input-phone-international/input-phone-international.options.d.ts +12 -0
  77. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
  78. package/components/input-range/index.d.ts +2 -0
  79. package/components/input-range/input-range.component.d.ts +52 -0
  80. package/components/input-range/input-range.module.d.ts +15 -0
  81. package/components/input-slider/index.d.ts +2 -0
  82. package/components/input-slider/input-slider.component.d.ts +38 -0
  83. package/components/input-slider/input-slider.module.d.ts +14 -0
  84. package/components/input-tag/index.d.ts +3 -0
  85. package/components/input-tag/input-tag.component.d.ts +94 -0
  86. package/components/input-tag/input-tag.module.d.ts +18 -0
  87. package/components/input-tag/input-tag.options.d.ts +13 -0
  88. package/components/input-time/index.d.ts +4 -0
  89. package/components/input-time/input-time.component.d.ts +60 -0
  90. package/components/input-time/input-time.directive.d.ts +13 -0
  91. package/components/input-time/input-time.module.d.ts +19 -0
  92. package/components/input-time/input-time.options.d.ts +20 -0
  93. package/components/input-time/native-time/native-time.component.d.ts +12 -0
  94. package/components/input-year/index.d.ts +3 -0
  95. package/components/input-year/input-year.component.d.ts +32 -0
  96. package/components/input-year/input-year.directive.d.ts +10 -0
  97. package/components/input-year/input-year.module.d.ts +14 -0
  98. package/components/island/index.d.ts +1 -0
  99. package/components/island/island.directive.d.ts +16 -0
  100. package/components/multi-select/hide-selected.pipe.d.ts +11 -0
  101. package/components/multi-select/index.d.ts +10 -0
  102. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +23 -0
  103. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +8 -0
  104. package/components/multi-select/multi-select.component.d.ts +65 -0
  105. package/components/multi-select/multi-select.directive.d.ts +14 -0
  106. package/components/multi-select/multi-select.module.d.ts +27 -0
  107. package/components/multi-select/multi-select.options.d.ts +13 -0
  108. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +9 -0
  109. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +8 -0
  110. package/components/multi-select/native-multi-select/native-multi-select.d.ts +11 -0
  111. package/components/multi-select-option/index.d.ts +2 -0
  112. package/components/multi-select-option/multi-select-option.component.d.ts +9 -0
  113. package/components/multi-select-option/multi-select-option.module.d.ts +9 -0
  114. package/components/primitive-textfield/index.d.ts +7 -0
  115. package/components/primitive-textfield/primitive-textfield-options.d.ts +22 -0
  116. package/components/primitive-textfield/primitive-textfield-types.d.ts +11 -0
  117. package/components/primitive-textfield/primitive-textfield.component.d.ts +68 -0
  118. package/components/primitive-textfield/primitive-textfield.directive.d.ts +10 -0
  119. package/components/primitive-textfield/primitive-textfield.module.d.ts +17 -0
  120. package/components/primitive-textfield/textfield/textfield.component.d.ts +13 -0
  121. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +22 -0
  122. package/components/select/index.d.ts +6 -0
  123. package/components/select/native-select/native-select-group.component.d.ts +13 -0
  124. package/components/select/native-select/native-select.component.d.ts +12 -0
  125. package/components/select/select.component.d.ts +40 -0
  126. package/components/select/select.directive.d.ts +12 -0
  127. package/components/select/select.module.d.ts +20 -0
  128. package/components/select/select.options.d.ts +12 -0
  129. package/components/select-option/index.d.ts +2 -0
  130. package/components/select-option/select-option.component.d.ts +27 -0
  131. package/components/select-option/select-option.module.d.ts +10 -0
  132. package/components/sheet/components/sheet/sheet.component.d.ts +31 -0
  133. package/components/sheet/components/sheet/sheet.providers.d.ts +2 -0
  134. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +10 -0
  135. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +14 -0
  136. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +15 -0
  137. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +14 -0
  138. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +6 -0
  139. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +14 -0
  140. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +17 -0
  141. package/components/sheet/index.d.ts +14 -0
  142. package/components/sheet/sheet-options.d.ts +24 -0
  143. package/components/sheet/sheet-tokens.d.ts +15 -0
  144. package/components/sheet/sheet.d.ts +19 -0
  145. package/components/sheet/sheet.directive.d.ts +16 -0
  146. package/components/sheet/sheet.module.d.ts +23 -0
  147. package/components/sheet/sheet.service.d.ts +16 -0
  148. package/components/svg/content-processor.d.ts +16 -0
  149. package/components/svg/deprecated-icons.d.ts +1 -0
  150. package/components/svg/index.d.ts +5 -0
  151. package/components/svg/svg-options.d.ts +22 -0
  152. package/components/svg/svg.component.d.ts +43 -0
  153. package/components/svg/svg.service.d.ts +21 -0
  154. package/components/table-bar/index.d.ts +5 -0
  155. package/components/table-bar/table-bar.component.d.ts +13 -0
  156. package/components/table-bar/table-bar.directive.d.ts +7 -0
  157. package/components/table-bar/table-bar.options.d.ts +14 -0
  158. package/components/table-bar/table-bars-host.component.d.ts +6 -0
  159. package/components/table-bar/table-bars.service.d.ts +10 -0
  160. package/components/tag/index.d.ts +3 -0
  161. package/components/tag/tag.component.d.ts +40 -0
  162. package/components/tag/tag.module.d.ts +12 -0
  163. package/components/tag/tag.options.d.ts +15 -0
  164. package/components/textarea/index.d.ts +3 -0
  165. package/components/textarea/textarea.component.d.ts +50 -0
  166. package/components/textarea/textarea.directive.d.ts +8 -0
  167. package/components/textarea/textarea.module.d.ts +17 -0
  168. package/components/tooltip/index.d.ts +2 -0
  169. package/components/tooltip/tooltip.component.d.ts +12 -0
  170. package/components/tooltip/tooltip.module.d.ts +12 -0
  171. package/directives/index.d.ts +5 -0
  172. package/directives/legacy-dropdown-open-monitor/index.d.ts +1 -0
  173. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +9 -0
  174. package/directives/textfield-controller/index.d.ts +14 -0
  175. package/directives/textfield-controller/textfield-appearance.directive.d.ts +8 -0
  176. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +8 -0
  177. package/directives/textfield-controller/textfield-controller.module.d.ts +17 -0
  178. package/directives/textfield-controller/textfield-controller.provider.d.ts +5 -0
  179. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +9 -0
  180. package/directives/textfield-controller/textfield-filler.directive.d.ts +8 -0
  181. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +11 -0
  182. package/directives/textfield-controller/textfield-icon.directive.d.ts +11 -0
  183. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +8 -0
  184. package/directives/textfield-controller/textfield-postfix.directive.d.ts +8 -0
  185. package/directives/textfield-controller/textfield-prefix.directive.d.ts +8 -0
  186. package/directives/textfield-controller/textfield-size.directive.d.ts +9 -0
  187. package/directives/textfield-controller/textfield.controller.d.ts +41 -0
  188. package/directives/textfield-controller/textfield.options.d.ts +15 -0
  189. package/directives/unfinished-validator/index.d.ts +2 -0
  190. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +8 -0
  191. package/directives/unfinished-validator/unfinished.validator.d.ts +4 -0
  192. package/directives/value-accessor/index.d.ts +3 -0
  193. package/directives/value-accessor/value-accessor.directive.d.ts +5 -0
  194. package/directives/value-accessor/value-accessor.module.d.ts +7 -0
  195. package/directives/value-accessor/value-accessor.provider.d.ts +2 -0
  196. package/directives/wrapper/README.md +19 -0
  197. package/directives/wrapper/index.d.ts +2 -0
  198. package/directives/wrapper/wrapper.directive.d.ts +21 -0
  199. package/directives/wrapper/wrapper.module.d.ts +10 -0
  200. package/esm2022/classes/abstract-native-select.mjs +37 -0
  201. package/esm2022/classes/abstract-textfield-host.mjs +37 -0
  202. package/esm2022/classes/control.mjs +175 -0
  203. package/esm2022/classes/index.mjs +9 -0
  204. package/esm2022/classes/interactive.mjs +85 -0
  205. package/esm2022/classes/multiple-control.mjs +18 -0
  206. package/esm2022/classes/named-day.mjs +11 -0
  207. package/esm2022/classes/nullable-control.mjs +15 -0
  208. package/esm2022/classes/stringifiable-item.mjs +13 -0
  209. package/esm2022/classes/taiga-ui-legacy-classes.mjs +5 -0
  210. package/esm2022/components/arrow/arrow.component.mjs +42 -0
  211. package/esm2022/components/arrow/arrow.options.mjs +14 -0
  212. package/esm2022/components/arrow/arrow.providers.mjs +14 -0
  213. package/esm2022/components/arrow/index.mjs +4 -0
  214. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +5 -0
  215. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +29 -0
  216. package/esm2022/components/combo-box/combo-box.component.mjs +176 -0
  217. package/esm2022/components/combo-box/combo-box.directive.mjs +23 -0
  218. package/esm2022/components/combo-box/combo-box.module.mjs +67 -0
  219. package/esm2022/components/combo-box/index.mjs +5 -0
  220. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +5 -0
  221. package/esm2022/components/index.mjs +32 -0
  222. package/esm2022/components/input/index.mjs +4 -0
  223. package/esm2022/components/input/input.component.mjs +89 -0
  224. package/esm2022/components/input/input.directive.mjs +20 -0
  225. package/esm2022/components/input/input.module.mjs +30 -0
  226. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +5 -0
  227. package/esm2022/components/input-copy/index.mjs +5 -0
  228. package/esm2022/components/input-copy/input-copy.component.mjs +103 -0
  229. package/esm2022/components/input-copy/input-copy.directive.mjs +20 -0
  230. package/esm2022/components/input-copy/input-copy.module.mjs +52 -0
  231. package/esm2022/components/input-copy/input-copy.options.mjs +12 -0
  232. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +5 -0
  233. package/esm2022/components/input-date/index.mjs +4 -0
  234. package/esm2022/components/input-date/input-date.component.mjs +217 -0
  235. package/esm2022/components/input-date/input-date.directive.mjs +38 -0
  236. package/esm2022/components/input-date/input-date.module.mjs +71 -0
  237. package/esm2022/components/input-date/native-date/native-date.component.mjs +48 -0
  238. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +5 -0
  239. package/esm2022/components/input-date-multi/index.mjs +3 -0
  240. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +212 -0
  241. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +67 -0
  242. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +5 -0
  243. package/esm2022/components/input-date-range/index.mjs +4 -0
  244. package/esm2022/components/input-date-range/input-date-range.component.mjs +243 -0
  245. package/esm2022/components/input-date-range/input-date-range.directive.mjs +31 -0
  246. package/esm2022/components/input-date-range/input-date-range.module.mjs +67 -0
  247. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +5 -0
  248. package/esm2022/components/input-date-time/index.mjs +4 -0
  249. package/esm2022/components/input-date-time/input-date-time.component.mjs +302 -0
  250. package/esm2022/components/input-date-time/input-date-time.directive.mjs +32 -0
  251. package/esm2022/components/input-date-time/input-date-time.module.mjs +74 -0
  252. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +44 -0
  253. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +5 -0
  254. package/esm2022/components/input-month/index.mjs +4 -0
  255. package/esm2022/components/input-month/input-month.component.mjs +132 -0
  256. package/esm2022/components/input-month/input-month.directive.mjs +41 -0
  257. package/esm2022/components/input-month/input-month.module.mjs +53 -0
  258. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +5 -0
  259. package/esm2022/components/input-month-range/index.mjs +4 -0
  260. package/esm2022/components/input-month-range/input-month-range.component.mjs +120 -0
  261. package/esm2022/components/input-month-range/input-month-range.directive.mjs +47 -0
  262. package/esm2022/components/input-month-range/input-month-range.module.mjs +49 -0
  263. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +5 -0
  264. package/esm2022/components/input-number/index.mjs +5 -0
  265. package/esm2022/components/input-number/input-number.component.mjs +257 -0
  266. package/esm2022/components/input-number/input-number.directive.mjs +33 -0
  267. package/esm2022/components/input-number/input-number.module.mjs +44 -0
  268. package/esm2022/components/input-number/input-number.options.mjs +19 -0
  269. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +5 -0
  270. package/esm2022/components/input-password/index.mjs +5 -0
  271. package/esm2022/components/input-password/input-password.component.mjs +78 -0
  272. package/esm2022/components/input-password/input-password.directive.mjs +30 -0
  273. package/esm2022/components/input-password/input-password.module.mjs +56 -0
  274. package/esm2022/components/input-password/input-password.options.mjs +12 -0
  275. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +5 -0
  276. package/esm2022/components/input-phone/index.mjs +5 -0
  277. package/esm2022/components/input-phone/input-phone.component.mjs +217 -0
  278. package/esm2022/components/input-phone/input-phone.directive.mjs +33 -0
  279. package/esm2022/components/input-phone/input-phone.module.mjs +44 -0
  280. package/esm2022/components/input-phone/input-phone.options.mjs +14 -0
  281. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +5 -0
  282. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +41 -0
  283. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +17 -0
  284. package/esm2022/components/input-phone/utils/index.mjs +3 -0
  285. package/esm2022/components/input-phone-international/index.mjs +4 -0
  286. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +181 -0
  287. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +13 -0
  288. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +5 -0
  289. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +7 -0
  290. package/esm2022/components/input-range/index.mjs +3 -0
  291. package/esm2022/components/input-range/input-range.component.mjs +203 -0
  292. package/esm2022/components/input-range/input-range.module.mjs +51 -0
  293. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +5 -0
  294. package/esm2022/components/input-slider/index.mjs +3 -0
  295. package/esm2022/components/input-slider/input-slider.component.mjs +150 -0
  296. package/esm2022/components/input-slider/input-slider.module.mjs +44 -0
  297. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +5 -0
  298. package/esm2022/components/input-tag/index.mjs +4 -0
  299. package/esm2022/components/input-tag/input-tag.component.mjs +415 -0
  300. package/esm2022/components/input-tag/input-tag.module.mjs +63 -0
  301. package/esm2022/components/input-tag/input-tag.options.mjs +14 -0
  302. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +5 -0
  303. package/esm2022/components/input-time/index.mjs +5 -0
  304. package/esm2022/components/input-time/input-time.component.mjs +275 -0
  305. package/esm2022/components/input-time/input-time.directive.mjs +35 -0
  306. package/esm2022/components/input-time/input-time.module.mjs +67 -0
  307. package/esm2022/components/input-time/input-time.options.mjs +22 -0
  308. package/esm2022/components/input-time/native-time/native-time.component.mjs +67 -0
  309. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +5 -0
  310. package/esm2022/components/input-year/index.mjs +4 -0
  311. package/esm2022/components/input-year/input-year.component.mjs +107 -0
  312. package/esm2022/components/input-year/input-year.directive.mjs +27 -0
  313. package/esm2022/components/input-year/input-year.module.mjs +49 -0
  314. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +5 -0
  315. package/esm2022/components/island/index.mjs +2 -0
  316. package/esm2022/components/island/island.directive.mjs +74 -0
  317. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +5 -0
  318. package/esm2022/components/multi-select/hide-selected.pipe.mjs +43 -0
  319. package/esm2022/components/multi-select/index.mjs +11 -0
  320. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +99 -0
  321. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +65 -0
  322. package/esm2022/components/multi-select/multi-select.component.mjs +204 -0
  323. package/esm2022/components/multi-select/multi-select.directive.mjs +31 -0
  324. package/esm2022/components/multi-select/multi-select.module.mjs +111 -0
  325. package/esm2022/components/multi-select/multi-select.options.mjs +13 -0
  326. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +60 -0
  327. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +56 -0
  328. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +19 -0
  329. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +5 -0
  330. package/esm2022/components/multi-select-option/index.mjs +3 -0
  331. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +25 -0
  332. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +20 -0
  333. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +5 -0
  334. package/esm2022/components/primitive-textfield/index.mjs +8 -0
  335. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +17 -0
  336. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +2 -0
  337. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +247 -0
  338. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +28 -0
  339. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +62 -0
  340. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +5 -0
  341. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +39 -0
  342. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +71 -0
  343. package/esm2022/components/select/index.mjs +7 -0
  344. package/esm2022/components/select/native-select/native-select-group.component.mjs +60 -0
  345. package/esm2022/components/select/native-select/native-select.component.mjs +56 -0
  346. package/esm2022/components/select/select.component.mjs +116 -0
  347. package/esm2022/components/select/select.directive.mjs +29 -0
  348. package/esm2022/components/select/select.module.mjs +83 -0
  349. package/esm2022/components/select/select.options.mjs +12 -0
  350. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +5 -0
  351. package/esm2022/components/select-option/index.mjs +3 -0
  352. package/esm2022/components/select-option/select-option.component.mjs +65 -0
  353. package/esm2022/components/select-option/select-option.module.mjs +21 -0
  354. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +5 -0
  355. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +118 -0
  356. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +42 -0
  357. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +27 -0
  358. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +31 -0
  359. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +46 -0
  360. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +38 -0
  361. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +37 -0
  362. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +51 -0
  363. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +76 -0
  364. package/esm2022/components/sheet/index.mjs +15 -0
  365. package/esm2022/components/sheet/sheet-options.mjs +21 -0
  366. package/esm2022/components/sheet/sheet-tokens.mjs +14 -0
  367. package/esm2022/components/sheet/sheet.directive.mjs +38 -0
  368. package/esm2022/components/sheet/sheet.mjs +2 -0
  369. package/esm2022/components/sheet/sheet.module.mjs +74 -0
  370. package/esm2022/components/sheet/sheet.service.mjs +51 -0
  371. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +5 -0
  372. package/esm2022/components/svg/content-processor.mjs +38 -0
  373. package/esm2022/components/svg/deprecated-icons.mjs +59 -0
  374. package/esm2022/components/svg/index.mjs +6 -0
  375. package/esm2022/components/svg/svg-options.mjs +60 -0
  376. package/esm2022/components/svg/svg.component.mjs +147 -0
  377. package/esm2022/components/svg/svg.service.mjs +64 -0
  378. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +5 -0
  379. package/esm2022/components/table-bar/index.mjs +6 -0
  380. package/esm2022/components/table-bar/table-bar.component.mjs +33 -0
  381. package/esm2022/components/table-bar/table-bar.directive.mjs +21 -0
  382. package/esm2022/components/table-bar/table-bar.options.mjs +16 -0
  383. package/esm2022/components/table-bar/table-bars-host.component.mjs +35 -0
  384. package/esm2022/components/table-bar/table-bars.service.mjs +21 -0
  385. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +5 -0
  386. package/esm2022/components/tag/index.mjs +4 -0
  387. package/esm2022/components/tag/tag.component.mjs +171 -0
  388. package/esm2022/components/tag/tag.module.mjs +38 -0
  389. package/esm2022/components/tag/tag.options.mjs +15 -0
  390. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +5 -0
  391. package/esm2022/components/taiga-ui-legacy-components.mjs +5 -0
  392. package/esm2022/components/textarea/index.mjs +4 -0
  393. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +5 -0
  394. package/esm2022/components/textarea/textarea.component.mjs +189 -0
  395. package/esm2022/components/textarea/textarea.directive.mjs +20 -0
  396. package/esm2022/components/textarea/textarea.module.mjs +64 -0
  397. package/esm2022/components/tooltip/index.mjs +3 -0
  398. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +5 -0
  399. package/esm2022/components/tooltip/tooltip.component.mjs +47 -0
  400. package/esm2022/components/tooltip/tooltip.module.mjs +24 -0
  401. package/esm2022/directives/index.mjs +6 -0
  402. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +2 -0
  403. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +40 -0
  404. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +5 -0
  405. package/esm2022/directives/taiga-ui-legacy-directives.mjs +5 -0
  406. package/esm2022/directives/textfield-controller/index.mjs +15 -0
  407. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +5 -0
  408. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +32 -0
  409. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +25 -0
  410. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +72 -0
  411. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +44 -0
  412. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +25 -0
  413. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +25 -0
  414. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +21 -0
  415. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +21 -0
  416. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +29 -0
  417. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +25 -0
  418. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +25 -0
  419. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +25 -0
  420. package/esm2022/directives/textfield-controller/textfield.controller.mjs +48 -0
  421. package/esm2022/directives/textfield-controller/textfield.options.mjs +14 -0
  422. package/esm2022/directives/unfinished-validator/index.mjs +3 -0
  423. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -0
  424. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +25 -0
  425. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +15 -0
  426. package/esm2022/directives/value-accessor/index.mjs +4 -0
  427. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +5 -0
  428. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +16 -0
  429. package/esm2022/directives/value-accessor/value-accessor.module.mjs +17 -0
  430. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +10 -0
  431. package/esm2022/directives/wrapper/index.mjs +3 -0
  432. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +5 -0
  433. package/esm2022/directives/wrapper/wrapper.directive.mjs +85 -0
  434. package/esm2022/directives/wrapper/wrapper.module.mjs +20 -0
  435. package/esm2022/index.mjs +7 -0
  436. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +50 -0
  437. package/esm2022/pipes/format-phone/index.mjs +2 -0
  438. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +5 -0
  439. package/esm2022/pipes/index.mjs +4 -0
  440. package/esm2022/pipes/iso-to-country-code/index.mjs +2 -0
  441. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +43 -0
  442. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +5 -0
  443. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +5 -0
  444. package/esm2022/pipes/to-country-code/index.mjs +2 -0
  445. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +5 -0
  446. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +73 -0
  447. package/esm2022/taiga-ui-legacy.mjs +5 -0
  448. package/esm2022/tokens/countries-masks.mjs +254 -0
  449. package/esm2022/tokens/focusable-item-accessor.mjs +14 -0
  450. package/esm2022/tokens/fonts-ready.mjs +7 -0
  451. package/esm2022/tokens/icons.mjs +7 -0
  452. package/esm2022/tokens/index.mjs +15 -0
  453. package/esm2022/tokens/is-apple.mjs +9 -0
  454. package/esm2022/tokens/is-chromium.mjs +8 -0
  455. package/esm2022/tokens/is-firefox.mjs +9 -0
  456. package/esm2022/tokens/is-stackblitz.mjs +5 -0
  457. package/esm2022/tokens/month-formatter.mjs +17 -0
  458. package/esm2022/tokens/sanitizer.mjs +6 -0
  459. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +5 -0
  460. package/esm2022/tokens/textfield-appearance.mjs +7 -0
  461. package/esm2022/tokens/textfield-host.mjs +10 -0
  462. package/esm2022/tokens/touch-supported.mjs +5 -0
  463. package/esm2022/tokens/value-accessor.mjs +7 -0
  464. package/esm2022/utils/date-mode-maskito-adapter.mjs +6 -0
  465. package/esm2022/utils/format-phone.mjs +59 -0
  466. package/esm2022/utils/get-border.mjs +20 -0
  467. package/esm2022/utils/get-max-allowed-phone-length.mjs +25 -0
  468. package/esm2022/utils/get-safe-area-size.mjs +17 -0
  469. package/esm2022/utils/icons-path-factory.mjs +14 -0
  470. package/esm2022/utils/index.mjs +14 -0
  471. package/esm2022/utils/is-apple.mjs +6 -0
  472. package/esm2022/utils/is-presumed-html-string.mjs +6 -0
  473. package/esm2022/utils/iso-to-country-code.mjs +15 -0
  474. package/esm2022/utils/not-kz-region.mjs +23 -0
  475. package/esm2022/utils/process-icon.mjs +32 -0
  476. package/esm2022/utils/specific-dropdown-controllers.mjs +6 -0
  477. package/esm2022/utils/status.mjs +2 -0
  478. package/esm2022/utils/taiga-ui-legacy-utils.mjs +5 -0
  479. package/fesm2022/taiga-ui-legacy-classes.mjs +377 -0
  480. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -0
  481. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +73 -0
  482. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -0
  483. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +280 -0
  484. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -0
  485. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +177 -0
  486. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -0
  487. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +277 -0
  488. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -0
  489. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +334 -0
  490. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -0
  491. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +438 -0
  492. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -0
  493. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +358 -0
  494. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -0
  495. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +209 -0
  496. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -0
  497. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +219 -0
  498. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -0
  499. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +344 -0
  500. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -0
  501. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +167 -0
  502. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -0
  503. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +204 -0
  504. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -0
  505. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +355 -0
  506. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -0
  507. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +253 -0
  508. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -0
  509. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +192 -0
  510. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -0
  511. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +488 -0
  512. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -0
  513. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +447 -0
  514. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -0
  515. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +176 -0
  516. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -0
  517. package/fesm2022/taiga-ui-legacy-components-input.mjs +132 -0
  518. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -0
  519. package/fesm2022/taiga-ui-legacy-components-island.mjs +80 -0
  520. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +1 -0
  521. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +47 -0
  522. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -0
  523. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +628 -0
  524. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -0
  525. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +443 -0
  526. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -0
  527. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +88 -0
  528. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -0
  529. package/fesm2022/taiga-ui-legacy-components-select.mjs +323 -0
  530. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -0
  531. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +561 -0
  532. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -0
  533. package/fesm2022/taiga-ui-legacy-components-svg.mjs +356 -0
  534. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -0
  535. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +115 -0
  536. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -0
  537. package/fesm2022/taiga-ui-legacy-components-tag.mjs +225 -0
  538. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -0
  539. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +267 -0
  540. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -0
  541. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +71 -0
  542. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -0
  543. package/fesm2022/taiga-ui-legacy-components.mjs +36 -0
  544. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -0
  545. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +46 -0
  546. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -0
  547. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +365 -0
  548. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -0
  549. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +44 -0
  550. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -0
  551. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +43 -0
  552. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -0
  553. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +107 -0
  554. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -0
  555. package/fesm2022/taiga-ui-legacy-directives.mjs +10 -0
  556. package/fesm2022/taiga-ui-legacy-directives.mjs.map +1 -0
  557. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +56 -0
  558. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -0
  559. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +49 -0
  560. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -0
  561. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +79 -0
  562. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -0
  563. package/fesm2022/taiga-ui-legacy-pipes.mjs +8 -0
  564. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +1 -0
  565. package/fesm2022/taiga-ui-legacy-tokens.mjs +348 -0
  566. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -0
  567. package/fesm2022/taiga-ui-legacy-utils.mjs +235 -0
  568. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -0
  569. package/fesm2022/taiga-ui-legacy.mjs +11 -0
  570. package/fesm2022/taiga-ui-legacy.mjs.map +1 -0
  571. package/index.d.ts +6 -0
  572. package/package.json +303 -0
  573. package/pipes/format-phone/format-phone.pipe.d.ts +34 -0
  574. package/pipes/format-phone/index.d.ts +1 -0
  575. package/pipes/index.d.ts +3 -0
  576. package/pipes/iso-to-country-code/index.d.ts +1 -0
  577. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +29 -0
  578. package/pipes/to-country-code/index.d.ts +1 -0
  579. package/pipes/to-country-code/to-country-code.pipe.d.ts +37 -0
  580. package/styles/mixins/mixins.less +252 -0
  581. package/styles/mixins/mixins.scss +230 -0
  582. package/styles/mixins/textfield.less +315 -0
  583. package/styles/mixins/textfield.scss +306 -0
  584. package/styles/mixins/wrapper.less +65 -0
  585. package/styles/mixins/wrapper.scss +59 -0
  586. package/styles/taiga-ui-local.less +4 -0
  587. package/styles/taiga-ui-local.scss +4 -0
  588. package/styles/taiga-ui-theme.less +15 -0
  589. package/styles/wrapper/accent.less +28 -0
  590. package/styles/wrapper/base.less +44 -0
  591. package/styles/wrapper/floating.less +19 -0
  592. package/styles/wrapper/glass.less +31 -0
  593. package/styles/wrapper/icon.less +53 -0
  594. package/styles/wrapper/mono.less +23 -0
  595. package/styles/wrapper/none.less +5 -0
  596. package/styles/wrapper/opposite.less +33 -0
  597. package/styles/wrapper/outline.less +52 -0
  598. package/styles/wrapper/primary.less +32 -0
  599. package/styles/wrapper/secondary-destructive.less +16 -0
  600. package/styles/wrapper/secondary.less +47 -0
  601. package/styles/wrapper/table.less +82 -0
  602. package/styles/wrapper/textfield.less +80 -0
  603. package/styles/wrapper/whiteblock.less +47 -0
  604. package/tokens/countries-masks.d.ts +7 -0
  605. package/tokens/focusable-item-accessor.d.ts +22 -0
  606. package/tokens/fonts-ready.d.ts +3 -0
  607. package/tokens/icons.d.ts +5 -0
  608. package/tokens/index.d.ts +14 -0
  609. package/tokens/is-apple.d.ts +4 -0
  610. package/tokens/is-chromium.d.ts +4 -0
  611. package/tokens/is-firefox.d.ts +4 -0
  612. package/tokens/is-stackblitz.d.ts +1 -0
  613. package/tokens/month-formatter.d.ts +10 -0
  614. package/tokens/sanitizer.d.ts +6 -0
  615. package/tokens/textfield-appearance.d.ts +5 -0
  616. package/tokens/textfield-host.d.ts +17 -0
  617. package/tokens/touch-supported.d.ts +1 -0
  618. package/tokens/value-accessor.d.ts +7 -0
  619. package/utils/date-mode-maskito-adapter.d.ts +3 -0
  620. package/utils/format-phone.d.ts +29 -0
  621. package/utils/get-border.d.ts +2 -0
  622. package/utils/get-max-allowed-phone-length.d.ts +23 -0
  623. package/utils/get-safe-area-size.d.ts +6 -0
  624. package/utils/icons-path-factory.d.ts +4 -0
  625. package/utils/index.d.ts +13 -0
  626. package/utils/is-apple.d.ts +1 -0
  627. package/utils/is-presumed-html-string.d.ts +1 -0
  628. package/utils/iso-to-country-code.d.ts +12 -0
  629. package/utils/not-kz-region.d.ts +19 -0
  630. package/utils/process-icon.d.ts +1 -0
  631. package/utils/specific-dropdown-controllers.d.ts +1 -0
  632. package/utils/status.d.ts +1 -0
@@ -0,0 +1,348 @@
1
+ import { tuiCreateToken, tuiProvide, tuiCreateTokenFromFactory } from '@taiga-ui/cdk/utils/miscellaneous';
2
+ import { InjectionToken, inject } from '@angular/core';
3
+ import { DOCUMENT } from '@angular/common';
4
+ import { from, EMPTY, shareReplay, map, of } from 'rxjs';
5
+ import { NAVIGATOR, WINDOW } from '@ng-web-apis/common';
6
+ import { tuiIsApple } from '@taiga-ui/legacy/utils';
7
+ import { TuiMonthPipe } from '@taiga-ui/core/pipes/month';
8
+
9
+ /**
10
+ * @deprecated Use new version of {@link https://taiga-ui.dev/components/input-phone-international InputPhoneInternational}.
11
+ * The new version is based on Google Open Source solution {@link https://github.com/google/libphonenumber libphonenumber}.
12
+ * This token (and all other hard-coded values) and related utils are no more required.
13
+ */
14
+ const TUI_COUNTRIES_MASKS = tuiCreateToken({
15
+ AD: '+376###-###',
16
+ AE: '+971-##-###-####',
17
+ AF: '+93##-###-####',
18
+ AG: '+1(268) ###-####',
19
+ AI: '+1(264) ###-####',
20
+ AL: '+355(###) ###-###',
21
+ AM: '+374##-###-###',
22
+ AO: '+244(###) ###-###',
23
+ AR: '+54(###) ####-####',
24
+ AT: '+43(###) ###-####',
25
+ AU: '+61#-####-####',
26
+ AW: '+297###-####',
27
+ AZ: '+994##-###-##-##',
28
+ BA: '+387 ###-####-##',
29
+ BB: '+1(246) ###-####',
30
+ BD: '+880##-###-###',
31
+ BE: '+32(###) ###-###',
32
+ BF: '+226##-##-####',
33
+ BG: '+359(###) ###-###',
34
+ BH: '+973####-####',
35
+ BI: '+257##-##-####',
36
+ BJ: '+229##-##-####',
37
+ BL: '+590 ## ## ## ## ##',
38
+ BM: '+1(441) ###-####',
39
+ BN: '+673###-####',
40
+ BO: '+591#-###-####',
41
+ BQ: '+599-###-####',
42
+ BR: '+55(##) ####-####',
43
+ BS: '+1(242) ###-####',
44
+ BT: '+975#-###-###',
45
+ BW: '+267##-###-###',
46
+ BY: '+375(##) ###-##-##',
47
+ BZ: '+501###-####',
48
+ CA: '+1(###) ###-####',
49
+ CD: '+243(###) ###-###',
50
+ CF: '+236-##-##-####',
51
+ CG: '+242##-###-####',
52
+ CH: '+41##-###-####',
53
+ CI: '+225##-##-###-###',
54
+ CL: '+56#-####-####',
55
+ CM: '+237#####-####',
56
+ CN: '+86(###) ####-####',
57
+ CO: '+57(###) ###-####',
58
+ CR: '+506####-####',
59
+ CU: '+53#-###-####',
60
+ CV: '+238(###) ##-##',
61
+ CW: '+5999-###-####',
62
+ CY: '+357##-###-###',
63
+ CZ: '+420(###) ###-###',
64
+ DE: '+49(###) ###-###-##',
65
+ DJ: '+253##-##-##-##',
66
+ DK: '+45##-##-##-##',
67
+ DM: '+1(767) ###-####',
68
+ DO: '+1(###) ###-####',
69
+ DZ: '+213##-###-####',
70
+ EC: '+593##-###-####',
71
+ EE: '+372####-####',
72
+ EG: '+20(###) ###-####',
73
+ ER: '+291#-###-###',
74
+ ES: '+34(###) ###-###',
75
+ ET: '+251##-###-####',
76
+ FI: '+358(###) ###-##-##',
77
+ FJ: '+679##-#####',
78
+ FK: '+500#####',
79
+ FM: '+691###-####',
80
+ FR: '+33 ## ## ## ## ##',
81
+ GA: '+241##-##-##-##',
82
+ GB: '+44##-####-####',
83
+ GD: '+1(473) ###-####',
84
+ GE: '+995(###) ###-###',
85
+ GF: '+594 ## ## ## ## ##',
86
+ GH: '+233(###) ###-###',
87
+ GI: '+350###-#####',
88
+ GL: '+299##-##-##',
89
+ GM: '+220(###) ##-##',
90
+ GN: '+224##-###-###',
91
+ GP: '+590 ## ## ## ## ##',
92
+ GQ: '+240##-###-####',
93
+ GR: '+30(###) ###-####',
94
+ GT: '+502#-###-####',
95
+ GW: '+245#-######',
96
+ GY: '+592###-####',
97
+ HK: '+852####-####',
98
+ HN: '+504####-####',
99
+ HR: '+385##-###-####',
100
+ HT: '+509##-##-####',
101
+ HU: '+36(###) ###-###',
102
+ ID: '+62(###) ###-##-###',
103
+ IE: '+353(###) ###-###',
104
+ IL: '+972##-###-####',
105
+ IN: '+91(####) ###-###',
106
+ IQ: '+964(###) ###-####',
107
+ IR: '+98(###) ###-####',
108
+ IS: '+354###-####',
109
+ IT: '+39(###) ####-###',
110
+ JM: '+1(876) ###-####',
111
+ JO: '+962#-####-####',
112
+ JP: '+81-##-####-####',
113
+ KE: '+254###-######',
114
+ KG: '+996(###) ###-###',
115
+ KH: '+855##-###-###',
116
+ KM: '+269##-#####',
117
+ KN: '+1(869) ###-####',
118
+ KP: '+850####-#############',
119
+ KR: '+82##-###-####',
120
+ KW: '+965####-####',
121
+ KY: '+1(345) ###-####',
122
+ KZ: '+7(###) ###-##-##',
123
+ LA: '+856##-##-###-###',
124
+ LB: '+961##-###-###',
125
+ LC: '+1(758) ###-####',
126
+ LI: '+423(###) ###-####',
127
+ LK: '+94##-###-####',
128
+ LR: '+231##-###-###',
129
+ LS: '+266#-###-####',
130
+ LT: '+370(###) ##-###',
131
+ LU: '+352(###) ###-###',
132
+ LV: '+371##-###-###',
133
+ LY: '+218##-###-####',
134
+ MA: '+212##-####-###',
135
+ MC: '+377###-###-###',
136
+ MD: '+373####-####',
137
+ ME: '+382##-###-###',
138
+ MF: '+590 ## ## ## ## ##',
139
+ MG: '+261##-##-#####',
140
+ MK: '+389##-###-###',
141
+ ML: '+223##-##-####',
142
+ MM: '+95##-###-###',
143
+ MN: '+976##-##-####',
144
+ MO: '+853####-####',
145
+ MQ: '+596 ## ## ## ## ##',
146
+ MR: '+222##-##-####',
147
+ MS: '+1(664) ###-####',
148
+ MT: '+356####-####',
149
+ MU: '+230####-####',
150
+ MV: '+960###-####',
151
+ MW: '+265#-####-####',
152
+ MX: '+52(###) ###-####',
153
+ MY: '+60(###) ###-###',
154
+ MZ: '+258##-###-###',
155
+ NA: '+264##-###-####',
156
+ NC: '+687 ### ###',
157
+ NE: '+227##-##-####',
158
+ NG: '+234(###) ###-####',
159
+ NI: '+505####-####',
160
+ NL: '+31##-###-####',
161
+ NO: '+47(###) ##-###',
162
+ NP: '+977##-###-###',
163
+ NZ: '+64(###) ###-####',
164
+ OM: '+968##-###-###',
165
+ PA: '+507###-####',
166
+ PE: '+51(###) ###-###',
167
+ PF: '+689 ## ## ## ##',
168
+ PG: '+675(###) ##-###',
169
+ PH: '+63(###) ###-####',
170
+ PK: '+92(###) ###-####',
171
+ PL: '+48(###) ###-###',
172
+ PT: '+351##-###-####',
173
+ PW: '+680###-####',
174
+ PY: '+595(###) ###-###',
175
+ QA: '+974####-####',
176
+ RE: '+262 ## ## ## ## ##',
177
+ RO: '+40##-###-####',
178
+ RS: '+381##-###-####',
179
+ RU: '+7### ###-##-##',
180
+ RW: '+250(###) ###-###',
181
+ SA: '+966#-####-####',
182
+ SB: '+677###-####',
183
+ SC: '+248#-###-###',
184
+ SD: '+249##-###-####',
185
+ SE: '+46##-###-####',
186
+ SG: '+65####-####',
187
+ SH: '+290####',
188
+ SI: '+386##-###-###',
189
+ SK: '+421(###) ###-###',
190
+ SL: '+232##-######',
191
+ SM: '+378####-######',
192
+ SN: '+221##-###-####',
193
+ SO: '+252##-###-###',
194
+ SR: '+597###-####',
195
+ ST: '+239##-#####',
196
+ SV: '+503##-##-####',
197
+ SX: '+1(721) ###-####',
198
+ SY: '+963##-####-###',
199
+ SZ: '+268##-##-####',
200
+ TC: '+1(649) ###-####',
201
+ TD: '+235##-##-##-##',
202
+ TG: '+228##-###-###',
203
+ TH: '+66##-###-####',
204
+ TJ: '+992##-###-####',
205
+ TL: '+670###-#####',
206
+ TM: '+993#-###-####',
207
+ TN: '+216##-###-###',
208
+ TO: '+676#####',
209
+ TR: '+90(###) ###-####',
210
+ TT: '+1(868) ###-####',
211
+ TW: '+886#-####-####',
212
+ TZ: '+255##-###-####',
213
+ UA: '+380(##) ###-##-##',
214
+ UG: '+256(###) ###-###',
215
+ US: '+1(###) ###-####',
216
+ UY: '+598#-###-##-##',
217
+ UZ: '+998##-###-####',
218
+ VC: '+1(784) ###-####',
219
+ VE: '+58(###) ###-####',
220
+ VG: '+1(284)###-####',
221
+ VN: '+84(###) ####-###',
222
+ VU: '+678##-#####',
223
+ WS: '+685##-####',
224
+ XK: '+383##-###-###',
225
+ YE: '+967###-###-###',
226
+ YT: '+262 ## ## ## ## ##',
227
+ ZA: '+27##-###-####',
228
+ ZM: '+260##-###-####',
229
+ ZW: '+263#-######',
230
+ VA: '+39 #### ###-####',
231
+ WF: '+681 ## ##-##',
232
+ VI: '+1(340) ###-####',
233
+ JE: '+44(####) ######',
234
+ AC: '+247###-####',
235
+ TV: '+686###-####',
236
+ TK: '+690###-####',
237
+ TA: '+290###-####',
238
+ SS: '+211### ###-###',
239
+ SJ: '+47 ## ##-##-##',
240
+ PS: '+970 #### ###-###',
241
+ PR: '+1(###) ###-####',
242
+ PM: '+508 ### ##-##-##',
243
+ NU: '+683 ###-####',
244
+ NR: '+674 ###-####',
245
+ NF: '+672##-####',
246
+ MP: '+1(670) ###-####',
247
+ MH: '+692 ###-####',
248
+ KI: '+686 ####-####',
249
+ IO: '+246 ### ####',
250
+ IM: '+44(####) ######',
251
+ GU: '+1(###) ###-###',
252
+ GG: '+44(###) ###-####',
253
+ FO: '+298 ######',
254
+ EH: '+212 #### #####',
255
+ CX: '+61 # ####-####',
256
+ CK: '+682 ## ###',
257
+ CC: '+61 # ####-####',
258
+ AX: '+358 ## ###-####',
259
+ AS: '+1(###) ###-####',
260
+ });
261
+
262
+ /**
263
+ * A component that can be focused
264
+ * @deprecated
265
+ */
266
+ const TUI_FOCUSABLE_ITEM_ACCESSOR = new InjectionToken('[TUI_FOCUSABLE_ITEM_ACCESSOR]');
267
+ /**
268
+ * @deprecated
269
+ */
270
+ function tuiAsFocusableItemAccessor(accessor) {
271
+ return tuiProvide(TUI_FOCUSABLE_ITEM_ACCESSOR, accessor);
272
+ }
273
+
274
+ const TUI_FONTS_READY = new InjectionToken('[TUI_FONTS_READY]', {
275
+ factory: () => from(inject(DOCUMENT).fonts?.ready || EMPTY).pipe(shareReplay({ bufferSize: 1, refCount: false })),
276
+ });
277
+
278
+ /**
279
+ * A key/value dictionary of icon names and src to be defined with TuiSvgService
280
+ * @deprecated
281
+ */
282
+ const TUI_ICONS = tuiCreateToken({});
283
+
284
+ /**
285
+ * Apple(safari/webkit) detection
286
+ */
287
+ const TUI_IS_APPLE = tuiCreateTokenFromFactory(() => tuiIsApple(inject(NAVIGATOR)));
288
+
289
+ /**
290
+ * Chromium browser engine detection
291
+ */
292
+ const TUI_IS_CHROMIUM = tuiCreateTokenFromFactory(() => !!inject(WINDOW).chrome);
293
+
294
+ /**
295
+ * Firefox browser engine detection
296
+ */
297
+ const TUI_IS_FIREFOX = tuiCreateTokenFromFactory(() => typeof inject(WINDOW)
298
+ ?.mozCancelFullScreen !== 'undefined');
299
+
300
+ const TUI_IS_STACKBLITZ = tuiCreateTokenFromFactory(() => inject(WINDOW).location.host.endsWith('stackblitz.io'));
301
+
302
+ /**
303
+ * A function to get localized formatted month
304
+ */
305
+ const TUI_MONTH_FORMATTER = new InjectionToken('[TUI_MONTH_FORMATTER]');
306
+ const TUI_MONTH_FORMATTER_PROVIDER = {
307
+ provide: TUI_MONTH_FORMATTER,
308
+ deps: [TuiMonthPipe],
309
+ useFactory: (pipe) => month => month
310
+ ? pipe
311
+ .transform(month)
312
+ .pipe(map(formatted => `${formatted} ${month.formattedYear}`))
313
+ : of(''),
314
+ };
315
+
316
+ /**
317
+ * A custom Sanitizer to sanitize source before inlining
318
+ */
319
+ const TUI_SANITIZER = new InjectionToken('[TUI_SANITIZER]');
320
+
321
+ /**
322
+ * Appearance for inputs
323
+ * @deprecated use {@link TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} instead
324
+ */
325
+ const TUI_TEXTFIELD_APPEARANCE = tuiCreateToken('textfield');
326
+
327
+ /**
328
+ * An interface to communicate with textfield based controls
329
+ */
330
+ const TUI_TEXTFIELD_HOST = new InjectionToken('[TUI_TEXTFIELD_HOST]');
331
+ function tuiAsTextfieldHost(host) {
332
+ return tuiProvide(TUI_TEXTFIELD_HOST, host);
333
+ }
334
+
335
+ const TUI_TOUCH_SUPPORTED = tuiCreateTokenFromFactory(() => inject(WINDOW).matchMedia('(any-pointer: coarse)').matches);
336
+
337
+ /**
338
+ * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector
339
+ * @deprecated
340
+ */
341
+ const TUI_VALUE_ACCESSOR = new InjectionToken('[TUI_VALUE_ACCESSOR]');
342
+
343
+ /**
344
+ * Generated bundle index. Do not edit.
345
+ */
346
+
347
+ export { TUI_COUNTRIES_MASKS, TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_FONTS_READY, TUI_ICONS, TUI_IS_APPLE, TUI_IS_CHROMIUM, TUI_IS_FIREFOX, TUI_IS_STACKBLITZ, TUI_MONTH_FORMATTER, TUI_MONTH_FORMATTER_PROVIDER, TUI_SANITIZER, TUI_TEXTFIELD_APPEARANCE, TUI_TEXTFIELD_HOST, TUI_TOUCH_SUPPORTED, TUI_VALUE_ACCESSOR, tuiAsFocusableItemAccessor, tuiAsTextfieldHost };
348
+ //# sourceMappingURL=taiga-ui-legacy-tokens.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-legacy-tokens.mjs","sources":["../../../projects/legacy/tokens/countries-masks.ts","../../../projects/legacy/tokens/focusable-item-accessor.ts","../../../projects/legacy/tokens/fonts-ready.ts","../../../projects/legacy/tokens/icons.ts","../../../projects/legacy/tokens/is-apple.ts","../../../projects/legacy/tokens/is-chromium.ts","../../../projects/legacy/tokens/is-firefox.ts","../../../projects/legacy/tokens/is-stackblitz.ts","../../../projects/legacy/tokens/month-formatter.ts","../../../projects/legacy/tokens/sanitizer.ts","../../../projects/legacy/tokens/textfield-appearance.ts","../../../projects/legacy/tokens/textfield-host.ts","../../../projects/legacy/tokens/touch-supported.ts","../../../projects/legacy/tokens/value-accessor.ts","../../../projects/legacy/tokens/taiga-ui-legacy-tokens.ts"],"sourcesContent":["import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {TuiCountryIsoCode} from '@taiga-ui/i18n/enums';\n\n/**\n * @deprecated Use new version of {@link https://taiga-ui.dev/components/input-phone-international InputPhoneInternational}.\n * The new version is based on Google Open Source solution {@link https://github.com/google/libphonenumber libphonenumber}.\n * This token (and all other hard-coded values) and related utils are no more required.\n */\nexport const TUI_COUNTRIES_MASKS = tuiCreateToken<Record<TuiCountryIsoCode, string>>({\n AD: '+376###-###',\n AE: '+971-##-###-####',\n AF: '+93##-###-####',\n AG: '+1(268) ###-####',\n AI: '+1(264) ###-####',\n AL: '+355(###) ###-###',\n AM: '+374##-###-###',\n AO: '+244(###) ###-###',\n AR: '+54(###) ####-####',\n AT: '+43(###) ###-####',\n AU: '+61#-####-####',\n AW: '+297###-####',\n AZ: '+994##-###-##-##',\n BA: '+387 ###-####-##',\n BB: '+1(246) ###-####',\n BD: '+880##-###-###',\n BE: '+32(###) ###-###',\n BF: '+226##-##-####',\n BG: '+359(###) ###-###',\n BH: '+973####-####',\n BI: '+257##-##-####',\n BJ: '+229##-##-####',\n BL: '+590 ## ## ## ## ##',\n BM: '+1(441) ###-####',\n BN: '+673###-####',\n BO: '+591#-###-####',\n BQ: '+599-###-####',\n BR: '+55(##) ####-####',\n BS: '+1(242) ###-####',\n BT: '+975#-###-###',\n BW: '+267##-###-###',\n BY: '+375(##) ###-##-##',\n BZ: '+501###-####',\n CA: '+1(###) ###-####',\n CD: '+243(###) ###-###',\n CF: '+236-##-##-####',\n CG: '+242##-###-####',\n CH: '+41##-###-####',\n CI: '+225##-##-###-###',\n CL: '+56#-####-####',\n CM: '+237#####-####',\n CN: '+86(###) ####-####',\n CO: '+57(###) ###-####',\n CR: '+506####-####',\n CU: '+53#-###-####',\n CV: '+238(###) ##-##',\n CW: '+5999-###-####',\n CY: '+357##-###-###',\n CZ: '+420(###) ###-###',\n DE: '+49(###) ###-###-##',\n DJ: '+253##-##-##-##',\n DK: '+45##-##-##-##',\n DM: '+1(767) ###-####',\n DO: '+1(###) ###-####',\n DZ: '+213##-###-####',\n EC: '+593##-###-####',\n EE: '+372####-####',\n EG: '+20(###) ###-####',\n ER: '+291#-###-###',\n ES: '+34(###) ###-###',\n ET: '+251##-###-####',\n FI: '+358(###) ###-##-##',\n FJ: '+679##-#####',\n FK: '+500#####',\n FM: '+691###-####',\n FR: '+33 ## ## ## ## ##',\n GA: '+241##-##-##-##',\n GB: '+44##-####-####',\n GD: '+1(473) ###-####',\n GE: '+995(###) ###-###',\n GF: '+594 ## ## ## ## ##',\n GH: '+233(###) ###-###',\n GI: '+350###-#####',\n GL: '+299##-##-##',\n GM: '+220(###) ##-##',\n GN: '+224##-###-###',\n GP: '+590 ## ## ## ## ##',\n GQ: '+240##-###-####',\n GR: '+30(###) ###-####',\n GT: '+502#-###-####',\n GW: '+245#-######',\n GY: '+592###-####',\n HK: '+852####-####',\n HN: '+504####-####',\n HR: '+385##-###-####',\n HT: '+509##-##-####',\n HU: '+36(###) ###-###',\n ID: '+62(###) ###-##-###',\n IE: '+353(###) ###-###',\n IL: '+972##-###-####',\n IN: '+91(####) ###-###',\n IQ: '+964(###) ###-####',\n IR: '+98(###) ###-####',\n IS: '+354###-####',\n IT: '+39(###) ####-###',\n JM: '+1(876) ###-####',\n JO: '+962#-####-####',\n JP: '+81-##-####-####',\n KE: '+254###-######',\n KG: '+996(###) ###-###',\n KH: '+855##-###-###',\n KM: '+269##-#####',\n KN: '+1(869) ###-####',\n KP: '+850####-#############',\n KR: '+82##-###-####',\n KW: '+965####-####',\n KY: '+1(345) ###-####',\n KZ: '+7(###) ###-##-##',\n LA: '+856##-##-###-###',\n LB: '+961##-###-###',\n LC: '+1(758) ###-####',\n LI: '+423(###) ###-####',\n LK: '+94##-###-####',\n LR: '+231##-###-###',\n LS: '+266#-###-####',\n LT: '+370(###) ##-###',\n LU: '+352(###) ###-###',\n LV: '+371##-###-###',\n LY: '+218##-###-####',\n MA: '+212##-####-###',\n MC: '+377###-###-###',\n MD: '+373####-####',\n ME: '+382##-###-###',\n MF: '+590 ## ## ## ## ##',\n MG: '+261##-##-#####',\n MK: '+389##-###-###',\n ML: '+223##-##-####',\n MM: '+95##-###-###',\n MN: '+976##-##-####',\n MO: '+853####-####',\n MQ: '+596 ## ## ## ## ##',\n MR: '+222##-##-####',\n MS: '+1(664) ###-####',\n MT: '+356####-####',\n MU: '+230####-####',\n MV: '+960###-####',\n MW: '+265#-####-####',\n MX: '+52(###) ###-####',\n MY: '+60(###) ###-###',\n MZ: '+258##-###-###',\n NA: '+264##-###-####',\n NC: '+687 ### ###',\n NE: '+227##-##-####',\n NG: '+234(###) ###-####',\n NI: '+505####-####',\n NL: '+31##-###-####',\n NO: '+47(###) ##-###',\n NP: '+977##-###-###',\n NZ: '+64(###) ###-####',\n OM: '+968##-###-###',\n PA: '+507###-####',\n PE: '+51(###) ###-###',\n PF: '+689 ## ## ## ##',\n PG: '+675(###) ##-###',\n PH: '+63(###) ###-####',\n PK: '+92(###) ###-####',\n PL: '+48(###) ###-###',\n PT: '+351##-###-####',\n PW: '+680###-####',\n PY: '+595(###) ###-###',\n QA: '+974####-####',\n RE: '+262 ## ## ## ## ##',\n RO: '+40##-###-####',\n RS: '+381##-###-####',\n RU: '+7### ###-##-##',\n RW: '+250(###) ###-###',\n SA: '+966#-####-####',\n SB: '+677###-####',\n SC: '+248#-###-###',\n SD: '+249##-###-####',\n SE: '+46##-###-####',\n SG: '+65####-####',\n SH: '+290####',\n SI: '+386##-###-###',\n SK: '+421(###) ###-###',\n SL: '+232##-######',\n SM: '+378####-######',\n SN: '+221##-###-####',\n SO: '+252##-###-###',\n SR: '+597###-####',\n ST: '+239##-#####',\n SV: '+503##-##-####',\n SX: '+1(721) ###-####',\n SY: '+963##-####-###',\n SZ: '+268##-##-####',\n TC: '+1(649) ###-####',\n TD: '+235##-##-##-##',\n TG: '+228##-###-###',\n TH: '+66##-###-####',\n TJ: '+992##-###-####',\n TL: '+670###-#####',\n TM: '+993#-###-####',\n TN: '+216##-###-###',\n TO: '+676#####',\n TR: '+90(###) ###-####',\n TT: '+1(868) ###-####',\n TW: '+886#-####-####',\n TZ: '+255##-###-####',\n UA: '+380(##) ###-##-##',\n UG: '+256(###) ###-###',\n US: '+1(###) ###-####',\n UY: '+598#-###-##-##',\n UZ: '+998##-###-####',\n VC: '+1(784) ###-####',\n VE: '+58(###) ###-####',\n VG: '+1(284)###-####',\n VN: '+84(###) ####-###',\n VU: '+678##-#####',\n WS: '+685##-####',\n XK: '+383##-###-###',\n YE: '+967###-###-###',\n YT: '+262 ## ## ## ## ##',\n ZA: '+27##-###-####',\n ZM: '+260##-###-####',\n ZW: '+263#-######',\n VA: '+39 #### ###-####',\n WF: '+681 ## ##-##',\n VI: '+1(340) ###-####',\n JE: '+44(####) ######',\n AC: '+247###-####',\n TV: '+686###-####',\n TK: '+690###-####',\n TA: '+290###-####',\n SS: '+211### ###-###',\n SJ: '+47 ## ##-##-##',\n PS: '+970 #### ###-###',\n PR: '+1(###) ###-####',\n PM: '+508 ### ##-##-##',\n NU: '+683 ###-####',\n NR: '+674 ###-####',\n NF: '+672##-####',\n MP: '+1(670) ###-####',\n MH: '+692 ###-####',\n KI: '+686 ####-####',\n IO: '+246 ### ####',\n IM: '+44(####) ######',\n GU: '+1(###) ###-###',\n GG: '+44(###) ###-####',\n FO: '+298 ######',\n EH: '+212 #### #####',\n CX: '+61 # ####-####',\n CK: '+682 ## ###',\n CC: '+61 # ####-####',\n AX: '+358 ## ###-####',\n AS: '+1(###) ###-####',\n});\n","import type {Provider, Type} from '@angular/core';\nimport {InjectionToken} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\n\nexport interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {}\n\n/**\n * Public interface for any focusable component or directive\n */\nexport interface TuiFocusableElementAccessor {\n focused: boolean;\n readonly focusedChange: Observable<boolean>;\n nativeFocusableElement: TuiNativeFocusableElement | null;\n}\n\n/**\n * A component that can be focused\n * @deprecated\n */\nexport const TUI_FOCUSABLE_ITEM_ACCESSOR =\n new InjectionToken<TuiFocusableElementAccessor>('[TUI_FOCUSABLE_ITEM_ACCESSOR]');\n\n/**\n * @deprecated\n */\nexport function tuiAsFocusableItemAccessor(\n accessor: Type<TuiFocusableElementAccessor>,\n): Provider {\n return tuiProvide(TUI_FOCUSABLE_ITEM_ACCESSOR, accessor);\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject, InjectionToken} from '@angular/core';\nimport type {Observable} from 'rxjs';\nimport {EMPTY, from, shareReplay} from 'rxjs';\n\nexport const TUI_FONTS_READY = new InjectionToken<Observable<unknown>>(\n '[TUI_FONTS_READY]',\n {\n factory: () =>\n from((inject(DOCUMENT) as any).fonts?.ready || EMPTY).pipe(\n shareReplay({bufferSize: 1, refCount: false}),\n ),\n },\n);\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * A key/value dictionary of icon names and src to be defined with TuiSvgService\n * @deprecated\n */\nexport const TUI_ICONS = tuiCreateToken<Record<string, string>>({});\n","import {inject} from '@angular/core';\nimport {NAVIGATOR} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiIsApple} from '@taiga-ui/legacy/utils';\n\n/**\n * Apple(safari/webkit) detection\n */\nexport const TUI_IS_APPLE = tuiCreateTokenFromFactory(() =>\n tuiIsApple(inject(NAVIGATOR)),\n);\n","import {inject} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * Chromium browser engine detection\n */\nexport const TUI_IS_CHROMIUM = tuiCreateTokenFromFactory(\n () => !!(inject(WINDOW) as Window & {chrome: unknown}).chrome,\n);\n","import {inject} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * Firefox browser engine detection\n */\nexport const TUI_IS_FIREFOX = tuiCreateTokenFromFactory(\n () =>\n typeof (inject(WINDOW) as Window & {mozCancelFullScreen: unknown})\n ?.mozCancelFullScreen !== 'undefined',\n);\n","import {inject} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_IS_STACKBLITZ = tuiCreateTokenFromFactory(() =>\n inject(WINDOW).location.host.endsWith('stackblitz.io'),\n);\n","import type {FactoryProvider} from '@angular/core';\nimport {InjectionToken} from '@angular/core';\nimport type {TuiMonth} from '@taiga-ui/cdk/date-time';\nimport type {TuiHandler} from '@taiga-ui/cdk/types';\nimport {TuiMonthPipe} from '@taiga-ui/core/pipes/month';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\n/**\n * A function to get localized formatted month\n */\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n TuiHandler<TuiMonth | null, Observable<string>>\n>('[TUI_MONTH_FORMATTER]');\n\nexport const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider = {\n provide: TUI_MONTH_FORMATTER,\n deps: [TuiMonthPipe],\n useFactory:\n (pipe: TuiMonthPipe): TuiHandler<TuiMonth | null, Observable<string>> =>\n month =>\n month\n ? pipe\n .transform(month)\n .pipe(map(formatted => `${formatted} ${month.formattedYear}`))\n : of(''),\n};\n","import type {Sanitizer} from '@angular/core';\nimport {InjectionToken} from '@angular/core';\n\n/**\n * A custom Sanitizer to sanitize source before inlining\n */\nexport const TUI_SANITIZER = new InjectionToken<Sanitizer>('[TUI_SANITIZER]');\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * Appearance for inputs\n * @deprecated use {@link TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} instead\n */\nexport const TUI_TEXTFIELD_APPEARANCE = tuiCreateToken<string>('textfield');\n","import type {Provider, Type} from '@angular/core';\nimport {InjectionToken} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiTextfieldHost {\n readonly disabled: boolean;\n readonly focusable: boolean;\n readonly inputMode:\n | 'decimal'\n | 'email'\n | 'none'\n | 'numeric'\n | 'search'\n | 'tel'\n | 'text'\n | 'url';\n readonly invalid: boolean;\n onValueChange(value: string): void;\n process(input: HTMLInputElement): void;\n readonly readOnly: boolean;\n readonly value: string;\n}\n\n/**\n * An interface to communicate with textfield based controls\n */\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n '[TUI_TEXTFIELD_HOST]',\n);\n\nexport function tuiAsTextfieldHost(host: Type<TuiTextfieldHost>): Provider {\n return tuiProvide(TUI_TEXTFIELD_HOST, host);\n}\n","import {inject} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_TOUCH_SUPPORTED = tuiCreateTokenFromFactory(\n () => inject(WINDOW).matchMedia('(any-pointer: coarse)').matches,\n);\n","import {InjectionToken} from '@angular/core';\nimport type {ControlValueAccessor} from '@angular/forms';\n\n/**\n * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector\n * @deprecated\n */\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n '[TUI_VALUE_ACCESSOR]',\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;;AAIG;AACI,MAAM,mBAAmB,GAAG,cAAc,CAAoC;AACjF,IAAA,EAAE,EAAE,aAAa;AACjB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,gBAAgB;AACpB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,kBAAkB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CAAC,eAAe,CAAC;;ACG1D;;AAEG;MACU,mBAAmB,GAAG,IAAI,cAAc,CAEnD,uBAAuB,EAAE;AAEd,MAAA,4BAA4B,GAAoB;AACzD,IAAA,OAAO,EAAE,mBAAmB;IAC5B,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,UAAU,EACN,CAAC,IAAkB,KACnB,KAAK,IACD,KAAK;AACD,UAAE,IAAI;aACC,SAAS,CAAC,KAAK,CAAC;AAChB,aAAA,IAAI,CAAC,GAAG,CAAC,SAAS,IAAI,CAAG,EAAA,SAAS,IAAI,KAAK,CAAC,aAAa,CAAA,CAAE,CAAC,CAAC;AACpE,UAAE,EAAE,CAAC,EAAE,CAAC;;;ACtBxB;;AAEG;MACU,aAAa,GAAG,IAAI,cAAc,CAAY,iBAAiB;;ACJ5E;;;AAGG;MACU,wBAAwB,GAAG,cAAc,CAAS,WAAW;;ACiB1E;;AAEG;MACU,kBAAkB,GAAG,IAAI,cAAc,CAChD,sBAAsB,EACxB;AAEI,SAAU,kBAAkB,CAAC,IAA4B,EAAA;AAC3D,IAAA,OAAO,UAAU,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;AAChD;;MC5Ba,mBAAmB,GAAG,yBAAyB,CACxD,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,OAAO;;ACFpE;;;AAGG;MACU,kBAAkB,GAAG,IAAI,cAAc,CAChD,sBAAsB;;ACR1B;;AAEG;;;;"}
@@ -0,0 +1,235 @@
1
+ import { CHAR_PLUS, TUI_VERSION } from '@taiga-ui/cdk/constants';
2
+ import { tuiIsIos } from '@taiga-ui/cdk/utils/browser';
3
+ import { tuiDropdownOptionsProvider } from '@taiga-ui/core/directives/dropdown';
4
+
5
+ const TUI_DATE_MODE_MASKITO_ADAPTER = {
6
+ DMY: 'dd/mm/yyyy',
7
+ MDY: 'mm/dd/yyyy',
8
+ YMD: 'yyyy/mm/dd',
9
+ };
10
+
11
+ /**
12
+ * Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead!
13
+ * @example
14
+ * import {maskitoTransform} from '@maskito/core';
15
+ *
16
+ * const mask = {
17
+ * mask: ['+', '1', ' ', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
18
+ * };
19
+ * maskitoTransform('12125552368', mask); // +1 (212) 555-2368
20
+ * ___
21
+ * @example
22
+ * import {maskitoTransform} from '@maskito/core';
23
+ * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
24
+ * import metadata from 'libphonenumber-js/min/metadata';
25
+ *
26
+ * const options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
27
+ *
28
+ * maskitoTransform('12125552368', mask); // +1 (212) 555-2368
29
+ * ___
30
+ * @deprecated Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead<br/>
31
+ * Formats a string with the phone format +7XXXXXXXXXXXX or XXXXXXXXXXXX,
32
+ * adding parentheses and hyphens.
33
+ *
34
+ * @param value the input string
35
+ * @param countryCode a country code
36
+ * @param phoneMask a phone number mask
37
+ * @return the formatted phone string of the form +7 XXX XXX-XX-XX
38
+ */
39
+ function tuiFormatPhone(value, countryCode, phoneMask) {
40
+ if (!value) {
41
+ return '';
42
+ }
43
+ let result = countryCode;
44
+ countryCode = countryCode.replaceAll(/[()]/g, '');
45
+ if (!value.startsWith(countryCode)) {
46
+ value = countryCode + value.replace(CHAR_PLUS, '');
47
+ }
48
+ const splitPhoneMask = phoneMask.split('');
49
+ const splitValue = value.slice(countryCode.length).split('');
50
+ result += ' ';
51
+ if (splitValue.length === 0) {
52
+ return result;
53
+ }
54
+ for (const mask of splitPhoneMask) {
55
+ if (splitValue.length === 0) {
56
+ break;
57
+ }
58
+ if (mask === '#') {
59
+ result += splitValue[0] || '';
60
+ splitValue.splice(0, 1);
61
+ }
62
+ else {
63
+ result += mask;
64
+ }
65
+ }
66
+ return result;
67
+ }
68
+
69
+ const ITEM_SIZE = 1.5;
70
+ const CONTENT_SIZE = 2.5;
71
+ function tuiGetBorder(hasIcon, hasCleaner = false, hasTooltip = false, hasContent = false, size = 'm') {
72
+ const offset = size === 's' ? 0 : 0.25;
73
+ let border = 0;
74
+ if (hasIcon) {
75
+ border += ITEM_SIZE + offset;
76
+ }
77
+ if (hasCleaner) {
78
+ border += ITEM_SIZE + offset;
79
+ }
80
+ if (hasTooltip) {
81
+ border += ITEM_SIZE + offset;
82
+ }
83
+ if (hasContent) {
84
+ border += CONTENT_SIZE + offset;
85
+ }
86
+ return border;
87
+ }
88
+
89
+ /**
90
+ * @deprecated use `validatePhoneNumberLength` from `libphonenumber-js` instead
91
+ * ```
92
+ * npm i libphonenumber-js
93
+ * ```
94
+ *
95
+ * ```ts
96
+ * import {validatePhoneNumberLength} from 'libphonenumber-js';
97
+ * import metadata from 'libphonenumber-js/max/metadata';
98
+ *
99
+ * const validationError = validatePhoneNumberLength(
100
+ * '+7 777 777-7777',
101
+ * 'KZ'
102
+ * ) // undefined | 'INVALID_COUNTRY' | 'NOT_A_NUMBER' | 'TOO_SHORT' | 'TOO_LONG' | 'INVALID_LENGTH';
103
+ *
104
+ * validatePhoneNumberLength('+7777777', 'KZ'); // 'TOO_SHORT'
105
+ * validatePhoneNumberLength('+7 777 777-7777', 'KZ'); // undefined
106
+ * validatePhoneNumberLength('+77777777777', 'KZ'); // undefined
107
+ * validatePhoneNumberLength('+777777777777777777', 'KZ'); // 'TOO_LONG'
108
+ * ```
109
+ */
110
+ function tuiGetMaxAllowedPhoneLength(countries, isoCode) {
111
+ return countries[isoCode].replaceAll(/[()\- ]/g, '').length;
112
+ }
113
+
114
+ /**
115
+ * Calculates size of safe area on mobile devices (status bars)
116
+ *
117
+ * ATTENTION: Only use in browser environment
118
+ */
119
+ function tuiGetSafeAreaSize() {
120
+ if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {
121
+ return 0;
122
+ }
123
+ const div = document.createElement('div');
124
+ div.style.paddingTop = 'env(safe-area-inset-top)';
125
+ document.body.appendChild(div);
126
+ const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop, 10) || 0;
127
+ document.body.removeChild(div);
128
+ return safeAreaSize;
129
+ }
130
+
131
+ const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}`;
132
+ const DEFAULT_ICONS_PATH = name => name.includes('.svg#') ? name : `#${name}`;
133
+ // TODO: Move to legacy with tui-svg
134
+ function tuiIconsPathFactory(staticPath) {
135
+ const base = staticPath.endsWith('/') ? staticPath : `${staticPath}/`;
136
+ return name => {
137
+ if (name.startsWith('tuiIcon')) {
138
+ return `${base}${name}.svg${TUI_CACHE_BUSTING_PAYLOAD}#${name}`;
139
+ }
140
+ return DEFAULT_ICONS_PATH(name);
141
+ };
142
+ }
143
+
144
+ const SAFARI_REG_EXP = /^((?!chrome|android).)*safari/i;
145
+ function tuiIsApple(navigator) {
146
+ return tuiIsIos(navigator) || SAFARI_REG_EXP.test(navigator.userAgent.toLowerCase());
147
+ }
148
+
149
+ // TODO: Move to legacy with tui-svg
150
+ function tuiIsPresumedHTMLString(candidate) {
151
+ const trimmed = candidate.trim();
152
+ return trimmed.startsWith('<') && trimmed.endsWith('>');
153
+ }
154
+
155
+ const MASK_AFTER_CODE_REGEXP = /\([#]+\)|[#\- ]/g;
156
+ /**
157
+ * @deprecated Use `getCountryCallingCode` from `libphonenumber-js/core` instead
158
+ * ```ts
159
+ * import {getCountryCallingCode} from 'libphonenumber-js/core';
160
+ * import metadata from 'libphonenumber-js/max/metadata';
161
+ *
162
+ * getCountryCallingCode('US', metadata) // 1
163
+ * getCountryCallingCode('GB', metadata) // 44
164
+ * ```
165
+ */
166
+ function tuiIsoToCountryCode(countriesMasks, isoCode) {
167
+ return countriesMasks[isoCode].replaceAll(MASK_AFTER_CODE_REGEXP, '');
168
+ }
169
+
170
+ /**
171
+ * @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
172
+ * ```
173
+ * npm i @maskito/phone
174
+ * ```
175
+ *
176
+ * ```ts
177
+ * import {maskitoGetCountryFromNumber} from '@maskito/phone';
178
+ * import metadata from 'libphonenumber-js/max/metadata';
179
+ *
180
+ * const countryIsoCode = maskitoGetCountryFromNumber(
181
+ * '+7 777 777-7777',
182
+ * metadata
183
+ * );
184
+ *
185
+ * countryIsoCode !== 'KZ'
186
+ * ```
187
+ */
188
+ function tuiNotKzRegion(value) {
189
+ const region = Number(value.slice(1, 4));
190
+ return region < 600 || region > 799;
191
+ }
192
+
193
+ const WIDTH_SEARCH = 'width="';
194
+ const HEIGHT_SEARCH = 'height="';
195
+ const START = '<svg';
196
+ // TODO: move to legacy
197
+ function tuiProcessIcon(source, name) {
198
+ if (source.includes(`id="${name}"`)) {
199
+ return source;
200
+ }
201
+ const src = source.slice(Math.max(0, source.indexOf(START)));
202
+ const attributes = src.slice(0, Math.max(0, src.indexOf('>')));
203
+ if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {
204
+ return `${src.replace(START, `<svg xmlns="http://www.w3.org/2000/svg"><g id="${name}" xmlns="http://www.w3.org/2000/svg"><svg`)}</g></svg>`;
205
+ }
206
+ const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);
207
+ const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);
208
+ const widthOffset = indexOfWidth + WIDTH_SEARCH.length;
209
+ const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;
210
+ const widthString = attributes.slice(widthOffset, attributes.indexOf('"', widthOffset));
211
+ const heightString = attributes.slice(heightOffset, attributes.indexOf('"', heightOffset));
212
+ if (!heightString ||
213
+ !widthString ||
214
+ widthString.includes('%') ||
215
+ heightString.includes('%') ||
216
+ widthString.includes('em') ||
217
+ heightString.includes('em')) {
218
+ return src.replace(START, `<svg id="${name}"`);
219
+ }
220
+ const width = parseInt(widthString, 10);
221
+ const height = parseInt(heightString, 10);
222
+ return `<g id="${name}" xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" width="${width / 16}em" height="${height / 16}em" overflow="visible" viewBox="0 0 ${width} ${height}"><svg x="${-width / 2}" y="${-height / 2}">${src}</svg></svg></g>`;
223
+ }
224
+
225
+ const FIXED_DROPDOWN_CONTROLLER_PROVIDER = tuiDropdownOptionsProvider({
226
+ limitWidth: 'fixed',
227
+ align: 'right',
228
+ });
229
+
230
+ /**
231
+ * Generated bundle index. Do not edit.
232
+ */
233
+
234
+ export { DEFAULT_ICONS_PATH, FIXED_DROPDOWN_CONTROLLER_PROVIDER, TUI_CACHE_BUSTING_PAYLOAD, TUI_DATE_MODE_MASKITO_ADAPTER, tuiFormatPhone, tuiGetBorder, tuiGetMaxAllowedPhoneLength, tuiGetSafeAreaSize, tuiIconsPathFactory, tuiIsApple, tuiIsPresumedHTMLString, tuiIsoToCountryCode, tuiNotKzRegion, tuiProcessIcon };
235
+ //# sourceMappingURL=taiga-ui-legacy-utils.mjs.map