@taiga-ui/legacy 4.52.0-canary.e10b718 → 4.52.0-canary.e53e79e

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 (331) hide show
  1. package/README.md +1 -1
  2. package/components/dialog/dialog.component.d.ts +19 -0
  3. package/components/dialog/dialog.directive.d.ts +8 -0
  4. package/components/dialog/dialog.factory.d.ts +16 -0
  5. package/components/dialog/dialog.interfaces.d.ts +30 -0
  6. package/components/dialog/dialog.service.d.ts +10 -0
  7. package/components/dialog/dialog.tokens.d.ts +6 -0
  8. package/components/dialog/index.d.ts +6 -0
  9. package/components/index.d.ts +3 -26
  10. package/components/mobile-dialog/index.d.ts +3 -0
  11. package/components/mobile-dialog/mobile-dialog.component.d.ts +10 -0
  12. package/components/mobile-dialog/mobile-dialog.options.d.ts +10 -0
  13. package/components/mobile-dialog/mobile-dialog.service.d.ts +14 -0
  14. package/components/pdf-viewer/index.d.ts +4 -0
  15. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  16. package/components/pdf-viewer/pdf-viewer.directive.d.ts +8 -0
  17. package/components/pdf-viewer/pdf-viewer.options.d.ts +11 -0
  18. package/components/pdf-viewer/pdf-viewer.service.d.ts +17 -0
  19. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +136 -0
  20. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  21. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +62 -0
  22. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs.map +1 -0
  23. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +88 -0
  24. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  25. package/fesm2022/taiga-ui-legacy-components.mjs +3 -26
  26. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-legacy.mjs +0 -6
  28. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  29. package/index.d.ts +0 -6
  30. package/package.json +22 -165
  31. package/classes/abstract-native-select.d.ts +0 -22
  32. package/classes/abstract-textfield-host.d.ts +0 -19
  33. package/classes/control.d.ts +0 -60
  34. package/classes/controller.d.ts +0 -9
  35. package/classes/index.d.ts +0 -9
  36. package/classes/interactive.d.ts +0 -34
  37. package/classes/multiple-control.d.ts +0 -11
  38. package/classes/named-day.d.ts +0 -11
  39. package/classes/nullable-control.d.ts +0 -10
  40. package/classes/stringifiable-item.d.ts +0 -11
  41. package/components/arrow/arrow.component.d.ts +0 -17
  42. package/components/arrow/arrow.options.d.ts +0 -19
  43. package/components/arrow/arrow.providers.d.ts +0 -23
  44. package/components/arrow/index.d.ts +0 -3
  45. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  46. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  47. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  48. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  49. package/components/color-selector/color-selector.component.d.ts +0 -47
  50. package/components/color-selector/color-selector.module.d.ts +0 -23
  51. package/components/color-selector/color-selector.options.d.ts +0 -25
  52. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  53. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  54. package/components/color-selector/index.d.ts +0 -16
  55. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  56. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  57. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  58. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  59. package/components/color-selector/palette/palette.component.d.ts +0 -10
  60. package/components/color-selector/palette/palette.module.d.ts +0 -13
  61. package/components/color-selector/services/picker.service.d.ts +0 -15
  62. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  63. package/components/combo-box/combo-box.component.d.ts +0 -52
  64. package/components/combo-box/combo-box.directive.d.ts +0 -13
  65. package/components/combo-box/combo-box.module.d.ts +0 -20
  66. package/components/combo-box/index.d.ts +0 -4
  67. package/components/input/index.d.ts +0 -3
  68. package/components/input/input.component.d.ts +0 -32
  69. package/components/input/input.directive.d.ts +0 -12
  70. package/components/input/input.module.d.ts +0 -16
  71. package/components/input-color/index.d.ts +0 -2
  72. package/components/input-color/input-color.component.d.ts +0 -30
  73. package/components/input-color/input-color.module.d.ts +0 -17
  74. package/components/input-date/index.d.ts +0 -3
  75. package/components/input-date/input-date.component.d.ts +0 -62
  76. package/components/input-date/input-date.directive.d.ts +0 -19
  77. package/components/input-date/input-date.module.d.ts +0 -24
  78. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  79. package/components/input-date-range/index.d.ts +0 -3
  80. package/components/input-date-range/input-date-range.component.d.ts +0 -67
  81. package/components/input-date-range/input-date-range.directive.d.ts +0 -16
  82. package/components/input-date-range/input-date-range.module.d.ts +0 -22
  83. package/components/input-date-time/index.d.ts +0 -3
  84. package/components/input-date-time/input-date-time.component.d.ts +0 -87
  85. package/components/input-date-time/input-date-time.directive.d.ts +0 -17
  86. package/components/input-date-time/input-date-time.module.d.ts +0 -23
  87. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
  88. package/components/input-month-range/index.d.ts +0 -3
  89. package/components/input-month-range/input-month-range.component.d.ts +0 -38
  90. package/components/input-month-range/input-month-range.directive.d.ts +0 -23
  91. package/components/input-month-range/input-month-range.module.d.ts +0 -18
  92. package/components/input-number/index.d.ts +0 -4
  93. package/components/input-number/input-number.component.d.ts +0 -63
  94. package/components/input-number/input-number.directive.d.ts +0 -16
  95. package/components/input-number/input-number.module.d.ts +0 -18
  96. package/components/input-number/input-number.options.d.ts +0 -29
  97. package/components/input-phone/index.d.ts +0 -4
  98. package/components/input-phone/input-phone.component.d.ts +0 -52
  99. package/components/input-phone/input-phone.directive.d.ts +0 -16
  100. package/components/input-phone/input-phone.module.d.ts +0 -15
  101. package/components/input-phone/input-phone.options.d.ts +0 -22
  102. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  103. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  104. package/components/input-phone/utils/index.d.ts +0 -2
  105. package/components/input-phone-international/index.d.ts +0 -3
  106. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  107. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  108. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  109. package/components/input-range/index.d.ts +0 -2
  110. package/components/input-range/input-range.component.d.ts +0 -56
  111. package/components/input-range/input-range.module.d.ts +0 -19
  112. package/components/input-slider/index.d.ts +0 -2
  113. package/components/input-slider/input-slider.component.d.ts +0 -42
  114. package/components/input-slider/input-slider.module.d.ts +0 -18
  115. package/components/input-tag/index.d.ts +0 -3
  116. package/components/input-tag/input-tag.component.d.ts +0 -103
  117. package/components/input-tag/input-tag.module.d.ts +0 -22
  118. package/components/input-tag/input-tag.options.d.ts +0 -27
  119. package/components/input-time/index.d.ts +0 -4
  120. package/components/input-time/input-time.component.d.ts +0 -62
  121. package/components/input-time/input-time.directive.d.ts +0 -17
  122. package/components/input-time/input-time.module.d.ts +0 -23
  123. package/components/input-time/input-time.options.d.ts +0 -42
  124. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  125. package/components/input-year/index.d.ts +0 -3
  126. package/components/input-year/input-year.component.d.ts +0 -36
  127. package/components/input-year/input-year.directive.d.ts +0 -14
  128. package/components/input-year/input-year.module.d.ts +0 -18
  129. package/components/multi-select/hide-selected.pipe.d.ts +0 -11
  130. package/components/multi-select/index.d.ts +0 -10
  131. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -23
  132. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
  133. package/components/multi-select/multi-select.component.d.ts +0 -71
  134. package/components/multi-select/multi-select.directive.d.ts +0 -14
  135. package/components/multi-select/multi-select.module.d.ts +0 -31
  136. package/components/multi-select/multi-select.options.d.ts +0 -14
  137. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
  138. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
  139. package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
  140. package/components/multi-select-option/index.d.ts +0 -2
  141. package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
  142. package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
  143. package/components/primitive-textfield/index.d.ts +0 -7
  144. package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -21
  145. package/components/primitive-textfield/primitive-textfield-types.d.ts +0 -11
  146. package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -73
  147. package/components/primitive-textfield/primitive-textfield.directive.d.ts +0 -14
  148. package/components/primitive-textfield/primitive-textfield.module.d.ts +0 -21
  149. package/components/primitive-textfield/textfield/textfield.component.d.ts +0 -13
  150. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +0 -22
  151. package/components/select/index.d.ts +0 -6
  152. package/components/select/native-select/native-select-group.component.d.ts +0 -17
  153. package/components/select/native-select/native-select.component.d.ts +0 -16
  154. package/components/select/select.component.d.ts +0 -45
  155. package/components/select/select.directive.d.ts +0 -16
  156. package/components/select/select.module.d.ts +0 -24
  157. package/components/select/select.options.d.ts +0 -25
  158. package/components/select-option/index.d.ts +0 -2
  159. package/components/select-option/select-option.component.d.ts +0 -27
  160. package/components/select-option/select-option.module.d.ts +0 -10
  161. package/components/svg/content-processor.d.ts +0 -19
  162. package/components/svg/deprecated-icons.d.ts +0 -5
  163. package/components/svg/index.d.ts +0 -5
  164. package/components/svg/svg-options.d.ts +0 -50
  165. package/components/svg/svg.component.d.ts +0 -50
  166. package/components/svg/svg.service.d.ts +0 -21
  167. package/components/tag/index.d.ts +0 -3
  168. package/components/tag/tag.component.d.ts +0 -44
  169. package/components/tag/tag.module.d.ts +0 -16
  170. package/components/tag/tag.options.d.ts +0 -27
  171. package/components/textarea/index.d.ts +0 -3
  172. package/components/textarea/textarea.component.d.ts +0 -54
  173. package/components/textarea/textarea.directive.d.ts +0 -12
  174. package/components/textarea/textarea.module.d.ts +0 -21
  175. package/components/tooltip/index.d.ts +0 -2
  176. package/components/tooltip/tooltip.component.d.ts +0 -12
  177. package/components/tooltip/tooltip.module.d.ts +0 -13
  178. package/directives/index.d.ts +0 -5
  179. package/directives/legacy-dropdown-open-monitor/index.d.ts +0 -1
  180. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +0 -11
  181. package/directives/textfield-controller/index.d.ts +0 -14
  182. package/directives/textfield-controller/textfield-appearance.directive.d.ts +0 -9
  183. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +0 -9
  184. package/directives/textfield-controller/textfield-controller.module.d.ts +0 -17
  185. package/directives/textfield-controller/textfield-controller.provider.d.ts +0 -4
  186. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +0 -10
  187. package/directives/textfield-controller/textfield-filler.directive.d.ts +0 -9
  188. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +0 -12
  189. package/directives/textfield-controller/textfield-icon.directive.d.ts +0 -12
  190. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +0 -9
  191. package/directives/textfield-controller/textfield-postfix.directive.d.ts +0 -9
  192. package/directives/textfield-controller/textfield-prefix.directive.d.ts +0 -9
  193. package/directives/textfield-controller/textfield-size.directive.d.ts +0 -10
  194. package/directives/textfield-controller/textfield.controller.d.ts +0 -41
  195. package/directives/textfield-controller/textfield.options.d.ts +0 -19
  196. package/directives/unfinished-validator/index.d.ts +0 -2
  197. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +0 -10
  198. package/directives/unfinished-validator/unfinished.validator.d.ts +0 -4
  199. package/directives/value-accessor/index.d.ts +0 -3
  200. package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
  201. package/directives/value-accessor/value-accessor.module.d.ts +0 -7
  202. package/directives/value-accessor/value-accessor.provider.d.ts +0 -2
  203. package/directives/wrapper/README.md +0 -19
  204. package/directives/wrapper/index.d.ts +0 -2
  205. package/directives/wrapper/wrapper.directive.d.ts +0 -22
  206. package/directives/wrapper/wrapper.module.d.ts +0 -10
  207. package/fesm2022/taiga-ui-legacy-classes.mjs +0 -415
  208. package/fesm2022/taiga-ui-legacy-classes.mjs.map +0 -1
  209. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +0 -85
  210. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +0 -1
  211. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -726
  212. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  213. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -300
  214. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  215. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  216. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  217. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -356
  218. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
  219. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -465
  220. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
  221. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  222. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  223. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
  224. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
  225. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -390
  226. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
  227. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  228. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  229. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -373
  230. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  231. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
  232. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
  233. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +0 -199
  234. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +0 -1
  235. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +0 -524
  236. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +0 -1
  237. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -430
  238. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  239. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  240. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  241. package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
  242. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
  243. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +0 -47
  244. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +0 -1
  245. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +0 -690
  246. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +0 -1
  247. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +0 -454
  248. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +0 -1
  249. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +0 -88
  250. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +0 -1
  251. package/fesm2022/taiga-ui-legacy-components-select.mjs +0 -354
  252. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +0 -1
  253. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
  254. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  255. package/fesm2022/taiga-ui-legacy-components-tag.mjs +0 -225
  256. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +0 -1
  257. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +0 -262
  258. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +0 -1
  259. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +0 -53
  260. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +0 -1
  261. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -50
  262. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +0 -1
  263. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +0 -401
  264. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +0 -1
  265. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -50
  266. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +0 -1
  267. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +0 -44
  268. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +0 -1
  269. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +0 -99
  270. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +0 -1
  271. package/fesm2022/taiga-ui-legacy-directives.mjs +0 -10
  272. package/fesm2022/taiga-ui-legacy-directives.mjs.map +0 -1
  273. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -59
  274. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  275. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  276. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  277. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  278. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  279. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  280. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  281. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  282. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  283. package/fesm2022/taiga-ui-legacy-tokens.mjs +0 -384
  284. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +0 -1
  285. package/fesm2022/taiga-ui-legacy-utils.mjs +0 -268
  286. package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
  287. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  288. package/pipes/format-phone/index.d.ts +0 -1
  289. package/pipes/index.d.ts +0 -3
  290. package/pipes/iso-to-country-code/index.d.ts +0 -1
  291. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  292. package/pipes/to-country-code/index.d.ts +0 -1
  293. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  294. package/services/index.d.ts +0 -1
  295. package/services/static-request.service.d.ts +0 -11
  296. package/styles/mixins/mixins.less +0 -239
  297. package/styles/mixins/mixins.scss +0 -224
  298. package/styles/mixins/textfield.less +0 -324
  299. package/styles/mixins/textfield.scss +0 -308
  300. package/styles/taiga-ui-local.less +0 -3
  301. package/styles/taiga-ui-local.scss +0 -3
  302. package/tokens/countries-masks.d.ts +0 -9
  303. package/tokens/focusable-item-accessor.d.ts +0 -25
  304. package/tokens/fonts-ready.d.ts +0 -6
  305. package/tokens/icons.d.ts +0 -6
  306. package/tokens/index.d.ts +0 -14
  307. package/tokens/is-apple.d.ts +0 -6
  308. package/tokens/is-chromium.d.ts +0 -6
  309. package/tokens/is-firefox.d.ts +0 -6
  310. package/tokens/is-stackblitz.d.ts +0 -5
  311. package/tokens/month-formatter.d.ts +0 -10
  312. package/tokens/sanitizer.d.ts +0 -6
  313. package/tokens/textfield-appearance.d.ts +0 -7
  314. package/tokens/textfield-host.d.ts +0 -23
  315. package/tokens/touch-supported.d.ts +0 -5
  316. package/tokens/value-accessor.d.ts +0 -7
  317. package/utils/capitalize-first-letter.d.ts +0 -4
  318. package/utils/date-mode-maskito-adapter.d.ts +0 -6
  319. package/utils/format-phone.d.ts +0 -30
  320. package/utils/get-border.d.ts +0 -5
  321. package/utils/get-max-allowed-phone-length.d.ts +0 -24
  322. package/utils/get-safe-area-size.d.ts +0 -7
  323. package/utils/icons-path-factory.d.ts +0 -13
  324. package/utils/index.d.ts +0 -14
  325. package/utils/is-apple.d.ts +0 -5
  326. package/utils/is-presumed-html-string.d.ts +0 -4
  327. package/utils/iso-to-country-code.d.ts +0 -13
  328. package/utils/not-kz-region.d.ts +0 -20
  329. package/utils/process-icon.d.ts +0 -4
  330. package/utils/specific-dropdown-controllers.d.ts +0 -4
  331. package/utils/status.d.ts +0 -4
