@taiga-ui/legacy 4.52.0-canary.6c67ccf → 4.52.0-canary.811ffeb

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 (290) hide show
  1. package/README.md +1 -1
  2. package/classes/abstract-textfield-host.d.ts +1 -1
  3. package/components/arrow/arrow.options.d.ts +1 -3
  4. package/components/arrow/arrow.providers.d.ts +1 -6
  5. package/components/dialog/dialog.component.d.ts +19 -0
  6. package/components/dialog/dialog.directive.d.ts +8 -0
  7. package/components/dialog/dialog.factory.d.ts +16 -0
  8. package/components/dialog/dialog.interfaces.d.ts +30 -0
  9. package/components/dialog/dialog.service.d.ts +10 -0
  10. package/components/dialog/dialog.tokens.d.ts +6 -0
  11. package/components/dialog/index.d.ts +6 -0
  12. package/components/index.d.ts +3 -28
  13. package/components/mobile-dialog/index.d.ts +3 -0
  14. package/components/mobile-dialog/mobile-dialog.component.d.ts +10 -0
  15. package/components/mobile-dialog/mobile-dialog.options.d.ts +10 -0
  16. package/components/mobile-dialog/mobile-dialog.service.d.ts +14 -0
  17. package/components/pdf-viewer/index.d.ts +4 -0
  18. package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
  19. package/components/pdf-viewer/pdf-viewer.directive.d.ts +8 -0
  20. package/components/pdf-viewer/pdf-viewer.options.d.ts +11 -0
  21. package/components/pdf-viewer/pdf-viewer.service.d.ts +17 -0
  22. package/components/primitive-textfield/primitive-textfield-options.d.ts +2 -2
  23. package/components/primitive-textfield/primitive-textfield.module.d.ts +5 -5
  24. package/components/select/select.module.d.ts +8 -8
  25. package/components/select/select.options.d.ts +1 -7
  26. package/components/select-option/select-option.module.d.ts +3 -3
  27. package/directives/textfield-controller/textfield.options.d.ts +1 -3
  28. package/fesm2022/taiga-ui-legacy-classes.mjs +3 -4
  29. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +4 -17
  31. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-legacy-components-dialog.mjs +136 -0
  33. package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
  34. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +62 -0
  35. package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs.map +1 -0
  36. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +88 -0
  37. package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
  38. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +18 -18
  39. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +6 -6
  41. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-legacy-components-select.mjs +30 -40
  43. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-legacy-components.mjs +3 -28
  45. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -1
  47. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +2 -7
  49. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +2 -4
  51. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-legacy-tokens.mjs +1 -1
  53. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-legacy-utils.mjs +1 -7
  55. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-legacy.mjs +0 -2
  57. package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
  58. package/index.d.ts +0 -2
  59. package/package.json +34 -151
  60. package/utils/icons-path-factory.d.ts +1 -1
  61. package/utils/index.d.ts +0 -1
  62. package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
  63. package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
  64. package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
  65. package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
  66. package/components/color-selector/color-selector.component.d.ts +0 -47
  67. package/components/color-selector/color-selector.module.d.ts +0 -24
  68. package/components/color-selector/color-selector.options.d.ts +0 -25
  69. package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
  70. package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
  71. package/components/color-selector/index.d.ts +0 -16
  72. package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
  73. package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
  74. package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
  75. package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
  76. package/components/color-selector/palette/palette.component.d.ts +0 -10
  77. package/components/color-selector/palette/palette.module.d.ts +0 -13
  78. package/components/color-selector/services/picker.service.d.ts +0 -15
  79. package/components/combo-box/combo-box-strict.directive.d.ts +0 -12
  80. package/components/combo-box/combo-box.component.d.ts +0 -52
  81. package/components/combo-box/combo-box.directive.d.ts +0 -13
  82. package/components/combo-box/combo-box.module.d.ts +0 -20
  83. package/components/combo-box/index.d.ts +0 -4
  84. package/components/input/index.d.ts +0 -3
  85. package/components/input/input.component.d.ts +0 -32
  86. package/components/input/input.directive.d.ts +0 -12
  87. package/components/input/input.module.d.ts +0 -16
  88. package/components/input-color/index.d.ts +0 -2
  89. package/components/input-color/input-color.component.d.ts +0 -30
  90. package/components/input-color/input-color.module.d.ts +0 -17
  91. package/components/input-copy/index.d.ts +0 -4
  92. package/components/input-copy/input-copy.component.d.ts +0 -33
  93. package/components/input-copy/input-copy.directive.d.ts +0 -11
  94. package/components/input-copy/input-copy.module.d.ts +0 -18
  95. package/components/input-copy/input-copy.options.d.ts +0 -26
  96. package/components/input-date/index.d.ts +0 -3
  97. package/components/input-date/input-date.component.d.ts +0 -62
  98. package/components/input-date/input-date.directive.d.ts +0 -19
  99. package/components/input-date/input-date.module.d.ts +0 -24
  100. package/components/input-date/native-date/native-date.component.d.ts +0 -15
  101. package/components/input-date-multi/index.d.ts +0 -2
  102. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  103. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  104. package/components/input-date-range/index.d.ts +0 -3
  105. package/components/input-date-range/input-date-range.component.d.ts +0 -67
  106. package/components/input-date-range/input-date-range.directive.d.ts +0 -16
  107. package/components/input-date-range/input-date-range.module.d.ts +0 -22
  108. package/components/input-date-time/index.d.ts +0 -3
  109. package/components/input-date-time/input-date-time.component.d.ts +0 -87
  110. package/components/input-date-time/input-date-time.directive.d.ts +0 -17
  111. package/components/input-date-time/input-date-time.module.d.ts +0 -23
  112. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
  113. package/components/input-month/index.d.ts +0 -3
  114. package/components/input-month/input-month.component.d.ts +0 -44
  115. package/components/input-month/input-month.directive.d.ts +0 -19
  116. package/components/input-month/input-month.module.d.ts +0 -19
  117. package/components/input-month-range/index.d.ts +0 -3
  118. package/components/input-month-range/input-month-range.component.d.ts +0 -38
  119. package/components/input-month-range/input-month-range.directive.d.ts +0 -23
  120. package/components/input-month-range/input-month-range.module.d.ts +0 -18
  121. package/components/input-number/index.d.ts +0 -4
  122. package/components/input-number/input-number.component.d.ts +0 -63
  123. package/components/input-number/input-number.directive.d.ts +0 -16
  124. package/components/input-number/input-number.module.d.ts +0 -18
  125. package/components/input-number/input-number.options.d.ts +0 -29
  126. package/components/input-password/index.d.ts +0 -4
  127. package/components/input-password/input-password.component.d.ts +0 -33
  128. package/components/input-password/input-password.directive.d.ts +0 -15
  129. package/components/input-password/input-password.module.d.ts +0 -19
  130. package/components/input-password/input-password.options.d.ts +0 -25
  131. package/components/input-phone/index.d.ts +0 -4
  132. package/components/input-phone/input-phone.component.d.ts +0 -49
  133. package/components/input-phone/input-phone.directive.d.ts +0 -13
  134. package/components/input-phone/input-phone.module.d.ts +0 -12
  135. package/components/input-phone/input-phone.options.d.ts +0 -13
  136. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
  137. package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
  138. package/components/input-phone/utils/index.d.ts +0 -2
  139. package/components/input-phone-international/index.d.ts +0 -3
  140. package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
  141. package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
  142. package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
  143. package/components/input-range/index.d.ts +0 -2
  144. package/components/input-range/input-range.component.d.ts +0 -56
  145. package/components/input-range/input-range.module.d.ts +0 -19
  146. package/components/input-slider/index.d.ts +0 -2
  147. package/components/input-slider/input-slider.component.d.ts +0 -42
  148. package/components/input-slider/input-slider.module.d.ts +0 -18
  149. package/components/input-tag/index.d.ts +0 -3
  150. package/components/input-tag/input-tag.component.d.ts +0 -103
  151. package/components/input-tag/input-tag.module.d.ts +0 -22
  152. package/components/input-tag/input-tag.options.d.ts +0 -27
  153. package/components/input-time/index.d.ts +0 -4
  154. package/components/input-time/input-time.component.d.ts +0 -62
  155. package/components/input-time/input-time.directive.d.ts +0 -17
  156. package/components/input-time/input-time.module.d.ts +0 -23
  157. package/components/input-time/input-time.options.d.ts +0 -42
  158. package/components/input-time/native-time/native-time.component.d.ts +0 -12
  159. package/components/input-year/index.d.ts +0 -3
  160. package/components/input-year/input-year.component.d.ts +0 -36
  161. package/components/input-year/input-year.directive.d.ts +0 -14
  162. package/components/input-year/input-year.module.d.ts +0 -18
  163. package/components/island/index.d.ts +0 -1
  164. package/components/island/island.directive.d.ts +0 -20
  165. package/components/multi-select/hide-selected.pipe.d.ts +0 -11
  166. package/components/multi-select/index.d.ts +0 -10
  167. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -23
  168. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
  169. package/components/multi-select/multi-select.component.d.ts +0 -71
  170. package/components/multi-select/multi-select.directive.d.ts +0 -14
  171. package/components/multi-select/multi-select.module.d.ts +0 -31
  172. package/components/multi-select/multi-select.options.d.ts +0 -14
  173. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
  174. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
  175. package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
  176. package/components/multi-select-option/index.d.ts +0 -2
  177. package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
  178. package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
  179. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  180. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  181. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -11
  182. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  183. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  184. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  185. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  186. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  187. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  188. package/components/sheet/index.d.ts +0 -14
  189. package/components/sheet/sheet-options.d.ts +0 -27
  190. package/components/sheet/sheet-tokens.d.ts +0 -18
  191. package/components/sheet/sheet.d.ts +0 -21
  192. package/components/sheet/sheet.directive.d.ts +0 -17
  193. package/components/sheet/sheet.module.d.ts +0 -24
  194. package/components/sheet/sheet.service.d.ts +0 -17
  195. package/components/svg/content-processor.d.ts +0 -19
  196. package/components/svg/deprecated-icons.d.ts +0 -5
  197. package/components/svg/index.d.ts +0 -5
  198. package/components/svg/svg-options.d.ts +0 -50
  199. package/components/svg/svg.component.d.ts +0 -50
  200. package/components/svg/svg.service.d.ts +0 -21
  201. package/components/table-bar/index.d.ts +0 -4
  202. package/components/table-bar/table-bar.component.d.ts +0 -17
  203. package/components/table-bar/table-bar.directive.d.ts +0 -11
  204. package/components/table-bar/table-bar.options.d.ts +0 -31
  205. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  206. package/components/table-bar/table-bars.service.d.ts +0 -11
  207. package/components/tag/index.d.ts +0 -3
  208. package/components/tag/tag.component.d.ts +0 -44
  209. package/components/tag/tag.module.d.ts +0 -16
  210. package/components/tag/tag.options.d.ts +0 -27
  211. package/components/textarea/index.d.ts +0 -3
  212. package/components/textarea/textarea.component.d.ts +0 -54
  213. package/components/textarea/textarea.directive.d.ts +0 -12
  214. package/components/textarea/textarea.module.d.ts +0 -21
  215. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
  216. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
  217. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -300
  218. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
  219. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
  220. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
  221. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  222. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  223. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  224. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  225. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -356
  226. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
  227. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -465
  228. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
  229. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
  230. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
  231. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
  232. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
  233. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  234. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  235. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -390
  236. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
  237. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  238. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  239. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
  240. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
  241. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
  242. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +0 -1
  243. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
  244. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
  245. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +0 -199
  246. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +0 -1
  247. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +0 -524
  248. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +0 -1
  249. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +0 -430
  250. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
  251. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
  252. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
  253. package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
  254. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
  255. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  256. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  257. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +0 -47
  258. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +0 -1
  259. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +0 -690
  260. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +0 -1
  261. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -577
  262. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  263. package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
  264. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
  265. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -147
  266. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
  267. package/fesm2022/taiga-ui-legacy-components-tag.mjs +0 -225
  268. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +0 -1
  269. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +0 -262
  270. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +0 -1
  271. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +0 -59
  272. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
  273. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
  274. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
  275. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
  276. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
  277. package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
  278. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +0 -1
  279. package/fesm2022/taiga-ui-legacy-services.mjs +0 -42
  280. package/fesm2022/taiga-ui-legacy-services.mjs.map +0 -1
  281. package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
  282. package/pipes/format-phone/index.d.ts +0 -1
  283. package/pipes/index.d.ts +0 -3
  284. package/pipes/iso-to-country-code/index.d.ts +0 -1
  285. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
  286. package/pipes/to-country-code/index.d.ts +0 -1
  287. package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
  288. package/services/index.d.ts +0 -1
  289. package/services/static-request.service.d.ts +0 -11
  290. package/utils/is-apple.d.ts +0 -5
