@taiga-ui/legacy 4.51.0 → 4.52.0-canary.0ec45da

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 (548) hide show
  1. package/classes/abstract-textfield-host.d.ts +1 -1
  2. package/classes/controller.d.ts +1 -1
  3. package/classes/multiple-control.d.ts +1 -1
  4. package/classes/nullable-control.d.ts +1 -1
  5. package/components/dialog/dialog.component.d.ts +20 -0
  6. package/components/dialog/dialog.directive.d.ts +7 -0
  7. package/components/dialog/dialog.factory.d.ts +16 -0
  8. package/components/dialog/dialog.interfaces.d.ts +31 -0
  9. package/components/dialog/dialog.service.d.ts +7 -0
  10. package/components/dialog/dialog.tokens.d.ts +8 -0
  11. package/components/dialog/index.d.ts +6 -0
  12. package/components/index.d.ts +2 -16
  13. package/components/input/input.module.d.ts +1 -1
  14. package/components/input-date-range/input-date-range.module.d.ts +8 -9
  15. package/components/input-date-time/input-date-time.component.d.ts +4 -3
  16. package/components/input-date-time/input-date-time.module.d.ts +1 -1
  17. package/components/input-month-range/input-month-range.module.d.ts +1 -1
  18. package/components/input-range/input-range.component.d.ts +1 -1
  19. package/components/input-tag/input-tag.module.d.ts +1 -1
  20. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  21. package/components/multi-select/multi-select.module.d.ts +9 -10
  22. package/components/multi-select/native-multi-select/native-multi-select.d.ts +1 -1
  23. package/components/pdf-viewer/index.d.ts +4 -0
  24. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  25. package/components/pdf-viewer/pdf-viewer.directive.d.ts +7 -0
  26. package/components/pdf-viewer/pdf-viewer.options.d.ts +13 -0
  27. package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
  28. package/components/select/select.module.d.ts +1 -1
  29. package/fesm2022/taiga-ui-legacy-classes.mjs +23 -24
  30. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +6 -6
  32. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +129 -0
  34. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  35. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +28 -32
  36. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +31 -31
  38. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +14 -14
  40. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +23 -23
  42. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +26 -26
  44. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +20 -21
  46. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +24 -24
  48. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-legacy-components-input.mjs +17 -18
  50. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +8 -8
  52. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +49 -53
  54. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +82 -0
  56. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  57. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +30 -30
  58. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +9 -9
  60. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-legacy-components-select.mjs +36 -37
  62. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-legacy-components-tag.mjs +14 -15
  64. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +24 -24
  66. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +8 -8
  68. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-legacy-components.mjs +2 -16
  70. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
  72. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +35 -35
  74. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -6
  76. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
  78. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +9 -9
  80. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-legacy-tokens.mjs +1 -1
  82. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-legacy-utils.mjs +1 -7
  84. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-legacy.mjs +0 -2
  86. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  87. package/index.d.ts +0 -2
  88. package/package.json +12 -186
  89. package/styles/mixins/textfield.less +3 -1
  90. package/utils/icons-path-factory.d.ts +1 -1
  91. package/utils/index.d.ts +0 -1
  92. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  93. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  94. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  95. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  96. package/components/color-selector/color-selector.component.d.ts +0 -47
  97. package/components/color-selector/color-selector.module.d.ts +0 -24
  98. package/components/color-selector/color-selector.options.d.ts +0 -25
  99. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  100. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  101. package/components/color-selector/index.d.ts +0 -16
  102. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  103. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  104. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  105. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  106. package/components/color-selector/palette/palette.component.d.ts +0 -10
  107. package/components/color-selector/palette/palette.module.d.ts +0 -13
  108. package/components/color-selector/services/picker.service.d.ts +0 -15
  109. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  110. package/components/combo-box/combo-box.component.d.ts +0 -52
  111. package/components/combo-box/combo-box.directive.d.ts +0 -13
  112. package/components/combo-box/combo-box.module.d.ts +0 -20
  113. package/components/combo-box/index.d.ts +0 -4
  114. package/components/input-color/index.d.ts +0 -2
  115. package/components/input-color/input-color.component.d.ts +0 -30
  116. package/components/input-color/input-color.module.d.ts +0 -17
  117. package/components/input-copy/index.d.ts +0 -4
  118. package/components/input-copy/input-copy.component.d.ts +0 -33
  119. package/components/input-copy/input-copy.directive.d.ts +0 -11
  120. package/components/input-copy/input-copy.module.d.ts +0 -18
  121. package/components/input-copy/input-copy.options.d.ts +0 -26
  122. package/components/input-date/index.d.ts +0 -3
  123. package/components/input-date/input-date.component.d.ts +0 -62
  124. package/components/input-date/input-date.directive.d.ts +0 -19
  125. package/components/input-date/input-date.module.d.ts +0 -24
  126. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  127. package/components/input-date-multi/index.d.ts +0 -2
  128. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  129. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  130. package/components/input-month/index.d.ts +0 -3
  131. package/components/input-month/input-month.component.d.ts +0 -44
  132. package/components/input-month/input-month.directive.d.ts +0 -19
  133. package/components/input-month/input-month.module.d.ts +0 -19
  134. package/components/input-password/index.d.ts +0 -4
  135. package/components/input-password/input-password.component.d.ts +0 -33
  136. package/components/input-password/input-password.directive.d.ts +0 -15
  137. package/components/input-password/input-password.module.d.ts +0 -19
  138. package/components/input-password/input-password.options.d.ts +0 -25
  139. package/components/input-phone/index.d.ts +0 -4
  140. package/components/input-phone/input-phone.component.d.ts +0 -49
  141. package/components/input-phone/input-phone.directive.d.ts +0 -13
  142. package/components/input-phone/input-phone.module.d.ts +0 -12
  143. package/components/input-phone/input-phone.options.d.ts +0 -13
  144. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  145. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  146. package/components/input-phone/utils/index.d.ts +0 -2
  147. package/components/input-phone-international/index.d.ts +0 -3
  148. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  149. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  150. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  151. package/components/input-time/index.d.ts +0 -4
  152. package/components/input-time/input-time.component.d.ts +0 -62
  153. package/components/input-time/input-time.directive.d.ts +0 -17
  154. package/components/input-time/input-time.module.d.ts +0 -23
  155. package/components/input-time/input-time.options.d.ts +0 -42
  156. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  157. package/components/input-year/index.d.ts +0 -3
  158. package/components/input-year/input-year.component.d.ts +0 -36
  159. package/components/input-year/input-year.directive.d.ts +0 -14
  160. package/components/input-year/input-year.module.d.ts +0 -18
  161. package/components/island/index.d.ts +0 -1
  162. package/components/island/island.directive.d.ts +0 -20
  163. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  164. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  165. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -10
  166. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  167. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  168. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  169. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  170. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  171. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  172. package/components/sheet/index.d.ts +0 -14
  173. package/components/sheet/sheet-options.d.ts +0 -27
  174. package/components/sheet/sheet-tokens.d.ts +0 -18
  175. package/components/sheet/sheet.d.ts +0 -21
  176. package/components/sheet/sheet.directive.d.ts +0 -17
  177. package/components/sheet/sheet.module.d.ts +0 -24
  178. package/components/sheet/sheet.service.d.ts +0 -17
  179. package/components/svg/content-processor.d.ts +0 -19
  180. package/components/svg/deprecated-icons.d.ts +0 -5
  181. package/components/svg/index.d.ts +0 -5
  182. package/components/svg/svg-options.d.ts +0 -50
  183. package/components/svg/svg.component.d.ts +0 -50
  184. package/components/svg/svg.service.d.ts +0 -21
  185. package/components/table-bar/index.d.ts +0 -4
  186. package/components/table-bar/table-bar.component.d.ts +0 -17
  187. package/components/table-bar/table-bar.directive.d.ts +0 -11
  188. package/components/table-bar/table-bar.options.d.ts +0 -31
  189. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  190. package/components/table-bar/table-bars.service.d.ts +0 -11
  191. package/esm2022/classes/abstract-native-select.mjs +0 -49
  192. package/esm2022/classes/abstract-textfield-host.mjs +0 -37
  193. package/esm2022/classes/control.mjs +0 -181
  194. package/esm2022/classes/controller.mjs +0 -18
  195. package/esm2022/classes/index.mjs +0 -10
  196. package/esm2022/classes/interactive.mjs +0 -82
  197. package/esm2022/classes/multiple-control.mjs +0 -21
  198. package/esm2022/classes/named-day.mjs +0 -14
  199. package/esm2022/classes/nullable-control.mjs +0 -18
  200. package/esm2022/classes/stringifiable-item.mjs +0 -14
  201. package/esm2022/classes/taiga-ui-legacy-classes.mjs +0 -5
  202. package/esm2022/components/arrow/arrow.component.mjs +0 -41
  203. package/esm2022/components/arrow/arrow.options.mjs +0 -20
  204. package/esm2022/components/arrow/arrow.providers.mjs +0 -23
  205. package/esm2022/components/arrow/index.mjs +0 -4
  206. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +0 -5
  207. package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +0 -59
  208. package/esm2022/components/color-selector/color-edit/color-edit.module.mjs +0 -56
  209. package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +0 -70
  210. package/esm2022/components/color-selector/color-picker/color-picker.module.mjs +0 -25
  211. package/esm2022/components/color-selector/color-selector.component.mjs +0 -191
  212. package/esm2022/components/color-selector/color-selector.module.mjs +0 -67
  213. package/esm2022/components/color-selector/color-selector.options.mjs +0 -78
  214. package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +0 -34
  215. package/esm2022/components/color-selector/flat-picker/flat-picker.module.mjs +0 -23
  216. package/esm2022/components/color-selector/index.mjs +0 -17
  217. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +0 -61
  218. package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.module.mjs +0 -23
  219. package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +0 -31
  220. package/esm2022/components/color-selector/linear-picker/linear-picker.module.mjs +0 -23
  221. package/esm2022/components/color-selector/palette/palette.component.mjs +0 -23
  222. package/esm2022/components/color-selector/palette/palette.module.mjs +0 -25
  223. package/esm2022/components/color-selector/services/picker.service.mjs +0 -31
  224. package/esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs +0 -5
  225. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +0 -34
  226. package/esm2022/components/combo-box/combo-box.component.mjs +0 -183
  227. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -28
  228. package/esm2022/components/combo-box/combo-box.module.mjs +0 -71
  229. package/esm2022/components/combo-box/index.mjs +0 -5
  230. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +0 -5
  231. package/esm2022/components/index.mjs +0 -34
  232. package/esm2022/components/input/index.mjs +0 -4
  233. package/esm2022/components/input/input.component.mjs +0 -97
  234. package/esm2022/components/input/input.directive.mjs +0 -25
  235. package/esm2022/components/input/input.module.mjs +0 -42
  236. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +0 -5
  237. package/esm2022/components/input-color/index.mjs +0 -3
  238. package/esm2022/components/input-color/input-color.component.mjs +0 -85
  239. package/esm2022/components/input-color/input-color.module.mjs +0 -43
  240. package/esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs +0 -5
  241. package/esm2022/components/input-copy/index.mjs +0 -5
  242. package/esm2022/components/input-copy/input-copy.component.mjs +0 -105
  243. package/esm2022/components/input-copy/input-copy.directive.mjs +0 -24
  244. package/esm2022/components/input-copy/input-copy.module.mjs +0 -55
  245. package/esm2022/components/input-copy/input-copy.options.mjs +0 -24
  246. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +0 -5
  247. package/esm2022/components/input-date/index.mjs +0 -4
  248. package/esm2022/components/input-date/input-date.component.mjs +0 -220
  249. package/esm2022/components/input-date/input-date.directive.mjs +0 -40
  250. package/esm2022/components/input-date/input-date.module.mjs +0 -75
  251. package/esm2022/components/input-date/native-date/native-date.component.mjs +0 -53
  252. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +0 -5
  253. package/esm2022/components/input-date-multi/index.mjs +0 -3
  254. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +0 -207
  255. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +0 -67
  256. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +0 -5
  257. package/esm2022/components/input-date-range/index.mjs +0 -4
  258. package/esm2022/components/input-date-range/input-date-range.component.mjs +0 -256
  259. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -36
  260. package/esm2022/components/input-date-range/input-date-range.module.mjs +0 -71
  261. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +0 -5
  262. package/esm2022/components/input-date-time/index.mjs +0 -4
  263. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -315
  264. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -37
  265. package/esm2022/components/input-date-time/input-date-time.module.mjs +0 -78
  266. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +0 -49
  267. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +0 -5
  268. package/esm2022/components/input-month/index.mjs +0 -4
  269. package/esm2022/components/input-month/input-month.component.mjs +0 -135
  270. package/esm2022/components/input-month/input-month.directive.mjs +0 -46
  271. package/esm2022/components/input-month/input-month.module.mjs +0 -57
  272. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +0 -5
  273. package/esm2022/components/input-month-range/index.mjs +0 -4
  274. package/esm2022/components/input-month-range/input-month-range.component.mjs +0 -123
  275. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -52
  276. package/esm2022/components/input-month-range/input-month-range.module.mjs +0 -53
  277. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +0 -5
  278. package/esm2022/components/input-number/index.mjs +0 -5
  279. package/esm2022/components/input-number/input-number.component.mjs +0 -284
  280. package/esm2022/components/input-number/input-number.directive.mjs +0 -38
  281. package/esm2022/components/input-number/input-number.module.mjs +0 -48
  282. package/esm2022/components/input-number/input-number.options.mjs +0 -30
  283. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +0 -5
  284. package/esm2022/components/input-password/index.mjs +0 -5
  285. package/esm2022/components/input-password/input-password.component.mjs +0 -80
  286. package/esm2022/components/input-password/input-password.directive.mjs +0 -34
  287. package/esm2022/components/input-password/input-password.module.mjs +0 -59
  288. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  289. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +0 -5
  290. package/esm2022/components/input-phone/index.mjs +0 -5
  291. package/esm2022/components/input-phone/input-phone.component.mjs +0 -216
  292. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -34
  293. package/esm2022/components/input-phone/input-phone.module.mjs +0 -44
  294. package/esm2022/components/input-phone/input-phone.options.mjs +0 -18
  295. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +0 -5
  296. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  297. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  298. package/esm2022/components/input-phone/utils/index.mjs +0 -3
  299. package/esm2022/components/input-phone-international/index.mjs +0 -4
  300. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -178
  301. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -25
  302. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +0 -5
  303. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +0 -10
  304. package/esm2022/components/input-range/index.mjs +0 -3
  305. package/esm2022/components/input-range/input-range.component.mjs +0 -207
  306. package/esm2022/components/input-range/input-range.module.mjs +0 -55
  307. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +0 -5
  308. package/esm2022/components/input-slider/index.mjs +0 -3
  309. package/esm2022/components/input-slider/input-slider.component.mjs +0 -154
  310. package/esm2022/components/input-slider/input-slider.module.mjs +0 -48
  311. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +0 -5
  312. package/esm2022/components/input-tag/index.mjs +0 -4
  313. package/esm2022/components/input-tag/input-tag.component.mjs +0 -436
  314. package/esm2022/components/input-tag/input-tag.module.mjs +0 -67
  315. package/esm2022/components/input-tag/input-tag.options.mjs +0 -27
  316. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +0 -5
  317. package/esm2022/components/input-time/index.mjs +0 -5
  318. package/esm2022/components/input-time/input-time.component.mjs +0 -238
  319. package/esm2022/components/input-time/input-time.directive.mjs +0 -40
  320. package/esm2022/components/input-time/input-time.module.mjs +0 -71
  321. package/esm2022/components/input-time/input-time.options.mjs +0 -39
  322. package/esm2022/components/input-time/native-time/native-time.component.mjs +0 -67
  323. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +0 -5
  324. package/esm2022/components/input-year/index.mjs +0 -4
  325. package/esm2022/components/input-year/input-year.component.mjs +0 -110
  326. package/esm2022/components/input-year/input-year.directive.mjs +0 -32
  327. package/esm2022/components/input-year/input-year.module.mjs +0 -53
  328. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +0 -5
  329. package/esm2022/components/island/index.mjs +0 -2
  330. package/esm2022/components/island/island.directive.mjs +0 -62
  331. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +0 -5
  332. package/esm2022/components/multi-select/hide-selected.pipe.mjs +0 -44
  333. package/esm2022/components/multi-select/index.mjs +0 -11
  334. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -98
  335. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -94
  336. package/esm2022/components/multi-select/multi-select.component.mjs +0 -233
  337. package/esm2022/components/multi-select/multi-select.directive.mjs +0 -32
  338. package/esm2022/components/multi-select/multi-select.module.mjs +0 -113
  339. package/esm2022/components/multi-select/multi-select.options.mjs +0 -17
  340. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +0 -60
  341. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +0 -56
  342. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +0 -19
  343. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +0 -5
  344. package/esm2022/components/multi-select-option/index.mjs +0 -3
  345. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +0 -25
  346. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +0 -20
  347. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +0 -5
  348. package/esm2022/components/primitive-textfield/index.mjs +0 -7
  349. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +0 -17
  350. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +0 -2
  351. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +0 -254
  352. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +0 -33
  353. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +0 -66
  354. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +0 -5
  355. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +0 -39
  356. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +0 -66
  357. package/esm2022/components/select/index.mjs +0 -7
  358. package/esm2022/components/select/native-select/native-select-group.component.mjs +0 -64
  359. package/esm2022/components/select/native-select/native-select.component.mjs +0 -60
  360. package/esm2022/components/select/select.component.mjs +0 -119
  361. package/esm2022/components/select/select.directive.mjs +0 -34
  362. package/esm2022/components/select/select.module.mjs +0 -87
  363. package/esm2022/components/select/select.options.mjs +0 -24
  364. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +0 -5
  365. package/esm2022/components/select-option/index.mjs +0 -3
  366. package/esm2022/components/select-option/select-option.component.mjs +0 -65
  367. package/esm2022/components/select-option/select-option.module.mjs +0 -21
  368. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +0 -5
  369. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +0 -117
  370. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +0 -42
  371. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +0 -27
  372. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +0 -31
  373. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +0 -46
  374. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +0 -39
  375. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +0 -38
  376. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +0 -52
  377. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +0 -77
  378. package/esm2022/components/sheet/index.mjs +0 -14
  379. package/esm2022/components/sheet/sheet-options.mjs +0 -24
  380. package/esm2022/components/sheet/sheet-tokens.mjs +0 -17
  381. package/esm2022/components/sheet/sheet.directive.mjs +0 -40
  382. package/esm2022/components/sheet/sheet.mjs +0 -2
  383. package/esm2022/components/sheet/sheet.module.mjs +0 -75
  384. package/esm2022/components/sheet/sheet.service.mjs +0 -52
  385. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +0 -5
  386. package/esm2022/components/svg/content-processor.mjs +0 -41
  387. package/esm2022/components/svg/deprecated-icons.mjs +0 -63
  388. package/esm2022/components/svg/index.mjs +0 -6
  389. package/esm2022/components/svg/svg-options.mjs +0 -83
  390. package/esm2022/components/svg/svg.component.mjs +0 -150
  391. package/esm2022/components/svg/svg.service.mjs +0 -64
  392. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +0 -5
  393. package/esm2022/components/table-bar/index.mjs +0 -5
  394. package/esm2022/components/table-bar/table-bar.component.mjs +0 -37
  395. package/esm2022/components/table-bar/table-bar.directive.mjs +0 -25
  396. package/esm2022/components/table-bar/table-bar.options.mjs +0 -34
  397. package/esm2022/components/table-bar/table-bars-host.component.mjs +0 -39
  398. package/esm2022/components/table-bar/table-bars.service.mjs +0 -22
  399. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +0 -5
  400. package/esm2022/components/tag/index.mjs +0 -4
  401. package/esm2022/components/tag/tag.component.mjs +0 -158
  402. package/esm2022/components/tag/tag.module.mjs +0 -42
  403. package/esm2022/components/tag/tag.options.mjs +0 -26
  404. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +0 -5
  405. package/esm2022/components/taiga-ui-legacy-components.mjs +0 -5
  406. package/esm2022/components/textarea/index.mjs +0 -4
  407. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +0 -5
  408. package/esm2022/components/textarea/textarea.component.mjs +0 -175
  409. package/esm2022/components/textarea/textarea.directive.mjs +0 -25
  410. package/esm2022/components/textarea/textarea.module.mjs +0 -68
  411. package/esm2022/components/tooltip/index.mjs +0 -3
  412. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +0 -5
  413. package/esm2022/components/tooltip/tooltip.component.mjs +0 -27
  414. package/esm2022/components/tooltip/tooltip.module.mjs +0 -24
  415. package/esm2022/directives/index.mjs +0 -6
  416. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +0 -2
  417. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +0 -44
  418. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -5
  419. package/esm2022/directives/taiga-ui-legacy-directives.mjs +0 -5
  420. package/esm2022/directives/textfield-controller/index.mjs +0 -15
  421. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +0 -5
  422. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +0 -34
  423. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +0 -28
  424. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +0 -72
  425. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +0 -44
  426. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +0 -28
  427. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +0 -28
  428. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +0 -24
  429. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +0 -24
  430. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +0 -32
  431. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +0 -28
  432. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +0 -28
  433. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +0 -28
  434. package/esm2022/directives/textfield-controller/textfield.controller.mjs +0 -49
  435. package/esm2022/directives/textfield-controller/textfield.options.mjs +0 -21
  436. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  437. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -5
  438. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -30
  439. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -15
  440. package/esm2022/directives/value-accessor/index.mjs +0 -4
  441. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +0 -5
  442. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +0 -17
  443. package/esm2022/directives/value-accessor/value-accessor.module.mjs +0 -17
  444. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +0 -10
  445. package/esm2022/directives/wrapper/index.mjs +0 -3
  446. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +0 -5
  447. package/esm2022/directives/wrapper/wrapper.directive.mjs +0 -77
  448. package/esm2022/directives/wrapper/wrapper.module.mjs +0 -20
  449. package/esm2022/index.mjs +0 -8
  450. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +0 -54
  451. package/esm2022/pipes/format-phone/index.mjs +0 -2
  452. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +0 -5
  453. package/esm2022/pipes/index.mjs +0 -4
  454. package/esm2022/pipes/iso-to-country-code/index.mjs +0 -2
  455. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +0 -44
  456. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -5
  457. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +0 -5
  458. package/esm2022/pipes/to-country-code/index.mjs +0 -2
  459. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +0 -5
  460. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +0 -74
  461. package/esm2022/services/index.mjs +0 -2
  462. package/esm2022/services/static-request.service.mjs +0 -36
  463. package/esm2022/services/taiga-ui-legacy-services.mjs +0 -5
  464. package/esm2022/taiga-ui-legacy.mjs +0 -5
  465. package/esm2022/tokens/countries-masks.mjs +0 -257
  466. package/esm2022/tokens/focusable-item-accessor.mjs +0 -14
  467. package/esm2022/tokens/fonts-ready.mjs +0 -10
  468. package/esm2022/tokens/icons.mjs +0 -9
  469. package/esm2022/tokens/index.mjs +0 -15
  470. package/esm2022/tokens/is-apple.mjs +0 -11
  471. package/esm2022/tokens/is-chromium.mjs +0 -10
  472. package/esm2022/tokens/is-firefox.mjs +0 -11
  473. package/esm2022/tokens/is-stackblitz.mjs +0 -9
  474. package/esm2022/tokens/month-formatter.mjs +0 -18
  475. package/esm2022/tokens/sanitizer.mjs +0 -7
  476. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +0 -5
  477. package/esm2022/tokens/textfield-appearance.mjs +0 -10
  478. package/esm2022/tokens/textfield-host.mjs +0 -14
  479. package/esm2022/tokens/touch-supported.mjs +0 -9
  480. package/esm2022/tokens/value-accessor.mjs +0 -7
  481. package/esm2022/utils/capitalize-first-letter.mjs +0 -7
  482. package/esm2022/utils/date-mode-maskito-adapter.mjs +0 -9
  483. package/esm2022/utils/format-phone.mjs +0 -60
  484. package/esm2022/utils/get-border.mjs +0 -23
  485. package/esm2022/utils/get-max-allowed-phone-length.mjs +0 -26
  486. package/esm2022/utils/get-safe-area-size.mjs +0 -18
  487. package/esm2022/utils/icons-path-factory.mjs +0 -22
  488. package/esm2022/utils/index.mjs +0 -14
  489. package/esm2022/utils/is-apple.mjs +0 -6
  490. package/esm2022/utils/is-presumed-html-string.mjs +0 -8
  491. package/esm2022/utils/iso-to-country-code.mjs +0 -16
  492. package/esm2022/utils/not-kz-region.mjs +0 -24
  493. package/esm2022/utils/process-icon.mjs +0 -34
  494. package/esm2022/utils/specific-dropdown-controllers.mjs +0 -9
  495. package/esm2022/utils/status.mjs +0 -2
  496. package/esm2022/utils/taiga-ui-legacy-utils.mjs +0 -5
  497. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
  498. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  499. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -301
  500. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  501. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  502. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  503. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  504. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  505. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  506. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  507. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  508. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  509. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  510. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  511. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  512. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  513. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  514. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  515. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  516. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  517. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -434
  518. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  519. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  520. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  521. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  522. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  523. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -574
  524. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  525. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -389
  526. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  527. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
  528. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
  529. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -60
  530. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  531. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  532. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  533. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  534. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  535. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  536. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  537. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  538. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  539. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  540. package/pipes/format-phone/index.d.ts +0 -1
  541. package/pipes/index.d.ts +0 -3
  542. package/pipes/iso-to-country-code/index.d.ts +0 -1
  543. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  544. package/pipes/to-country-code/index.d.ts +0 -1
  545. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  546. package/services/index.d.ts +0 -1
  547. package/services/static-request.service.d.ts +0 -11
  548. package/utils/is-apple.d.ts +0 -5