@@ -1,268 +0,0 @@
1
- import { CHAR_PLUS, TUI_VERSION } from '@taiga-ui/cdk/constants';
2
- import { isApple } from '@ng-web-apis/platform';
3
- import { tuiDropdownOptionsProvider } from '@taiga-ui/core/directives/dropdown';
4
-
5
- /**
6
- * @deprecated: drop in v5.0
7
- */
8
- function tuiCapitalizeFirstLetter(value) {
9
- return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
10
- }
11
-
12
- /**
13
- * @deprecated: drop in v5.0
14
- */
15
- const TUI_DATE_MODE_MASKITO_ADAPTER = {
16
- DMY: 'dd/mm/yyyy',
17
- MDY: 'mm/dd/yyyy',
18
- YMD: 'yyyy/mm/dd',
19
- };
20
-
21
- /**
22
- * @deprecated: drop in v5.0
23
- * Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead!
24
- * @example
25
- * import {maskitoTransform} from '@maskito/core';
26
- *
27
- * const mask = {
28
- * mask: ['+', '1', ' ', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
29
- * };
30
- * maskitoTransform('12125552368', mask); // +1 (212) 555-2368
31
- * ___
32
- * @example
33
- * import {maskitoTransform} from '@maskito/core';
34
- * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
35
- * import metadata from 'libphonenumber-js/min/metadata';
36
- *
37
- * const options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
38
- *
39
- * maskitoTransform('12125552368', mask); // +1 (212) 555-2368
40
- * ___
41
- * @deprecated Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead<br/>
42
- * Formats a string with the phone format +7XXXXXXXXXXXX or XXXXXXXXXXXX,
43
- * adding parentheses and hyphens.
44
- *
45
- * @param value the input string
46
- * @param countryCode a country code
47
- * @param phoneMask a phone number mask
48
- * @return the formatted phone string of the form +7 XXX XXX-XX-XX
49
- */
50
- function tuiFormatPhone(value, countryCode, phoneMask) {
51
- if (!value) {
52
- return '';
53
- }
54
- let result = countryCode;
55
- countryCode = countryCode.replaceAll(/[()]/g, '');
56
- if (!value.startsWith(countryCode)) {
57
- value = countryCode + value.replace(CHAR_PLUS, '');
58
- }
59
- const splitPhoneMask = phoneMask.split('');
60
- const splitValue = value.slice(countryCode.length).split('');
61
- result += ' ';
62
- if (splitValue.length === 0) {
63
- return result;
64
- }
65
- for (const mask of splitPhoneMask) {
66
- if (splitValue.length === 0) {
67
- break;
68
- }
69
- if (mask === '#') {
70
- result += splitValue[0] || '';
71
- splitValue.splice(0, 1);
72
- }
73
- else {
74
- result += mask;
75
- }
76
- }
77
- return result;
78
- }
79
-
80
- const ITEM_SIZE = 1.5;
81
- const CONTENT_SIZE = 2.5;
82
- /**
83
- * @deprecated: drop in v5.0
84
- */
85
- function tuiGetBorder(hasIcon, hasCleaner = false, hasTooltip = false, hasContent = false, size = 'm') {
86
- const offset = size === 's' ? 0 : 0.25;
87
- let border = 0;
88
- if (hasIcon) {
89
- border += ITEM_SIZE + offset;
90
- }
91
- if (hasCleaner) {
92
- border += ITEM_SIZE + offset;
93
- }
94
- if (hasTooltip) {
95
- border += ITEM_SIZE + offset;
96
- }
97
- if (hasContent) {
98
- border += CONTENT_SIZE + offset;
99
- }
100
- return border;
101
- }
102
-
103
- /**
104
- * @deprecated: drop in v5.0
105
- * use `validatePhoneNumberLength` from `libphonenumber-js` instead
106
- * ```
107
- * npm i libphonenumber-js
108
- * ```
109
- *
110
- * ```ts
111
- * import {validatePhoneNumberLength} from 'libphonenumber-js';
112
- * import metadata from 'libphonenumber-js/max/metadata';
113
- *
114
- * const validationError = validatePhoneNumberLength(
115
- * '+7 777 777-7777',
116
- * 'KZ'
117
- * ) // undefined | 'INVALID_COUNTRY' | 'NOT_A_NUMBER' | 'TOO_SHORT' | 'TOO_LONG' | 'INVALID_LENGTH';
118
- *
119
- * validatePhoneNumberLength('+7777777', 'KZ'); // 'TOO_SHORT'
120
- * validatePhoneNumberLength('+7 777 777-7777', 'KZ'); // undefined
121
- * validatePhoneNumberLength('+77777777777', 'KZ'); // undefined
122
- * validatePhoneNumberLength('+777777777777777777', 'KZ'); // 'TOO_LONG'
123
- * ```
124
- */
125
- function tuiGetMaxAllowedPhoneLength(countries, isoCode) {
126
- return countries[isoCode].replaceAll(/[()\- ]/g, '').length;
127
- }
128
-
129
- /**
130
- * @deprecated: drop in v5.0
131
- * Calculates size of safe area on mobile devices (status bars)
132
- *
133
- * ATTENTION: Only use in browser environment
134
- */
135
- function tuiGetSafeAreaSize() {
136
- if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {
137
- return 0;
138
- }
139
- const div = document.createElement('div');
140
- div.style.paddingTop = 'env(safe-area-inset-top)';
141
- document.body.appendChild(div);
142
- const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop, 10) || 0;
143
- document.body.removeChild(div);
144
- return safeAreaSize;
145
- }
146
-
147
- /**
148
- * @deprecated: drop in v5.0
149
- */
150
- const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}`;
151
- /**
152
- * @deprecated: drop in v5.0
153
- */
154
- const DEFAULT_ICONS_PATH = (name) => name.includes('.svg#') ? name : `#${name}`;
155
- /**
156
- * @deprecated: drop in v5.0
157
- */
158
- function tuiIconsPathFactory(staticPath) {
159
- const base = staticPath.endsWith('/') ? staticPath : `${staticPath}/`;
160
- return (name) => {
161
- if (name.startsWith('tuiIcon')) {
162
- return `${base}${name}.svg${TUI_CACHE_BUSTING_PAYLOAD}#${name}`;
163
- }
164
- return DEFAULT_ICONS_PATH(name);
165
- };
166
- }
167
-
168
- /**
169
- * @deprecated: drop in v5.0
170
- */
171
- const tuiIsApple = isApple;
172
-
173
- /**
174
- * @deprecated: drop in v5.0
175
- */
176
- function tuiIsPresumedHTMLString(candidate) {
177
- const trimmed = candidate.trim();
178
- return trimmed.startsWith('<') && trimmed.endsWith('>');
179
- }
180
-
181
- const MASK_AFTER_CODE_REGEXP = /\(#+\)|[#\- ]/g;
182
- /**
183
- * @deprecated: drop in v5.0
184
- * Use `getCountryCallingCode` from `libphonenumber-js/core` instead
185
- * ```ts
186
- * import {getCountryCallingCode} from 'libphonenumber-js/core';
187
- * import metadata from 'libphonenumber-js/max/metadata';
188
- *
189
- * getCountryCallingCode('US', metadata) // 1
190
- * getCountryCallingCode('GB', metadata) // 44
191
- * ```
192
- */
193
- function tuiIsoToCountryCode(countriesMasks, isoCode) {
194
- return countriesMasks[isoCode].replaceAll(MASK_AFTER_CODE_REGEXP, '');
195
- }
196
-
197
- /**
198
- * @deprecated: drop in v5.0
199
- * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
200
- * ```
201
- * npm i @maskito/phone
202
- * ```
203
- *
204
- * ```ts
205
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
206
- * import metadata from 'libphonenumber-js/max/metadata';
207
- *
208
- * const countryIsoCode = maskitoGetCountryFromNumber(
209
- * '+7 777 777-7777',
210
- * metadata
211
- * );
212
- *
213
- * countryIsoCode !== 'KZ'
214
- * ```
215
- */
216
- function tuiNotKzRegion(value) {
217
- const region = Number(value.slice(1, 4));
218
- return region < 600 || region > 799;
219
- }
220
-
221
- const WIDTH_SEARCH = 'width="';
222
- const HEIGHT_SEARCH = 'height="';
223
- const START = '<svg';
224
- /**
225
- * @deprecated: drop in v5.0
226
- */
227
- function tuiProcessIcon(source, name) {
228
- if (source.includes(`id="${name}"`)) {
229
- return source;
230
- }
231
- const src = source.slice(Math.max(0, source.indexOf(START)));
232
- const attributes = src.slice(0, Math.max(0, src.indexOf('>')));
233
- if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {
234
- 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>`;
235
- }
236
- const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);
237
- const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);
238
- const widthOffset = indexOfWidth + WIDTH_SEARCH.length;
239
- const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;
240
- const widthString = attributes.slice(widthOffset, attributes.indexOf('"', widthOffset));
241
- const heightString = attributes.slice(heightOffset, attributes.indexOf('"', heightOffset));
242
- if (!heightString ||
243
- !widthString ||
244
- widthString.includes('%') ||
245
- heightString.includes('%') ||
246
- widthString.includes('em') ||
247
- heightString.includes('em')) {
248
- return src.replace(START, `<svg id="${name}"`);
249
- }
250
- const width = parseInt(widthString, 10);
251
- const height = parseInt(heightString, 10);
252
- 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>`;
253
- }
254
-
255
- /**
256
- * @deprecated: drop in v5.0
257
- */
258
- const FIXED_DROPDOWN_CONTROLLER_PROVIDER = tuiDropdownOptionsProvider({
259
- limitWidth: 'fixed',
260
- align: 'right',
261
- });
262
-
263
- /**
264
- * Generated bundle index. Do not edit.
265
- */
266
-
267
- export { DEFAULT_ICONS_PATH, FIXED_DROPDOWN_CONTROLLER_PROVIDER, TUI_CACHE_BUSTING_PAYLOAD, TUI_DATE_MODE_MASKITO_ADAPTER, tuiCapitalizeFirstLetter, tuiFormatPhone, tuiGetBorder, tuiGetMaxAllowedPhoneLength, tuiGetSafeAreaSize, tuiIconsPathFactory, tuiIsApple, tuiIsPresumedHTMLString, tuiIsoToCountryCode, tuiNotKzRegion, tuiProcessIcon };
268
- //# sourceMappingURL=taiga-ui-legacy-utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-utils.mjs","sources":["../../../projects/legacy/utils/capitalize-first-letter.ts","../../../projects/legacy/utils/date-mode-maskito-adapter.ts","../../../projects/legacy/utils/format-phone.ts","../../../projects/legacy/utils/get-border.ts","../../../projects/legacy/utils/get-max-allowed-phone-length.ts","../../../projects/legacy/utils/get-safe-area-size.ts","../../../projects/legacy/utils/icons-path-factory.ts","../../../projects/legacy/utils/is-apple.ts","../../../projects/legacy/utils/is-presumed-html-string.ts","../../../projects/legacy/utils/iso-to-country-code.ts","../../../projects/legacy/utils/not-kz-region.ts","../../../projects/legacy/utils/process-icon.ts","../../../projects/legacy/utils/specific-dropdown-controllers.ts","../../../projects/legacy/utils/taiga-ui-legacy-utils.ts"],"sourcesContent":["/**\n * @deprecated: drop in v5.0\n */\nexport function tuiCapitalizeFirstLetter(value: string): string {\n return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;\n}\n","import {type MaskitoDateMode} from '@maskito/kit';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_DATE_MODE_MASKITO_ADAPTER: Record<TuiDateMode, MaskitoDateMode> = {\n DMY: 'dd/mm/yyyy',\n MDY: 'mm/dd/yyyy',\n YMD: 'yyyy/mm/dd',\n};\n","import {CHAR_PLUS} from '@taiga-ui/cdk/constants';\n\n/**\n * @deprecated: drop in v5.0\n * Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead!\n * @example\n * import {maskitoTransform} from '@maskito/core';\n *\n * const mask = {\n * mask: ['+', '1', ' ', /\\d/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/],\n * };\n * maskitoTransform('12125552368', mask); // +1 (212) 555-2368\n * ___\n * @example\n * import {maskitoTransform} from '@maskito/core';\n * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * const options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});\n *\n * maskitoTransform('12125552368', mask); // +1 (212) 555-2368\n * ___\n * @deprecated Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead<br/>\n * Formats a string with the phone format +7XXXXXXXXXXXX or XXXXXXXXXXXX,\n * adding parentheses and hyphens.\n *\n * @param value the input string\n * @param countryCode a country code\n * @param phoneMask a phone number mask\n * @return the formatted phone string of the form +7 XXX XXX-XX-XX\n */\nexport function tuiFormatPhone(\n value: string,\n countryCode: string,\n phoneMask: string,\n): string {\n if (!value) {\n return '';\n }\n\n let result = countryCode;\n\n countryCode = countryCode.replaceAll(/[()]/g, '');\n\n if (!value.startsWith(countryCode)) {\n value = countryCode + value.replace(CHAR_PLUS, '');\n }\n\n const splitPhoneMask = phoneMask.split('');\n const splitValue = value.slice(countryCode.length).split('');\n\n result += ' ';\n\n if (splitValue.length === 0) {\n return result;\n }\n\n for (const mask of splitPhoneMask) {\n if (splitValue.length === 0) {\n break;\n }\n\n if (mask === '#') {\n result += splitValue[0] || '';\n splitValue.splice(0, 1);\n } else {\n result += mask;\n }\n }\n\n return result;\n}\n","import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nconst ITEM_SIZE = 1.5;\nconst CONTENT_SIZE = 2.5;\n\n/**\n * @deprecated: drop in v5.0\n */\n\nexport function tuiGetBorder(\n hasIcon: boolean,\n hasCleaner = false,\n hasTooltip = false,\n hasContent = false,\n size: TuiSizeL | TuiSizeS = 'm',\n): number {\n const offset = size === 's' ? 0 : 0.25;\n let border = 0;\n\n if (hasIcon) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasCleaner) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasTooltip) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasContent) {\n border += CONTENT_SIZE + offset;\n }\n\n return border;\n}\n","import {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\n/**\n * @deprecated: drop in v5.0\n * use `validatePhoneNumberLength` from `libphonenumber-js` instead\n * ```\n * npm i libphonenumber-js\n * ```\n *\n * ```ts\n * import {validatePhoneNumberLength} from 'libphonenumber-js';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * const validationError = validatePhoneNumberLength(\n * '+7 777 777-7777',\n * 'KZ'\n * ) // undefined | 'INVALID_COUNTRY' | 'NOT_A_NUMBER' | 'TOO_SHORT' | 'TOO_LONG' | 'INVALID_LENGTH';\n *\n * validatePhoneNumberLength('+7777777', 'KZ'); // 'TOO_SHORT'\n * validatePhoneNumberLength('+7 777 777-7777', 'KZ'); // undefined\n * validatePhoneNumberLength('+77777777777', 'KZ'); // undefined\n * validatePhoneNumberLength('+777777777777777777', 'KZ'); // 'TOO_LONG'\n * ```\n */\nexport function tuiGetMaxAllowedPhoneLength(\n countries: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): number {\n return countries[isoCode].replaceAll(/[()\\- ]/g, '').length;\n}\n","/**\n * @deprecated: drop in v5.0\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\nexport function tuiGetSafeAreaSize(): number {\n if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {\n return 0;\n }\n\n const div = document.createElement('div');\n\n div.style.paddingTop = 'env(safe-area-inset-top)';\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n","import {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}` as const;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = (name) =>\n name.includes('.svg#') ? name : `#${name}`;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIconsPathFactory(staticPath: string): TuiStringHandler<string> {\n const base = staticPath.endsWith('/') ? staticPath : `${staticPath}/`;\n\n return (name) => {\n if (name.startsWith('tuiIcon')) {\n return `${base}${name}.svg${TUI_CACHE_BUSTING_PAYLOAD}#${name}`;\n }\n\n return DEFAULT_ICONS_PATH(name);\n };\n}\n","import {isApple} from '@ng-web-apis/platform';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const tuiIsApple = isApple;\n","/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIsPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith('<') && trimmed.endsWith('>');\n}\n","import {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\nconst MASK_AFTER_CODE_REGEXP = /\\(#+\\)|[#\\- ]/g;\n\n/**\n * @deprecated: drop in v5.0\n * Use `getCountryCallingCode` from `libphonenumber-js/core` instead\n * ```ts\n * import {getCountryCallingCode} from 'libphonenumber-js/core';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * getCountryCallingCode('US', metadata) // 1\n * getCountryCallingCode('GB', metadata) // 44\n * ```\n */\nexport function tuiIsoToCountryCode(\n countriesMasks: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): string {\n return countriesMasks[isoCode].replaceAll(MASK_AFTER_CODE_REGEXP, '');\n}\n","/**\n * @deprecated: drop in v5.0\n * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead\n * ```\n * npm i @maskito/phone\n * ```\n *\n * ```ts\n * import {maskitoGetCountryFromNumber} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * const countryIsoCode = maskitoGetCountryFromNumber(\n * '+7 777 777-7777',\n * metadata\n * );\n *\n * countryIsoCode !== 'KZ'\n * ```\n */\nexport function tuiNotKzRegion(value: string): boolean {\n const region = Number(value.slice(1, 4));\n\n return region < 600 || region > 799;\n}\n","const WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\nconst START = '<svg';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiProcessIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf('>')));\n\n if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%') ||\n widthString.includes('em') ||\n heightString.includes('em')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n","import {tuiDropdownOptionsProvider} from '@taiga-ui/core/directives/dropdown';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const FIXED_DROPDOWN_CONTROLLER_PROVIDER = tuiDropdownOptionsProvider({\n limitWidth: 'fixed',\n align: 'right',\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\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AE,OAAO;AACjB,CAAA;;ACRD;;AAEG;;;;"}
@@ -1,37 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export declare class TuiFormatPhonePipe implements PipeTransform {
7
- /**
8
- * Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
9
- * ```ts
10
- * import {maskitoTransform} from '@maskito/core';
11
- * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
12
- * import metadata from 'libphonenumber-js/min/metadata';
13
- *
14
- * @Component({
15
- * standalone: true,
16
- * imports: [MaskitoPipe],
17
- * template: `
18
- * Phone: {{'12125552368' | maskito: options}}
19
- * <!-- Phone: +1 (212) 555-2368 -->
20
- * `,
21
- * })
22
- * export class YourComponent {
23
- * options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
24
- * }
25
- * ```
26
- * ___
27
- * @deprecated Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
28
- * Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
29
- * @param value
30
- * @param countryCode
31
- * @param phoneMask
32
- * @return formatted phone number string +7(XXX)XXX-XX-XX
33
- */
34
- transform(value: string, countryCode?: string, phoneMask?: string): string;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiFormatPhonePipe, never>;
36
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiFormatPhonePipe, "tuiFormatPhone", true>;
37
- }
@@ -1 +0,0 @@
1
- export * from './format-phone.pipe';
package/pipes/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from '@taiga-ui/legacy/pipes/format-phone';
2
- export * from '@taiga-ui/legacy/pipes/iso-to-country-code';
3
- export * from '@taiga-ui/legacy/pipes/to-country-code';
@@ -1 +0,0 @@
1
- export * from './iso-to-country-code.pipe';
@@ -1,30 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated: drop in v5.0
6
- * Use `getCountryCallingCode` from `libphonenumber-js/core` instead
7
- * ```ts
8
- * import {getCountryCallingCode} from 'libphonenumber-js/core';
9
- * import metadata from 'libphonenumber-js/max/metadata';
10
- *
11
- * getCountryCallingCode('US', metadata) // 1
12
- * getCountryCallingCode('GB', metadata) // 44
13
- * ```
14
- */
15
- export declare class TuiIsoToCountryCodePipe implements PipeTransform {
16
- private readonly countriesMasks;
17
- /**
18
- * @deprecated Use `getCountryCallingCode` from `libphonenumber-js/core` instead
19
- * ```ts
20
- * import {getCountryCallingCode} from 'libphonenumber-js/core';
21
- * import metadata from 'libphonenumber-js/max/metadata';
22
- *
23
- * getCountryCallingCode('US', metadata) // 1
24
- * getCountryCallingCode('GB', metadata) // 44
25
- * ```
26
- */
27
- transform(isoCode: TuiCountryIsoCode): string;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiIsoToCountryCodePipe, never>;
29
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiIsoToCountryCodePipe, "tuiIsoToCountryCode", true>;
30
- }
@@ -1 +0,0 @@
1
- export * from './to-country-code.pipe';
@@ -1,38 +0,0 @@
1
- import { type PipeTransform } from '@angular/core';
2
- import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated: drop in v5.0
6
- * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
7
- * ```
8
- * npm i @maskito/phone
9
- * ```
10
- *
11
- * ```ts
12
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
13
- * import metadata from 'libphonenumber-js/min/metadata';
14
- *
15
- * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
16
- * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
17
- * ```
18
- */
19
- export declare class TuiToCountryCodePipe implements PipeTransform {
20
- private readonly countriesMasks;
21
- /**
22
- * @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
23
- * ```
24
- * npm i @maskito/phone
25
- * ```
26
- *
27
- * ```ts
28
- * import {maskitoGetCountryFromNumber} from '@maskito/phone';
29
- * import metadata from 'libphonenumber-js/min/metadata';
30
- *
31
- * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
32
- * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
33
- * ```
34
- */
35
- transform(value: string, countries: readonly TuiCountryIsoCode[]): TuiCountryIsoCode | undefined;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiToCountryCodePipe, never>;
37
- static ɵpipe: i0.ɵɵPipeDeclaration<TuiToCountryCodePipe, "tuiToCountryCode", true>;
38
- }
@@ -1 +0,0 @@
1
- export * from './static-request.service';
@@ -1,11 +0,0 @@
1
- import { type Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated: drop in v5.0
5
- */
6
- export declare class TuiStaticRequestService {
7
- private readonly cache;
8
- request(url: string): Observable<string>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiStaticRequestService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiStaticRequestService>;
11
- }
@@ -1,239 +0,0 @@
1
- .clearfix() {
2
- &::after {
3
- content: '';
4
- display: table;
5
- clear: both;
6
- }
7
- }
8
-
9
- .autofill(@mode:default) {
10
- &:-webkit-autofill,
11
- &:-webkit-autofill:hover,
12
- &:-webkit-autofill:focus {
13
- -webkit-text-fill-color: var(--tui-text-primary) !important;
14
- border-color: var(--tui-service-autofill-background);
15
- box-shadow: 0 0 0 100rem var(--tui-service-autofill-background) inset !important; // to overlay native background
16
- }
17
- }
18
-
19
- .clearinput(@mode: default) {
20
- .autofill(@mode);
21
-
22
- padding: 0;
23
- margin: 0;
24
- border-width: 0;
25
- border-radius: inherit;
26
- background: none;
27
- font-size: inherit;
28
- line-height: inherit;
29
- font-weight: inherit;
30
- color: inherit;
31
- caret-color: currentColor;
32
- outline: none;
33
- appearance: none;
34
- word-break: keep-all;
35
- -webkit-text-fill-color: currentColor; // for Safari
36
- }
37
-
38
- .visually-hidden() {
39
- position: absolute;
40
- block-size: 1px;
41
- inline-size: 1px;
42
- margin: -1px;
43
- border: 0;
44
- padding: 0;
45
- overflow: hidden;
46
- clip: rect(0, 0, 0, 0);
47
- clip-path: inset(0);
48
- }
49
-
50
- .webkit-auto-fill-button-hidden() {
51
- // hide: -webkit-caps-lock-indicator
52
- content: none !important;
53
-
54
- // hide: -webkit-strong-password-auto-fill-button
55
- // because safari forcing set display as block
56
- position: absolute;
57
- left: -62.4375rem;
58
- top: -62.4375rem;
59
- z-index: -999;
60
-
61
- // hide: -webkit-contacts-auto-fill-button
62
- display: none !important;
63
- background: transparent !important;
64
- pointer-events: none !important;
65
- }
66
-
67
- // customize native scroll
68
- .customize-scroll() {
69
- // exclude non-supporting browsers
70
- @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
71
- &::-webkit-scrollbar,
72
- &::-webkit-scrollbar-thumb {
73
- inline-size: 1rem;
74
- block-size: 1rem;
75
- border-radius: 6.25rem;
76
- background-clip: padding-box;
77
- border: 0.375rem solid transparent;
78
- }
79
-
80
- &::-webkit-scrollbar {
81
- background-color: transparent;
82
- }
83
-
84
- &::-webkit-scrollbar-thumb {
85
- background-color: var(--tui-background-neutral-1-hover);
86
- }
87
-
88
- &::-webkit-scrollbar-thumb:hover {
89
- background-color: var(--tui-background-neutral-1-pressed);
90
- }
91
-
92
- &::-webkit-scrollbar-thumb:active {
93
- background-color: var(--tui-text-tertiary);
94
- }
95
- }
96
- }
97
-
98
- .inset-border(@direction: bottom, @mode: none) {
99
- & when (@direction = bottom) {
100
- box-shadow: inset 0 -1px var(--tui-border-normal);
101
-
102
- & when (@mode = light) {
103
- box-shadow: inset 0 -1px rgba(255, 255, 255, 0.24);
104
- }
105
-
106
- & when (@mode = dark) {
107
- box-shadow: inset 0 -1px rgba(51, 51, 51, 0.24);
108
- }
109
- }
110
-
111
- & when (@direction = top) {
112
- box-shadow: inset 0 1px var(--tui-border-normal);
113
-
114
- & when (@mode = light) {
115
- box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
116
- }
117
-
118
- & when (@mode = dark) {
119
- box-shadow: inset 0 1px rgba(51, 51, 51, 0.24);
120
- }
121
- }
122
-
123
- & when (@direction = left) {
124
- box-shadow: inset 1px 0 var(--tui-border-normal);
125
-
126
- & when (@mode = light) {
127
- box-shadow: inset 1px 0 rgba(255, 255, 255, 0.24);
128
- }
129
-
130
- & when (@mode = dark) {
131
- box-shadow: inset 1px 0 rgba(51, 51, 51, 0.24);
132
- }
133
- }
134
-
135
- & when (@direction = right) {
136
- box-shadow: inset -1px 0 var(--tui-border-normal);
137
-
138
- & when (@mode = light) {
139
- box-shadow: inset -1px 0 rgba(255, 255, 255, 0.24);
140
- }
141
-
142
- & when (@mode = dark) {
143
- box-shadow: inset -1px 0 rgba(51, 51, 51, 0.24);
144
- }
145
- }
146
- }
147
-
148
- // dashed border
149
- .dashed-border(@color: currentColor, @alignment: bottom, @space: 4) {
150
- @size: unit(@space, px);
151
- @percentage: (100% / @space * 2);
152
-
153
- background-image: linear-gradient(to right, @color 0%, @color @percentage, transparent @percentage);
154
- background-position: 0 @alignment;
155
- background-size: @size 1px;
156
- background-repeat: repeat-x;
157
- }
158
-
159
- // typical opacity properties for icons
160
- .opacity-icon() {
161
- opacity: 0.8;
162
-
163
- &:hover {
164
- opacity: 1;
165
- }
166
- }
167
-
168
- .hoverable-with-shadow() {
169
- .transition();
170
-
171
- box-shadow: var(--tui-shadow-small);
172
- cursor: pointer;
173
- transition-property: transform, box-shadow;
174
- will-change: transform, box-shadow;
175
-
176
- &:hover {
177
- box-shadow: var(--tui-shadow-small-hover);
178
- transform: translateY(-0.25rem);
179
- }
180
- }
181
-
182
- .text-overflow-with-fade(@color: var(--tui-background-base), @transparentColor: transparent, @width: 1.875rem) {
183
- position: relative;
184
- overflow: hidden;
185
-
186
- &::after {
187
- content: '';
188
- position: absolute;
189
- top: 0;
190
- right: 0;
191
- inline-size: @width;
192
- block-size: 100%;
193
- background-image: linear-gradient(to right, @transparentColor 0%, @color 80%, @color 100%);
194
- pointer-events: none;
195
- }
196
- }
197
-
198
- //spaces
199
- .tui-space(@direction, @size) {
200
- & when (@direction = all) {
201
- margin: 0.25rem * @size;
202
- }
203
-
204
- & when (@direction = top) {
205
- margin-block-start: 0.25rem * @size;
206
- }
207
-
208
- & when (@direction = bottom) {
209
- margin-block-end: 0.25rem * @size;
210
- }
211
-
212
- & when (@direction = vertical) {
213
- margin-block-start: 0.25rem * @size;
214
- margin-block-end: 0.25rem * @size;
215
- }
216
-
217
- & when (@direction = left) {
218
- margin-inline-start: 0.25rem * @size;
219
- }
220
-
221
- & when (@direction = right) {
222
- margin-inline-end: 0.25rem * @size;
223
- }
224
-
225
- & when (@direction = horizontal) {
226
- margin-inline-end: 0.25rem * @size;
227
- margin-inline-start: 0.25rem * @size;
228
- }
229
- }
230
-
231
- .contrast-background(@background) {
232
- background: @background;
233
- color: contrast(@background, #333, #fff);
234
- }
235
-
236
- .blurred-background(@color: #fff) {
237
- background: fade(@color, 70%);
238
- backdrop-filter: blur(0.4375rem);
239
- }