@@ -1,42 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
3
- import { switchMap, shareReplay } from 'rxjs';
4
- import { fromFetch } from 'rxjs/fetch';
5
-
6
- /**
7
- * @deprecated: drop in v5.0
8
- */
9
- class TuiStaticRequestService {
10
- constructor() {
11
- this.cache = new Map();
12
- }
13
- request(url) {
14
- const cache = this.cache.get(url);
15
- if (cache) {
16
- return cache;
17
- }
18
- const piped = fromFetch(url).pipe(switchMap(async (response) => {
19
- if (response.ok) {
20
- return response.text();
21
- }
22
- throw new Error(`Failed to load ${url} (${response.statusText})`);
23
- }), shareReplay({ bufferSize: 1, refCount: false }));
24
- this.cache.set(url, piped);
25
- return piped;
26
- }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStaticRequestService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
28
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStaticRequestService, providedIn: 'root' }); }
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStaticRequestService, decorators: [{
31
- type: Injectable,
32
- args: [{
33
- providedIn: 'root',
34
- }]
35
- }] });
36
-
37
- /**
38
- * Generated bundle index. Do not edit.
39
- */
40
-
41
- export { TuiStaticRequestService };
42
- //# sourceMappingURL=taiga-ui-legacy-services.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-services.mjs","sources":["../../../projects/legacy/services/static-request.service.ts","../../../projects/legacy/services/taiga-ui-legacy-services.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {type Observable, shareReplay, switchMap} from 'rxjs';\nimport {fromFetch} from 'rxjs/fetch';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiStaticRequestService {\n private readonly cache = new Map<string, Observable<string>>();\n\n public request(url: string): Observable<string> {\n const cache = this.cache.get(url);\n\n if (cache) {\n return cache;\n }\n\n const piped = fromFetch(url).pipe(\n switchMap(async (response) => {\n if (response.ok) {\n return response.text();\n }\n\n throw new Error(`Failed to load ${url} (${response.statusText})`);\n }),\n shareReplay({bufferSize: 1, refCount: false}),\n );\n\n this.cache.set(url, piped);\n\n return piped;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;AAEG;MAIU,uBAAuB,CAAA;AAHpC,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,GAAG,EAA8B;AAwBjE;AAtBU,IAAA,OAAO,CAAC,GAAW,EAAA;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;QAEjC,IAAI,KAAK,EAAE;AACP,YAAA,OAAO,KAAK;;AAGhB,QAAA,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAC7B,SAAS,CAAC,OAAO,QAAQ,KAAI;AACzB,YAAA,IAAI,QAAQ,CAAC,EAAE,EAAE;AACb,gBAAA,OAAO,QAAQ,CAAC,IAAI,EAAE;;YAG1B,MAAM,IAAI,KAAK,CAAC,CAAkB,eAAA,EAAA,GAAG,CAAK,EAAA,EAAA,QAAQ,CAAC,UAAU,CAAG,CAAA,CAAA,CAAC;AACrE,SAAC,CAAC,EACF,WAAW,CAAC,EAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC,CAChD;QAED,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC;AAE1B,QAAA,OAAO,KAAK;;+GAvBP,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFpB,MAAM,EAAA,CAAA,CAAA;;4FAET,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;;ACTD;;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,5 +0,0 @@
1
- import { isApple } from '@ng-web-apis/platform';
2
- /**
3
- * @deprecated: drop in v5.0
4
- */
5
- export declare const tuiIsApple: typeof isApple;