@@ -1 +1 @@
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,CAAC;AAC/D;;ACFA;;AAEG;AACU,MAAA,6BAA6B,GAAyC;AAC/E,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,GAAG,EAAE,YAAY;;;ACPrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;SACa,cAAc,CAC1B,KAAa,EACb,WAAmB,EACnB,SAAiB,EAAA;IAEjB,IAAI,CAAC,KAAK,EAAE;AACR,QAAA,OAAO,EAAE,CAAC;AACb,KAAA;IAED,IAAI,MAAM,GAAG,WAAW,CAAC;IAEzB,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAElD,IAAA,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;QAChC,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACtD,KAAA;IAED,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC3C,IAAA,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CA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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,CAAC;AAClD,KAAA;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1C,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,CAAC;AAC/B;;ACtDA;;AAEG;AACI,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AACzE,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,KAAK,EAAE,OAAO;AACjB,CAAA;;ACRD;;AAEG;;;;"}
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-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","/**\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,YAAY;;;ACPrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;SACa,cAAc,CAC1B,KAAa,EACb,WAAmB,EACnB,SAAiB,EAAA;IAEjB,IAAI,CAAC,KAAK,EAAE;AACR,QAAA,OAAO,EAAE;;IAGb,IAAI,MAAM,GAAG,WA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,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,8 +1,6 @@
1
1
  export * from '@taiga-ui/legacy/classes';
2
2
  export * from '@taiga-ui/legacy/components';
3
3
  export * from '@taiga-ui/legacy/directives';
4
- export * from '@taiga-ui/legacy/pipes';
5
- export * from '@taiga-ui/legacy/services';
6
4
  export * from '@taiga-ui/legacy/tokens';
7
5
  export * from '@taiga-ui/legacy/utils';
8
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-legacy.mjs","sources":["../../../projects/legacy/taiga-ui-legacy.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-legacy.mjs","sources":["../../../projects/legacy/taiga-ui-legacy.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
package/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export * from '@taiga-ui/legacy/classes';
2
2
  export * from '@taiga-ui/legacy/components';
3
3
  export * from '@taiga-ui/legacy/directives';
4
- export * from '@taiga-ui/legacy/pipes';
5
- export * from '@taiga-ui/legacy/services';
6
4
  export * from '@taiga-ui/legacy/tokens';
7
5
  export * from '@taiga-ui/legacy/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/legacy",
3
- "version": "4.51.0",
3
+ "version": "4.52.0-canary.0ec45da",
4
4
  "description": "Legacy Taiga UI entities from the previous major release to simplify migration",
5
5
  "keywords": [
6
6
  "legacy",
@@ -17,301 +17,127 @@
17
17
  },
18
18
  ".": {
19
19
  "types": "./index.d.ts",
20
- "esm2022": "./esm2022/taiga-ui-legacy.mjs",
21
- "esm": "./esm2022/taiga-ui-legacy.mjs",
22
20
  "default": "./fesm2022/taiga-ui-legacy.mjs"
23
21
  },
24
22
  "./classes": {
25
23
  "types": "./classes/index.d.ts",
26
- "esm2022": "./esm2022/classes/taiga-ui-legacy-classes.mjs",
27
- "esm": "./esm2022/classes/taiga-ui-legacy-classes.mjs",
28
24
  "default": "./fesm2022/taiga-ui-legacy-classes.mjs"
29
25
  },
30
26
  "./components": {
31
27
  "types": "./components/index.d.ts",
32
- "esm2022": "./esm2022/components/taiga-ui-legacy-components.mjs",
33
- "esm": "./esm2022/components/taiga-ui-legacy-components.mjs",
34
28
  "default": "./fesm2022/taiga-ui-legacy-components.mjs"
35
29
  },
36
30
  "./directives": {
37
31
  "types": "./directives/index.d.ts",
38
- "esm2022": "./esm2022/directives/taiga-ui-legacy-directives.mjs",
39
- "esm": "./esm2022/directives/taiga-ui-legacy-directives.mjs",
40
32
  "default": "./fesm2022/taiga-ui-legacy-directives.mjs"
41
33
  },
42
- "./services": {
43
- "types": "./services/index.d.ts",
44
- "esm2022": "./esm2022/services/taiga-ui-legacy-services.mjs",
45
- "esm": "./esm2022/services/taiga-ui-legacy-services.mjs",
46
- "default": "./fesm2022/taiga-ui-legacy-services.mjs"
47
- },
48
- "./pipes": {
49
- "types": "./pipes/index.d.ts",
50
- "esm2022": "./esm2022/pipes/taiga-ui-legacy-pipes.mjs",
51
- "esm": "./esm2022/pipes/taiga-ui-legacy-pipes.mjs",
52
- "default": "./fesm2022/taiga-ui-legacy-pipes.mjs"
53
- },
54
34
  "./tokens": {
55
35
  "types": "./tokens/index.d.ts",
56
- "esm2022": "./esm2022/tokens/taiga-ui-legacy-tokens.mjs",
57
- "esm": "./esm2022/tokens/taiga-ui-legacy-tokens.mjs",
58
36
  "default": "./fesm2022/taiga-ui-legacy-tokens.mjs"
59
37
  },
60
38
  "./utils": {
61
39
  "types": "./utils/index.d.ts",
62
- "esm2022": "./esm2022/utils/taiga-ui-legacy-utils.mjs",
63
- "esm": "./esm2022/utils/taiga-ui-legacy-utils.mjs",
64
40
  "default": "./fesm2022/taiga-ui-legacy-utils.mjs"
65
41
  },
66
42
  "./components/arrow": {
67
43
  "types": "./components/arrow/index.d.ts",
68
- "esm2022": "./esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs",
69
- "esm": "./esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs",
70
44
  "default": "./fesm2022/taiga-ui-legacy-components-arrow.mjs"
71
45
  },
72
- "./components/color-selector": {
73
- "types": "./components/color-selector/index.d.ts",
74
- "esm2022": "./esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs",
75
- "esm": "./esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs",
76
- "default": "./fesm2022/taiga-ui-legacy-components-color-selector.mjs"
77
- },
78
- "./components/combo-box": {
79
- "types": "./components/combo-box/index.d.ts",
80
- "esm2022": "./esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs",
81
- "esm": "./esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs",
82
- "default": "./fesm2022/taiga-ui-legacy-components-combo-box.mjs"
46
+ "./components/dialog": {
47
+ "types": "./components/dialog/index.d.ts",
48
+ "default": "./fesm2022/taiga-ui-legacy-components-dialog.mjs"
83
49
  },
84
50
  "./components/input": {
85
51
  "types": "./components/input/index.d.ts",
86
- "esm2022": "./esm2022/components/input/taiga-ui-legacy-components-input.mjs",
87
- "esm": "./esm2022/components/input/taiga-ui-legacy-components-input.mjs",
88
52
  "default": "./fesm2022/taiga-ui-legacy-components-input.mjs"
89
53
  },
90
- "./components/input-color": {
91
- "types": "./components/input-color/index.d.ts",
92
- "esm2022": "./esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs",
93
- "esm": "./esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs",
94
- "default": "./fesm2022/taiga-ui-legacy-components-input-color.mjs"
95
- },
96
- "./components/input-copy": {
97
- "types": "./components/input-copy/index.d.ts",
98
- "esm2022": "./esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs",
99
- "esm": "./esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs",
100
- "default": "./fesm2022/taiga-ui-legacy-components-input-copy.mjs"
101
- },
102
- "./components/input-date": {
103
- "types": "./components/input-date/index.d.ts",
104
- "esm2022": "./esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs",
105
- "esm": "./esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs",
106
- "default": "./fesm2022/taiga-ui-legacy-components-input-date.mjs"
107
- },
108
- "./components/input-date-multi": {
109
- "types": "./components/input-date-multi/index.d.ts",
110
- "esm2022": "./esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs",
111
- "esm": "./esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs",
112
- "default": "./fesm2022/taiga-ui-legacy-components-input-date-multi.mjs"
113
- },
114
54
  "./components/input-date-range": {
115
55
  "types": "./components/input-date-range/index.d.ts",
116
- "esm2022": "./esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs",
117
- "esm": "./esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs",
118
56
  "default": "./fesm2022/taiga-ui-legacy-components-input-date-range.mjs"
119
57
  },
120
58
  "./components/input-date-time": {
121
59
  "types": "./components/input-date-time/index.d.ts",
122
- "esm2022": "./esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs",
123
- "esm": "./esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs",
124
60
  "default": "./fesm2022/taiga-ui-legacy-components-input-date-time.mjs"
125
61
  },
126
- "./components/input-month": {
127
- "types": "./components/input-month/index.d.ts",
128
- "esm2022": "./esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs",
129
- "esm": "./esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs",
130
- "default": "./fesm2022/taiga-ui-legacy-components-input-month.mjs"
131
- },
132
62
  "./components/input-month-range": {
133
63
  "types": "./components/input-month-range/index.d.ts",
134
- "esm2022": "./esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs",
135
- "esm": "./esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs",
136
64
  "default": "./fesm2022/taiga-ui-legacy-components-input-month-range.mjs"
137
65
  },
138
66
  "./components/input-number": {
139
67
  "types": "./components/input-number/index.d.ts",
140
- "esm2022": "./esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs",
141
- "esm": "./esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs",
142
68
  "default": "./fesm2022/taiga-ui-legacy-components-input-number.mjs"
143
69
  },
144
- "./components/input-password": {
145
- "types": "./components/input-password/index.d.ts",
146
- "esm2022": "./esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs",
147
- "esm": "./esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs",
148
- "default": "./fesm2022/taiga-ui-legacy-components-input-password.mjs"
149
- },
150
- "./components/input-phone": {
151
- "types": "./components/input-phone/index.d.ts",
152
- "esm2022": "./esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs",
153
- "esm": "./esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs",
154
- "default": "./fesm2022/taiga-ui-legacy-components-input-phone.mjs"
155
- },
156
- "./components/input-phone-international": {
157
- "types": "./components/input-phone-international/index.d.ts",
158
- "esm2022": "./esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs",
159
- "esm": "./esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs",
160
- "default": "./fesm2022/taiga-ui-legacy-components-input-phone-international.mjs"
161
- },
162
70
  "./components/input-range": {
163
71
  "types": "./components/input-range/index.d.ts",
164
- "esm2022": "./esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs",
165
- "esm": "./esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs",
166
72
  "default": "./fesm2022/taiga-ui-legacy-components-input-range.mjs"
167
73
  },
168
74
  "./components/input-slider": {
169
75
  "types": "./components/input-slider/index.d.ts",
170
- "esm2022": "./esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs",
171
- "esm": "./esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs",
172
76
  "default": "./fesm2022/taiga-ui-legacy-components-input-slider.mjs"
173
77
  },
174
78
  "./components/input-tag": {
175
79
  "types": "./components/input-tag/index.d.ts",
176
- "esm2022": "./esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs",
177
- "esm": "./esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs",
178
80
  "default": "./fesm2022/taiga-ui-legacy-components-input-tag.mjs"
179
81
  },
180
- "./components/input-time": {
181
- "types": "./components/input-time/index.d.ts",
182
- "esm2022": "./esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs",
183
- "esm": "./esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs",
184
- "default": "./fesm2022/taiga-ui-legacy-components-input-time.mjs"
185
- },
186
- "./components/input-year": {
187
- "types": "./components/input-year/index.d.ts",
188
- "esm2022": "./esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs",
189
- "esm": "./esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs",
190
- "default": "./fesm2022/taiga-ui-legacy-components-input-year.mjs"
191
- },
192
- "./components/island": {
193
- "types": "./components/island/index.d.ts",
194
- "esm2022": "./esm2022/components/island/taiga-ui-legacy-components-island.mjs",
195
- "esm": "./esm2022/components/island/taiga-ui-legacy-components-island.mjs",
196
- "default": "./fesm2022/taiga-ui-legacy-components-island.mjs"
197
- },
198
82
  "./components/multi-select": {
199
83
  "types": "./components/multi-select/index.d.ts",
200
- "esm2022": "./esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs",
201
- "esm": "./esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs",
202
84
  "default": "./fesm2022/taiga-ui-legacy-components-multi-select.mjs"
203
85
  },
204
86
  "./components/multi-select-option": {
205
87
  "types": "./components/multi-select-option/index.d.ts",
206
- "esm2022": "./esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs",
207
- "esm": "./esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs",
208
88
  "default": "./fesm2022/taiga-ui-legacy-components-multi-select-option.mjs"
209
89
  },
90
+ "./components/pdf-viewer": {
91
+ "types": "./components/pdf-viewer/index.d.ts",
92
+ "default": "./fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs"
93
+ },
210
94
  "./components/primitive-textfield": {
211
95
  "types": "./components/primitive-textfield/index.d.ts",
212
- "esm2022": "./esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs",
213
- "esm": "./esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs",
214
96
  "default": "./fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs"
215
97
  },
216
98
  "./components/select": {
217
99
  "types": "./components/select/index.d.ts",
218
- "esm2022": "./esm2022/components/select/taiga-ui-legacy-components-select.mjs",
219
- "esm": "./esm2022/components/select/taiga-ui-legacy-components-select.mjs",
220
100
  "default": "./fesm2022/taiga-ui-legacy-components-select.mjs"
221
101
  },
222
102
  "./components/select-option": {
223
103
  "types": "./components/select-option/index.d.ts",
224
- "esm2022": "./esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs",
225
- "esm": "./esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs",
226
104
  "default": "./fesm2022/taiga-ui-legacy-components-select-option.mjs"
227
105
  },
228
- "./components/sheet": {
229
- "types": "./components/sheet/index.d.ts",
230
- "esm2022": "./esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs",
231
- "esm": "./esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs",
232
- "default": "./fesm2022/taiga-ui-legacy-components-sheet.mjs"
233
- },
234
- "./components/svg": {
235
- "types": "./components/svg/index.d.ts",
236
- "esm2022": "./esm2022/components/svg/taiga-ui-legacy-components-svg.mjs",
237
- "esm": "./esm2022/components/svg/taiga-ui-legacy-components-svg.mjs",
238
- "default": "./fesm2022/taiga-ui-legacy-components-svg.mjs"
239
- },
240
- "./components/table-bar": {
241
- "types": "./components/table-bar/index.d.ts",
242
- "esm2022": "./esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs",
243
- "esm": "./esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs",
244
- "default": "./fesm2022/taiga-ui-legacy-components-table-bar.mjs"
245
- },
246
106
  "./components/tag": {
247
107
  "types": "./components/tag/index.d.ts",
248
- "esm2022": "./esm2022/components/tag/taiga-ui-legacy-components-tag.mjs",
249
- "esm": "./esm2022/components/tag/taiga-ui-legacy-components-tag.mjs",
250
108
  "default": "./fesm2022/taiga-ui-legacy-components-tag.mjs"
251
109
  },
252
110
  "./components/textarea": {
253
111
  "types": "./components/textarea/index.d.ts",
254
- "esm2022": "./esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs",
255
- "esm": "./esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs",
256
112
  "default": "./fesm2022/taiga-ui-legacy-components-textarea.mjs"
257
113
  },
258
114
  "./components/tooltip": {
259
115
  "types": "./components/tooltip/index.d.ts",
260
- "esm2022": "./esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs",
261
- "esm": "./esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs",
262
116
  "default": "./fesm2022/taiga-ui-legacy-components-tooltip.mjs"
263
117
  },
264
118
  "./directives/legacy-dropdown-open-monitor": {
265
119
  "types": "./directives/legacy-dropdown-open-monitor/index.d.ts",
266
- "esm2022": "./esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs",
267
- "esm": "./esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs",
268
120
  "default": "./fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs"
269
121
  },
270
122
  "./directives/textfield-controller": {
271
123
  "types": "./directives/textfield-controller/index.d.ts",
272
- "esm2022": "./esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs",
273
- "esm": "./esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs",
274
124
  "default": "./fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs"
275
125
  },
276
- "./directives/unfinished-validator": {
277
- "types": "./directives/unfinished-validator/index.d.ts",
278
- "esm2022": "./esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs",
279
- "esm": "./esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs",
280
- "default": "./fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs"
281
- },
282
126
  "./directives/value-accessor": {
283
127
  "types": "./directives/value-accessor/index.d.ts",
284
- "esm2022": "./esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs",
285
- "esm": "./esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs",
286
128
  "default": "./fesm2022/taiga-ui-legacy-directives-value-accessor.mjs"
287
129
  },
288
- "./pipes/format-phone": {
289
- "types": "./pipes/format-phone/index.d.ts",
290
- "esm2022": "./esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs",
291
- "esm": "./esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs",
292
- "default": "./fesm2022/taiga-ui-legacy-pipes-format-phone.mjs"
130
+ "./directives/unfinished-validator": {
131
+ "types": "./directives/unfinished-validator/index.d.ts",
132
+ "default": "./fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs"
293
133
  },
294
134
  "./directives/wrapper": {
295
135
  "types": "./directives/wrapper/index.d.ts",
296
- "esm2022": "./esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs",
297
- "esm": "./esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs",
298
136
  "default": "./fesm2022/taiga-ui-legacy-directives-wrapper.mjs"
299
- },
300
- "./pipes/iso-to-country-code": {
301
- "types": "./pipes/iso-to-country-code/index.d.ts",
302
- "esm2022": "./esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs",
303
- "esm": "./esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs",
304
- "default": "./fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs"
305
- },
306
- "./pipes/to-country-code": {
307
- "types": "./pipes/to-country-code/index.d.ts",
308
- "esm2022": "./esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs",
309
- "esm": "./esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs",
310
- "default": "./fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs"
311
137
  }
312
138
  },
313
139
  "peerDependencies": {
314
- "@angular/core": ">=16.0.0"
140
+ "@angular/core": ">=19.0.0"
315
141
  },
316
142
  "module": "fesm2022/taiga-ui-legacy.mjs",
317
143
  "typings": "index.d.ts",
@@ -294,7 +294,9 @@
294
294
  .t-cleaner {
295
295
  .icon-button();
296
296
 
297
- border-width: 0.25rem;
297
+ &::before {
298
+ font-size: 1rem;
299
+ }
298
300
  }
299
301
 
300
302
  .t-icon {
@@ -2,7 +2,7 @@ import { type TuiStringHandler } from '@taiga-ui/cdk/types';
2
2
  /**
3
3
  * @deprecated: drop in v5.0
4
4
  */
