@taiga-ui/legacy 4.52.0-canary.e444d19 → 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 (386) 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 -33
  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 -33
  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 -193
  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 -24
  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-copy/index.d.ts +0 -4
  75. package/components/input-copy/input-copy.component.d.ts +0 -33
  76. package/components/input-copy/input-copy.directive.d.ts +0 -11
  77. package/components/input-copy/input-copy.module.d.ts +0 -18
  78. package/components/input-copy/input-copy.options.d.ts +0 -26
  79. package/components/input-date/index.d.ts +0 -3
  80. package/components/input-date/input-date.component.d.ts +0 -62
  81. package/components/input-date/input-date.directive.d.ts +0 -19
  82. package/components/input-date/input-date.module.d.ts +0 -24
  83. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  84. package/components/input-date-multi/index.d.ts +0 -2
  85. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  86. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  87. package/components/input-date-range/index.d.ts +0 -3
  88. package/components/input-date-range/input-date-range.component.d.ts +0 -67
  89. package/components/input-date-range/input-date-range.directive.d.ts +0 -16
  90. package/components/input-date-range/input-date-range.module.d.ts +0 -22
  91. package/components/input-date-time/index.d.ts +0 -3
  92. package/components/input-date-time/input-date-time.component.d.ts +0 -87
  93. package/components/input-date-time/input-date-time.directive.d.ts +0 -17
  94. package/components/input-date-time/input-date-time.module.d.ts +0 -23
  95. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
  96. package/components/input-month/index.d.ts +0 -3
  97. package/components/input-month/input-month.component.d.ts +0 -44
  98. package/components/input-month/input-month.directive.d.ts +0 -19
  99. package/components/input-month/input-month.module.d.ts +0 -19
  100. package/components/input-month-range/index.d.ts +0 -3
  101. package/components/input-month-range/input-month-range.component.d.ts +0 -38
  102. package/components/input-month-range/input-month-range.directive.d.ts +0 -23
  103. package/components/input-month-range/input-month-range.module.d.ts +0 -18
  104. package/components/input-number/index.d.ts +0 -4
  105. package/components/input-number/input-number.component.d.ts +0 -63
  106. package/components/input-number/input-number.directive.d.ts +0 -16
  107. package/components/input-number/input-number.module.d.ts +0 -18
  108. package/components/input-number/input-number.options.d.ts +0 -29
  109. package/components/input-password/index.d.ts +0 -4
  110. package/components/input-password/input-password.component.d.ts +0 -33
  111. package/components/input-password/input-password.directive.d.ts +0 -15
  112. package/components/input-password/input-password.module.d.ts +0 -19
  113. package/components/input-password/input-password.options.d.ts +0 -25
  114. package/components/input-phone/index.d.ts +0 -4
  115. package/components/input-phone/input-phone.component.d.ts +0 -49
  116. package/components/input-phone/input-phone.directive.d.ts +0 -13
  117. package/components/input-phone/input-phone.module.d.ts +0 -12
  118. package/components/input-phone/input-phone.options.d.ts +0 -13
  119. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  120. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  121. package/components/input-phone/utils/index.d.ts +0 -2
  122. package/components/input-phone-international/index.d.ts +0 -3
  123. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  124. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  125. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  126. package/components/input-range/index.d.ts +0 -2
  127. package/components/input-range/input-range.component.d.ts +0 -56
  128. package/components/input-range/input-range.module.d.ts +0 -19
  129. package/components/input-slider/index.d.ts +0 -2
  130. package/components/input-slider/input-slider.component.d.ts +0 -42
  131. package/components/input-slider/input-slider.module.d.ts +0 -18
  132. package/components/input-tag/index.d.ts +0 -3
  133. package/components/input-tag/input-tag.component.d.ts +0 -103
  134. package/components/input-tag/input-tag.module.d.ts +0 -22
  135. package/components/input-tag/input-tag.options.d.ts +0 -27
  136. package/components/input-time/index.d.ts +0 -4
  137. package/components/input-time/input-time.component.d.ts +0 -62
  138. package/components/input-time/input-time.directive.d.ts +0 -17
  139. package/components/input-time/input-time.module.d.ts +0 -23
  140. package/components/input-time/input-time.options.d.ts +0 -42
  141. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  142. package/components/input-year/index.d.ts +0 -3
  143. package/components/input-year/input-year.component.d.ts +0 -36
  144. package/components/input-year/input-year.directive.d.ts +0 -14
  145. package/components/input-year/input-year.module.d.ts +0 -18
  146. package/components/island/index.d.ts +0 -1
  147. package/components/island/island.directive.d.ts +0 -20
  148. package/components/multi-select/hide-selected.pipe.d.ts +0 -11
  149. package/components/multi-select/index.d.ts +0 -10
  150. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -23
  151. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
  152. package/components/multi-select/multi-select.component.d.ts +0 -71
  153. package/components/multi-select/multi-select.directive.d.ts +0 -14
  154. package/components/multi-select/multi-select.module.d.ts +0 -31
  155. package/components/multi-select/multi-select.options.d.ts +0 -14
  156. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
  157. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
  158. package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
  159. package/components/multi-select-option/index.d.ts +0 -2
  160. package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
  161. package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
  162. package/components/primitive-textfield/index.d.ts +0 -7
  163. package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -21
  164. package/components/primitive-textfield/primitive-textfield-types.d.ts +0 -11
  165. package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -73
  166. package/components/primitive-textfield/primitive-textfield.directive.d.ts +0 -14
  167. package/components/primitive-textfield/primitive-textfield.module.d.ts +0 -21
  168. package/components/primitive-textfield/textfield/textfield.component.d.ts +0 -13
  169. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +0 -22
  170. package/components/select/index.d.ts +0 -6
  171. package/components/select/native-select/native-select-group.component.d.ts +0 -17
  172. package/components/select/native-select/native-select.component.d.ts +0 -16
  173. package/components/select/select.component.d.ts +0 -45
  174. package/components/select/select.directive.d.ts +0 -16
  175. package/components/select/select.module.d.ts +0 -24
  176. package/components/select/select.options.d.ts +0 -25
  177. package/components/select-option/index.d.ts +0 -2
  178. package/components/select-option/select-option.component.d.ts +0 -27
  179. package/components/select-option/select-option.module.d.ts +0 -10
  180. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  181. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  182. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -11
  183. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  184. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  185. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  186. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  187. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  188. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  189. package/components/sheet/index.d.ts +0 -14
  190. package/components/sheet/sheet-options.d.ts +0 -27
  191. package/components/sheet/sheet-tokens.d.ts +0 -18
  192. package/components/sheet/sheet.d.ts +0 -21
  193. package/components/sheet/sheet.directive.d.ts +0 -17
  194. package/components/sheet/sheet.module.d.ts +0 -24
  195. package/components/sheet/sheet.service.d.ts +0 -17
  196. package/components/svg/content-processor.d.ts +0 -19
  197. package/components/svg/deprecated-icons.d.ts +0 -5
  198. package/components/svg/index.d.ts +0 -5
  199. package/components/svg/svg-options.d.ts +0 -50
  200. package/components/svg/svg.component.d.ts +0 -50
  201. package/components/svg/svg.service.d.ts +0 -21
  202. package/components/table-bar/index.d.ts +0 -4
  203. package/components/table-bar/table-bar.component.d.ts +0 -17
  204. package/components/table-bar/table-bar.directive.d.ts +0 -11
  205. package/components/table-bar/table-bar.options.d.ts +0 -31
  206. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  207. package/components/table-bar/table-bars.service.d.ts +0 -11
  208. package/components/tag/index.d.ts +0 -3
  209. package/components/tag/tag.component.d.ts +0 -44
  210. package/components/tag/tag.module.d.ts +0 -16
  211. package/components/tag/tag.options.d.ts +0 -27
  212. package/components/textarea/index.d.ts +0 -3
  213. package/components/textarea/textarea.component.d.ts +0 -54
  214. package/components/textarea/textarea.directive.d.ts +0 -12
  215. package/components/textarea/textarea.module.d.ts +0 -21
  216. package/components/tooltip/index.d.ts +0 -2
  217. package/components/tooltip/tooltip.component.d.ts +0 -12
  218. package/components/tooltip/tooltip.module.d.ts +0 -13
  219. package/directives/index.d.ts +0 -5
  220. package/directives/legacy-dropdown-open-monitor/index.d.ts +0 -1
  221. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +0 -11
  222. package/directives/textfield-controller/index.d.ts +0 -14
  223. package/directives/textfield-controller/textfield-appearance.directive.d.ts +0 -9
  224. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +0 -9
  225. package/directives/textfield-controller/textfield-controller.module.d.ts +0 -17
  226. package/directives/textfield-controller/textfield-controller.provider.d.ts +0 -4
  227. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +0 -10
  228. package/directives/textfield-controller/textfield-filler.directive.d.ts +0 -9
  229. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +0 -12
  230. package/directives/textfield-controller/textfield-icon.directive.d.ts +0 -12
  231. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +0 -9
  232. package/directives/textfield-controller/textfield-postfix.directive.d.ts +0 -9
  233. package/directives/textfield-controller/textfield-prefix.directive.d.ts +0 -9
  234. package/directives/textfield-controller/textfield-size.directive.d.ts +0 -10
  235. package/directives/textfield-controller/textfield.controller.d.ts +0 -41
  236. package/directives/textfield-controller/textfield.options.d.ts +0 -19
  237. package/directives/unfinished-validator/index.d.ts +0 -2
  238. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +0 -10
  239. package/directives/unfinished-validator/unfinished.validator.d.ts +0 -4
  240. package/directives/value-accessor/index.d.ts +0 -3
  241. package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
  242. package/directives/value-accessor/value-accessor.module.d.ts +0 -7
  243. package/directives/value-accessor/value-accessor.provider.d.ts +0 -2
  244. package/directives/wrapper/README.md +0 -19
  245. package/directives/wrapper/index.d.ts +0 -2
  246. package/directives/wrapper/wrapper.directive.d.ts +0 -22
  247. package/directives/wrapper/wrapper.module.d.ts +0 -10
  248. package/fesm2022/taiga-ui-legacy-classes.mjs +0 -415
  249. package/fesm2022/taiga-ui-legacy-classes.mjs.map +0 -1
  250. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +0 -85
  251. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +0 -1
  252. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
  253. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  254. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -300
  255. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  256. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  257. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  258. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  259. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  260. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  261. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  262. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -356
  263. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
  264. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -465
  265. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
  266. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  267. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  268. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
  269. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
  270. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  271. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  272. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -390
  273. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
  274. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  275. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  276. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  277. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  278. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  279. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  280. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
  281. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
  282. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +0 -199
  283. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +0 -1
  284. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +0 -524
  285. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +0 -1
  286. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -430
  287. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  288. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  289. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  290. package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
  291. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
  292. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  293. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  294. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +0 -47
  295. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +0 -1
  296. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +0 -690
  297. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +0 -1
  298. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +0 -454
  299. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +0 -1
  300. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +0 -88
  301. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +0 -1
  302. package/fesm2022/taiga-ui-legacy-components-select.mjs +0 -354
  303. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +0 -1
  304. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -577
  305. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  306. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
  307. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  308. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -147
  309. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
  310. package/fesm2022/taiga-ui-legacy-components-tag.mjs +0 -225
  311. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +0 -1
  312. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +0 -262
  313. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +0 -1
  314. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +0 -53
  315. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +0 -1
  316. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -50
  317. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +0 -1
  318. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +0 -401
  319. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +0 -1
  320. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -50
  321. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +0 -1
  322. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +0 -44
  323. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +0 -1
  324. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +0 -99
  325. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +0 -1
  326. package/fesm2022/taiga-ui-legacy-directives.mjs +0 -10
  327. package/fesm2022/taiga-ui-legacy-directives.mjs.map +0 -1
  328. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -59
  329. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  330. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  331. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  332. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  333. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  334. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  335. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  336. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  337. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  338. package/fesm2022/taiga-ui-legacy-tokens.mjs +0 -384
  339. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +0 -1
  340. package/fesm2022/taiga-ui-legacy-utils.mjs +0 -268
  341. package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
  342. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  343. package/pipes/format-phone/index.d.ts +0 -1
  344. package/pipes/index.d.ts +0 -3
  345. package/pipes/iso-to-country-code/index.d.ts +0 -1
  346. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  347. package/pipes/to-country-code/index.d.ts +0 -1
  348. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  349. package/services/index.d.ts +0 -1
  350. package/services/static-request.service.d.ts +0 -11
  351. package/styles/mixins/mixins.less +0 -239
  352. package/styles/mixins/mixins.scss +0 -224
  353. package/styles/mixins/textfield.less +0 -324
  354. package/styles/mixins/textfield.scss +0 -308
  355. package/styles/taiga-ui-local.less +0 -3
  356. package/styles/taiga-ui-local.scss +0 -3
  357. package/tokens/countries-masks.d.ts +0 -9
  358. package/tokens/focusable-item-accessor.d.ts +0 -25
  359. package/tokens/fonts-ready.d.ts +0 -6
  360. package/tokens/icons.d.ts +0 -6
  361. package/tokens/index.d.ts +0 -14
  362. package/tokens/is-apple.d.ts +0 -6
  363. package/tokens/is-chromium.d.ts +0 -6
  364. package/tokens/is-firefox.d.ts +0 -6
  365. package/tokens/is-stackblitz.d.ts +0 -5
  366. package/tokens/month-formatter.d.ts +0 -10
  367. package/tokens/sanitizer.d.ts +0 -6
  368. package/tokens/textfield-appearance.d.ts +0 -7
  369. package/tokens/textfield-host.d.ts +0 -23
  370. package/tokens/touch-supported.d.ts +0 -5
  371. package/tokens/value-accessor.d.ts +0 -7
  372. package/utils/capitalize-first-letter.d.ts +0 -4
  373. package/utils/date-mode-maskito-adapter.d.ts +0 -6
  374. package/utils/format-phone.d.ts +0 -30
  375. package/utils/get-border.d.ts +0 -5
  376. package/utils/get-max-allowed-phone-length.d.ts +0 -24
  377. package/utils/get-safe-area-size.d.ts +0 -7
  378. package/utils/icons-path-factory.d.ts +0 -13
  379. package/utils/index.d.ts +0 -14
  380. package/utils/is-apple.d.ts +0 -5
  381. package/utils/is-presumed-html-string.d.ts +0 -4
  382. package/utils/iso-to-country-code.d.ts +0 -13
  383. package/utils/not-kz-region.d.ts +0 -20
  384. package/utils/process-icon.d.ts +0 -4
  385. package/utils/specific-dropdown-controllers.d.ts +0 -4
  386. 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\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG;AACG,SAAU,wBAAwB,CAAC,KAAa,EAAA;AAClD,IAAA,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA,EAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;AAC9D;;ACFA;;AAEG;AACU,MAAA,6BAA6B,GAAyC;AAC/E,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,GAAG,EAAE,YA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ACxC;AAED,IAAA,IACI,CAAC,YAAY;AACb,QAAA,CAAC,WAAW;AACZ,QAAA,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;AACzB,QAAA,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC;AAC1B,QAAA,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC1B,QAAA,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B;QACE,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAY,SAAA,EAAA,IAAI,CAAG,CAAA,CAAA,CAAC;;IAGlD,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC;IAEzC,OAAO,CAAA,OAAA,EAAU,IAAI,CAAA,kEAAA,EACjB,KAAK,GAAG,EACZ,CAAA,YAAA,EACI,MAAM,GAAG,EACb,CAAA,oCAAA,EAAuC,KAAK,CAAA,CAAA,EAAI,MAAM,CAAA,UAAA,EAAa,CAAC,KAAK,GAAG,CAAC,CACzE,KAAA,EAAA,CAAC,MAAM,GAAG,CACd,CAAA,EAAA,EAAK,GAAG,CAAA,gBAAA,CAAkB;AAC9B;;ACtDA;;AAEG;AACI,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AACzE,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,KAAK,EAAE,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
- }