5
- export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.51.0";
5
+ export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.52.0-canary.0ec45da";
6
6
  /**
7
7
  * @deprecated: drop in v5.0
8
8
  */
package/utils/index.d.ts CHANGED
@@ -5,7 +5,6 @@ export * from './get-border';
5
5
  export * from './get-max-allowed-phone-length';
6
6
  export * from './get-safe-area-size';
7
7
  export * from './icons-path-factory';
8
- export * from './is-apple';
9
8
  export * from './is-presumed-html-string';
10
9
  export * from './iso-to-country-code';
11
10
  export * from './not-kz-region';
@@ -1,18 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type MaskitoOptions } from '@maskito/core';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiColorEditComponent {
5
- color: [number, number, number, number];
6
- readonly colorChange: EventEmitter<[number, number, number, number]>;
7
- readonly hexMask: MaskitoOptions;
8
- readonly modes: string[];
9
- mode: string | undefined;
10
- get isHex(): boolean;
11
- get hex(): string;
12
- get opacity(): number;
13
- onHexChange(hex: string): void;
14
- onRgbChange(...rgba: [number, number, number, number]): void;
15
- private updateColor;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorEditComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorEditComponent, "tui-color-edit", never, { "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
18
- }
@@ -1,21 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./color-edit.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@maskito/angular";
6
- import * as i5 from "@taiga-ui/legacy/components/primitive-textfield";
7
- import * as i6 from "@taiga-ui/legacy/directives/textfield-controller";
8
- import * as i7 from "@taiga-ui/legacy/components/input-number";
9
- import * as i8 from "@taiga-ui/legacy/components/select";
10
- import * as i9 from "@taiga-ui/core/directives/dropdown";
11
- import * as i10 from "@taiga-ui/core/components/data-list";
12
- import * as i11 from "@taiga-ui/core/components/button";
13
- /**
14
- * TODO(v5): delete it
15
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
16
- */
17
- export declare class TuiColorEditModule {
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorEditModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiColorEditModule, [typeof i1.TuiColorEditComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaskitoDirective, typeof i5.TuiPrimitiveTextfieldModule, typeof i6.TuiTextfieldControllerModule, typeof i7.TuiInputNumberModule, typeof i8.TuiSelectModule, typeof i9.TuiDropdownOptionsDirective, typeof i9.TuiDropdownDriverDirective, typeof i9.TuiDropdownDirective, typeof i9.TuiDropdownComponent, typeof i9.TuiDropdownOpen, typeof i9.TuiDropdownOpenLegacy, typeof i9.TuiDropdownPortal, typeof i9.TuiDropdownManual, typeof i9.TuiDropdownHover, typeof i9.TuiDropdownContext, typeof i9.TuiDropdownPosition, typeof i9.TuiDropdownPositionSided, typeof i9.TuiDropdownSelection, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptionNew, typeof i10.TuiOptionWithValue, typeof i10.TuiOptGroup, typeof i11.TuiButton], [typeof i1.TuiColorEditComponent, typeof i9.TuiDropdownOptionsDirective, typeof i9.TuiDropdownDriverDirective, typeof i9.TuiDropdownDirective, typeof i9.TuiDropdownComponent, typeof i9.TuiDropdownOpen, typeof i9.TuiDropdownOpenLegacy, typeof i9.TuiDropdownPortal, typeof i9.TuiDropdownManual, typeof i9.TuiDropdownHover, typeof i9.TuiDropdownContext, typeof i9.TuiDropdownPosition, typeof i9.TuiDropdownPositionSided, typeof i9.TuiDropdownSelection, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptionNew, typeof i10.TuiOptionWithValue, typeof i10.TuiOptGroup]>;
20
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiColorEditModule>;
21
- }
@@ -1,22 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type SafeStyle } from '@angular/platform-browser';
3
- import { type TuiPoint } from '@taiga-ui/core/types';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiColorPickerComponent {
6
- private readonly sanitizer;
7
- protected point: TuiPoint;
8
- protected hue: number;
9
- protected opacity: number;
10
- readonly colorChange: EventEmitter<[h: number, s: number, v: number, opacity: number]>;
11
- set color(color: [h: number, s: number, v: number, opacity: number]);
12
- get currentColor(): [h: number, s: number, v: number];
13
- get base(): string;
14
- get gradient(): SafeStyle;
15
- onPointChange(point: TuiPoint): void;
16
- onHueChange(hue: number): void;
17
- onOpacityChange(opacity: number): void;
18
- private getCurrentColor;
19
- private updateColor;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorPickerComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorPickerComponent, "tui-color-picker", never, { "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
22
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./color-picker.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../flat-picker/flat-picker.module";
5
- import * as i4 from "../linear-picker/linear-picker.module";
6
- /**
7
- * TODO(v5): delete it
8
- * @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
9
- */
10
- export declare class TuiColorPickerModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorPickerModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<TuiColorPickerModule, [typeof i1.TuiColorPickerComponent], [typeof i2.CommonModule, typeof i3.TuiFlatPickerModule, typeof i4.TuiLinearPickerModule], [typeof i1.TuiColorPickerComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<TuiColorPickerModule>;
14
- }
@@ -1,47 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { type SafeStyle } from '@angular/platform-browser';
3
- import { type TuiGradientDirection } from '@taiga-ui/cdk/utils/color';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiColorSelectorComponent {
6
- private readonly selectorOptions;
7
- private stops;
8
- private currentStop;
9
- private direction;
10
- private readonly sanitizer;
11
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
12
- protected open: boolean;
13
- colors: ReadonlyMap<string, string>;
14
- readonly colorChange: EventEmitter<string>;
15
- color: [number, number, number, number];
16
- readonly modes: [string, string];
17
- currentMode: string;
18
- readonly buttons: readonly TuiGradientDirection[];
19
- set colorSetter(color: string);
20
- get selectorMode(): boolean;
21
- get palette(): Map<string, string>;
22
- get stopsKeys(): number[];
23
- get currentColor(): [number, number, number, number];
24
- get gradient(): SafeStyle;
25
- get isGradient(): boolean;
26
- getIcon(direction: TuiGradientDirection): string;
27
- isModeActive(mode: string): boolean;
28
- isDirectionActive(direction: TuiGradientDirection): boolean;
29
- onPalettePick(color: string): void;
30
- onDirectionChange(direction: TuiGradientDirection): void;
31
- onModeSelect(mode: string): void;
32
- onIndexChange(index: number): void;
33
- onColorChange(color: [number, number, number, number]): void;
34
- onStopsChange(stopsKeys: readonly number[]): void;
35
- private getStopsKeys;
36
- private filterPalette;
37
- private updateColor;
38
- private getGradient;
39
- private getStop;
40
- private addStop;
41
- private removeStop;
42
- private replaceStop;
43
- private parseGradient;
44
- private parseColor;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorSelectorComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorSelectorComponent, "tui-color-selector", never, { "colors": { "alias": "colors"; "required": false; }; "colorSetter": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
47
- }