@taiga-ui/legacy 4.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +22 -0
  3. package/classes/abstract-native-select.d.ts +17 -0
  4. package/classes/abstract-textfield-host.d.ts +19 -0
  5. package/classes/control.d.ts +58 -0
  6. package/classes/index.d.ts +8 -0
  7. package/classes/interactive.d.ts +35 -0
  8. package/classes/multiple-control.d.ts +8 -0
  9. package/classes/named-day.d.ts +8 -0
  10. package/classes/nullable-control.d.ts +7 -0
  11. package/classes/stringifiable-item.d.ts +10 -0
  12. package/components/arrow/arrow.component.d.ts +16 -0
  13. package/components/arrow/arrow.options.d.ts +13 -0
  14. package/components/arrow/arrow.providers.d.ts +14 -0
  15. package/components/arrow/index.d.ts +3 -0
  16. package/components/combo-box/combo-box-strict.directive.d.ts +8 -0
  17. package/components/combo-box/combo-box.component.d.ts +47 -0
  18. package/components/combo-box/combo-box.directive.d.ts +9 -0
  19. package/components/combo-box/combo-box.module.d.ts +16 -0
  20. package/components/combo-box/index.d.ts +4 -0
  21. package/components/index.d.ts +31 -0
  22. package/components/input/index.d.ts +3 -0
  23. package/components/input/input.component.d.ts +27 -0
  24. package/components/input/input.directive.d.ts +8 -0
  25. package/components/input/input.module.d.ts +11 -0
  26. package/components/input-copy/index.d.ts +4 -0
  27. package/components/input-copy/input-copy.component.d.ts +30 -0
  28. package/components/input-copy/input-copy.directive.d.ts +8 -0
  29. package/components/input-copy/input-copy.module.d.ts +15 -0
  30. package/components/input-copy/input-copy.options.d.ts +14 -0
  31. package/components/input-date/index.d.ts +3 -0
  32. package/components/input-date/input-date.component.d.ts +61 -0
  33. package/components/input-date/input-date.directive.d.ts +15 -0
  34. package/components/input-date/input-date.module.d.ts +20 -0
  35. package/components/input-date/native-date/native-date.component.d.ts +11 -0
  36. package/components/input-date-multi/index.d.ts +2 -0
  37. package/components/input-date-multi/input-date-multi.component.d.ts +66 -0
  38. package/components/input-date-multi/input-date-multi.module.d.ts +20 -0
  39. package/components/input-date-range/index.d.ts +3 -0
  40. package/components/input-date-range/input-date-range.component.d.ts +63 -0
  41. package/components/input-date-range/input-date-range.directive.d.ts +12 -0
  42. package/components/input-date-range/input-date-range.module.d.ts +18 -0
  43. package/components/input-date-time/index.d.ts +3 -0
  44. package/components/input-date-time/input-date-time.component.d.ts +77 -0
  45. package/components/input-date-time/input-date-time.directive.d.ts +13 -0
  46. package/components/input-date-time/input-date-time.module.d.ts +19 -0
  47. package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +9 -0
  48. package/components/input-month/index.d.ts +3 -0
  49. package/components/input-month/input-month.component.d.ts +41 -0
  50. package/components/input-month/input-month.directive.d.ts +15 -0
  51. package/components/input-month/input-month.module.d.ts +15 -0
  52. package/components/input-month-range/index.d.ts +3 -0
  53. package/components/input-month-range/input-month-range.component.d.ts +35 -0
  54. package/components/input-month-range/input-month-range.directive.d.ts +15 -0
  55. package/components/input-month-range/input-month-range.module.d.ts +14 -0
  56. package/components/input-number/index.d.ts +4 -0
  57. package/components/input-number/input-number.component.d.ts +56 -0
  58. package/components/input-number/input-number.directive.d.ts +12 -0
  59. package/components/input-number/input-number.module.d.ts +14 -0
  60. package/components/input-number/input-number.options.d.ts +17 -0
  61. package/components/input-password/index.d.ts +4 -0
  62. package/components/input-password/input-password.component.d.ts +30 -0
  63. package/components/input-password/input-password.directive.d.ts +12 -0
  64. package/components/input-password/input-password.module.d.ts +16 -0
  65. package/components/input-password/input-password.options.d.ts +13 -0
  66. package/components/input-phone/index.d.ts +4 -0
  67. package/components/input-phone/input-phone.component.d.ts +48 -0
  68. package/components/input-phone/input-phone.directive.d.ts +13 -0
  69. package/components/input-phone/input-phone.module.d.ts +12 -0
  70. package/components/input-phone/input-phone.options.d.ts +12 -0
  71. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +9 -0
  72. package/components/input-phone/utils/create-phone-mask-expression.d.ts +7 -0
  73. package/components/input-phone/utils/index.d.ts +2 -0
  74. package/components/input-phone-international/index.d.ts +3 -0
  75. package/components/input-phone-international/input-phone-international.component.d.ts +38 -0
  76. package/components/input-phone-international/input-phone-international.options.d.ts +12 -0
  77. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
  78. package/components/input-range/index.d.ts +2 -0
  79. package/components/input-range/input-range.component.d.ts +52 -0
  80. package/components/input-range/input-range.module.d.ts +15 -0
  81. package/components/input-slider/index.d.ts +2 -0
  82. package/components/input-slider/input-slider.component.d.ts +38 -0
  83. package/components/input-slider/input-slider.module.d.ts +14 -0
  84. package/components/input-tag/index.d.ts +3 -0
  85. package/components/input-tag/input-tag.component.d.ts +94 -0
  86. package/components/input-tag/input-tag.module.d.ts +18 -0
  87. package/components/input-tag/input-tag.options.d.ts +13 -0
  88. package/components/input-time/index.d.ts +4 -0
  89. package/components/input-time/input-time.component.d.ts +60 -0
  90. package/components/input-time/input-time.directive.d.ts +13 -0
  91. package/components/input-time/input-time.module.d.ts +19 -0
  92. package/components/input-time/input-time.options.d.ts +20 -0
  93. package/components/input-time/native-time/native-time.component.d.ts +12 -0
  94. package/components/input-year/index.d.ts +3 -0
  95. package/components/input-year/input-year.component.d.ts +32 -0
  96. package/components/input-year/input-year.directive.d.ts +10 -0
  97. package/components/input-year/input-year.module.d.ts +14 -0
  98. package/components/island/index.d.ts +1 -0
  99. package/components/island/island.directive.d.ts +16 -0
  100. package/components/multi-select/hide-selected.pipe.d.ts +11 -0
  101. package/components/multi-select/index.d.ts +10 -0
  102. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +23 -0
  103. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +8 -0
  104. package/components/multi-select/multi-select.component.d.ts +65 -0
  105. package/components/multi-select/multi-select.directive.d.ts +14 -0
  106. package/components/multi-select/multi-select.module.d.ts +27 -0
  107. package/components/multi-select/multi-select.options.d.ts +13 -0
  108. package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +9 -0
  109. package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +8 -0
  110. package/components/multi-select/native-multi-select/native-multi-select.d.ts +11 -0
  111. package/components/multi-select-option/index.d.ts +2 -0
  112. package/components/multi-select-option/multi-select-option.component.d.ts +9 -0
  113. package/components/multi-select-option/multi-select-option.module.d.ts +9 -0
  114. package/components/primitive-textfield/index.d.ts +7 -0
  115. package/components/primitive-textfield/primitive-textfield-options.d.ts +22 -0
  116. package/components/primitive-textfield/primitive-textfield-types.d.ts +11 -0
  117. package/components/primitive-textfield/primitive-textfield.component.d.ts +68 -0
  118. package/components/primitive-textfield/primitive-textfield.directive.d.ts +10 -0
  119. package/components/primitive-textfield/primitive-textfield.module.d.ts +17 -0
  120. package/components/primitive-textfield/textfield/textfield.component.d.ts +13 -0
  121. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +22 -0
  122. package/components/select/index.d.ts +6 -0
  123. package/components/select/native-select/native-select-group.component.d.ts +13 -0
  124. package/components/select/native-select/native-select.component.d.ts +12 -0
  125. package/components/select/select.component.d.ts +40 -0
  126. package/components/select/select.directive.d.ts +12 -0
  127. package/components/select/select.module.d.ts +20 -0
  128. package/components/select/select.options.d.ts +12 -0
  129. package/components/select-option/index.d.ts +2 -0
  130. package/components/select-option/select-option.component.d.ts +27 -0
  131. package/components/select-option/select-option.module.d.ts +10 -0
  132. package/components/sheet/components/sheet/sheet.component.d.ts +31 -0
  133. package/components/sheet/components/sheet/sheet.providers.d.ts +2 -0
  134. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +10 -0
  135. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +14 -0
  136. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +15 -0
  137. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +14 -0
  138. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +6 -0
  139. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +14 -0
  140. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +17 -0
  141. package/components/sheet/index.d.ts +14 -0
  142. package/components/sheet/sheet-options.d.ts +24 -0
  143. package/components/sheet/sheet-tokens.d.ts +15 -0
  144. package/components/sheet/sheet.d.ts +19 -0
  145. package/components/sheet/sheet.directive.d.ts +16 -0
  146. package/components/sheet/sheet.module.d.ts +23 -0
  147. package/components/sheet/sheet.service.d.ts +16 -0
  148. package/components/svg/content-processor.d.ts +16 -0
  149. package/components/svg/deprecated-icons.d.ts +1 -0
  150. package/components/svg/index.d.ts +5 -0
  151. package/components/svg/svg-options.d.ts +22 -0
  152. package/components/svg/svg.component.d.ts +43 -0
  153. package/components/svg/svg.service.d.ts +21 -0
  154. package/components/table-bar/index.d.ts +5 -0
  155. package/components/table-bar/table-bar.component.d.ts +13 -0
  156. package/components/table-bar/table-bar.directive.d.ts +7 -0
  157. package/components/table-bar/table-bar.options.d.ts +14 -0
  158. package/components/table-bar/table-bars-host.component.d.ts +6 -0
  159. package/components/table-bar/table-bars.service.d.ts +10 -0
  160. package/components/tag/index.d.ts +3 -0
  161. package/components/tag/tag.component.d.ts +40 -0
  162. package/components/tag/tag.module.d.ts +12 -0
  163. package/components/tag/tag.options.d.ts +15 -0
  164. package/components/textarea/index.d.ts +3 -0
  165. package/components/textarea/textarea.component.d.ts +50 -0
  166. package/components/textarea/textarea.directive.d.ts +8 -0
  167. package/components/textarea/textarea.module.d.ts +17 -0
  168. package/components/tooltip/index.d.ts +2 -0
  169. package/components/tooltip/tooltip.component.d.ts +12 -0
  170. package/components/tooltip/tooltip.module.d.ts +12 -0
  171. package/directives/index.d.ts +5 -0
  172. package/directives/legacy-dropdown-open-monitor/index.d.ts +1 -0
  173. package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +9 -0
  174. package/directives/textfield-controller/index.d.ts +14 -0
  175. package/directives/textfield-controller/textfield-appearance.directive.d.ts +8 -0
  176. package/directives/textfield-controller/textfield-cleaner.directive.d.ts +8 -0
  177. package/directives/textfield-controller/textfield-controller.module.d.ts +17 -0
  178. package/directives/textfield-controller/textfield-controller.provider.d.ts +5 -0
  179. package/directives/textfield-controller/textfield-custom-content.directive.d.ts +9 -0
  180. package/directives/textfield-controller/textfield-filler.directive.d.ts +8 -0
  181. package/directives/textfield-controller/textfield-icon-left.directive.d.ts +11 -0
  182. package/directives/textfield-controller/textfield-icon.directive.d.ts +11 -0
  183. package/directives/textfield-controller/textfield-label-outside.directive.d.ts +8 -0
  184. package/directives/textfield-controller/textfield-postfix.directive.d.ts +8 -0
  185. package/directives/textfield-controller/textfield-prefix.directive.d.ts +8 -0
  186. package/directives/textfield-controller/textfield-size.directive.d.ts +9 -0
  187. package/directives/textfield-controller/textfield.controller.d.ts +41 -0
  188. package/directives/textfield-controller/textfield.options.d.ts +15 -0
  189. package/directives/unfinished-validator/index.d.ts +2 -0
  190. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +8 -0
  191. package/directives/unfinished-validator/unfinished.validator.d.ts +4 -0
  192. package/directives/value-accessor/index.d.ts +3 -0
  193. package/directives/value-accessor/value-accessor.directive.d.ts +5 -0
  194. package/directives/value-accessor/value-accessor.module.d.ts +7 -0
  195. package/directives/value-accessor/value-accessor.provider.d.ts +2 -0
  196. package/directives/wrapper/README.md +19 -0
  197. package/directives/wrapper/index.d.ts +2 -0
  198. package/directives/wrapper/wrapper.directive.d.ts +21 -0
  199. package/directives/wrapper/wrapper.module.d.ts +10 -0
  200. package/esm2022/classes/abstract-native-select.mjs +37 -0
  201. package/esm2022/classes/abstract-textfield-host.mjs +37 -0
  202. package/esm2022/classes/control.mjs +175 -0
  203. package/esm2022/classes/index.mjs +9 -0
  204. package/esm2022/classes/interactive.mjs +85 -0
  205. package/esm2022/classes/multiple-control.mjs +18 -0
  206. package/esm2022/classes/named-day.mjs +11 -0
  207. package/esm2022/classes/nullable-control.mjs +15 -0
  208. package/esm2022/classes/stringifiable-item.mjs +13 -0
  209. package/esm2022/classes/taiga-ui-legacy-classes.mjs +5 -0
  210. package/esm2022/components/arrow/arrow.component.mjs +42 -0
  211. package/esm2022/components/arrow/arrow.options.mjs +14 -0
  212. package/esm2022/components/arrow/arrow.providers.mjs +14 -0
  213. package/esm2022/components/arrow/index.mjs +4 -0
  214. package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +5 -0
  215. package/esm2022/components/combo-box/combo-box-strict.directive.mjs +29 -0
  216. package/esm2022/components/combo-box/combo-box.component.mjs +176 -0
  217. package/esm2022/components/combo-box/combo-box.directive.mjs +23 -0
  218. package/esm2022/components/combo-box/combo-box.module.mjs +67 -0
  219. package/esm2022/components/combo-box/index.mjs +5 -0
  220. package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +5 -0
  221. package/esm2022/components/index.mjs +32 -0
  222. package/esm2022/components/input/index.mjs +4 -0
  223. package/esm2022/components/input/input.component.mjs +89 -0
  224. package/esm2022/components/input/input.directive.mjs +20 -0
  225. package/esm2022/components/input/input.module.mjs +30 -0
  226. package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +5 -0
  227. package/esm2022/components/input-copy/index.mjs +5 -0
  228. package/esm2022/components/input-copy/input-copy.component.mjs +103 -0
  229. package/esm2022/components/input-copy/input-copy.directive.mjs +20 -0
  230. package/esm2022/components/input-copy/input-copy.module.mjs +52 -0
  231. package/esm2022/components/input-copy/input-copy.options.mjs +12 -0
  232. package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +5 -0
  233. package/esm2022/components/input-date/index.mjs +4 -0
  234. package/esm2022/components/input-date/input-date.component.mjs +217 -0
  235. package/esm2022/components/input-date/input-date.directive.mjs +38 -0
  236. package/esm2022/components/input-date/input-date.module.mjs +71 -0
  237. package/esm2022/components/input-date/native-date/native-date.component.mjs +48 -0
  238. package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +5 -0
  239. package/esm2022/components/input-date-multi/index.mjs +3 -0
  240. package/esm2022/components/input-date-multi/input-date-multi.component.mjs +212 -0
  241. package/esm2022/components/input-date-multi/input-date-multi.module.mjs +67 -0
  242. package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +5 -0
  243. package/esm2022/components/input-date-range/index.mjs +4 -0
  244. package/esm2022/components/input-date-range/input-date-range.component.mjs +243 -0
  245. package/esm2022/components/input-date-range/input-date-range.directive.mjs +31 -0
  246. package/esm2022/components/input-date-range/input-date-range.module.mjs +67 -0
  247. package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +5 -0
  248. package/esm2022/components/input-date-time/index.mjs +4 -0
  249. package/esm2022/components/input-date-time/input-date-time.component.mjs +302 -0
  250. package/esm2022/components/input-date-time/input-date-time.directive.mjs +32 -0
  251. package/esm2022/components/input-date-time/input-date-time.module.mjs +74 -0
  252. package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +44 -0
  253. package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +5 -0
  254. package/esm2022/components/input-month/index.mjs +4 -0
  255. package/esm2022/components/input-month/input-month.component.mjs +132 -0
  256. package/esm2022/components/input-month/input-month.directive.mjs +41 -0
  257. package/esm2022/components/input-month/input-month.module.mjs +53 -0
  258. package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +5 -0
  259. package/esm2022/components/input-month-range/index.mjs +4 -0
  260. package/esm2022/components/input-month-range/input-month-range.component.mjs +120 -0
  261. package/esm2022/components/input-month-range/input-month-range.directive.mjs +47 -0
  262. package/esm2022/components/input-month-range/input-month-range.module.mjs +49 -0
  263. package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +5 -0
  264. package/esm2022/components/input-number/index.mjs +5 -0
  265. package/esm2022/components/input-number/input-number.component.mjs +257 -0
  266. package/esm2022/components/input-number/input-number.directive.mjs +33 -0
  267. package/esm2022/components/input-number/input-number.module.mjs +44 -0
  268. package/esm2022/components/input-number/input-number.options.mjs +19 -0
  269. package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +5 -0
  270. package/esm2022/components/input-password/index.mjs +5 -0
  271. package/esm2022/components/input-password/input-password.component.mjs +78 -0
  272. package/esm2022/components/input-password/input-password.directive.mjs +30 -0
  273. package/esm2022/components/input-password/input-password.module.mjs +56 -0
  274. package/esm2022/components/input-password/input-password.options.mjs +12 -0
  275. package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +5 -0
  276. package/esm2022/components/input-phone/index.mjs +5 -0
  277. package/esm2022/components/input-phone/input-phone.component.mjs +217 -0
  278. package/esm2022/components/input-phone/input-phone.directive.mjs +33 -0
  279. package/esm2022/components/input-phone/input-phone.module.mjs +44 -0
  280. package/esm2022/components/input-phone/input-phone.options.mjs +14 -0
  281. package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +5 -0
  282. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +41 -0
  283. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +17 -0
  284. package/esm2022/components/input-phone/utils/index.mjs +3 -0
  285. package/esm2022/components/input-phone-international/index.mjs +4 -0
  286. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +181 -0
  287. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +13 -0
  288. package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +5 -0
  289. package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +7 -0
  290. package/esm2022/components/input-range/index.mjs +3 -0
  291. package/esm2022/components/input-range/input-range.component.mjs +203 -0
  292. package/esm2022/components/input-range/input-range.module.mjs +51 -0
  293. package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +5 -0
  294. package/esm2022/components/input-slider/index.mjs +3 -0
  295. package/esm2022/components/input-slider/input-slider.component.mjs +150 -0
  296. package/esm2022/components/input-slider/input-slider.module.mjs +44 -0
  297. package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +5 -0
  298. package/esm2022/components/input-tag/index.mjs +4 -0
  299. package/esm2022/components/input-tag/input-tag.component.mjs +415 -0
  300. package/esm2022/components/input-tag/input-tag.module.mjs +63 -0
  301. package/esm2022/components/input-tag/input-tag.options.mjs +14 -0
  302. package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +5 -0
  303. package/esm2022/components/input-time/index.mjs +5 -0
  304. package/esm2022/components/input-time/input-time.component.mjs +275 -0
  305. package/esm2022/components/input-time/input-time.directive.mjs +35 -0
  306. package/esm2022/components/input-time/input-time.module.mjs +67 -0
  307. package/esm2022/components/input-time/input-time.options.mjs +22 -0
  308. package/esm2022/components/input-time/native-time/native-time.component.mjs +67 -0
  309. package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +5 -0
  310. package/esm2022/components/input-year/index.mjs +4 -0
  311. package/esm2022/components/input-year/input-year.component.mjs +107 -0
  312. package/esm2022/components/input-year/input-year.directive.mjs +27 -0
  313. package/esm2022/components/input-year/input-year.module.mjs +49 -0
  314. package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +5 -0
  315. package/esm2022/components/island/index.mjs +2 -0
  316. package/esm2022/components/island/island.directive.mjs +74 -0
  317. package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +5 -0
  318. package/esm2022/components/multi-select/hide-selected.pipe.mjs +43 -0
  319. package/esm2022/components/multi-select/index.mjs +11 -0
  320. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +99 -0
  321. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +65 -0
  322. package/esm2022/components/multi-select/multi-select.component.mjs +204 -0
  323. package/esm2022/components/multi-select/multi-select.directive.mjs +31 -0
  324. package/esm2022/components/multi-select/multi-select.module.mjs +111 -0
  325. package/esm2022/components/multi-select/multi-select.options.mjs +13 -0
  326. package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +60 -0
  327. package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +56 -0
  328. package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +19 -0
  329. package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +5 -0
  330. package/esm2022/components/multi-select-option/index.mjs +3 -0
  331. package/esm2022/components/multi-select-option/multi-select-option.component.mjs +25 -0
  332. package/esm2022/components/multi-select-option/multi-select-option.module.mjs +20 -0
  333. package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +5 -0
  334. package/esm2022/components/primitive-textfield/index.mjs +8 -0
  335. package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +17 -0
  336. package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +2 -0
  337. package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +247 -0
  338. package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +28 -0
  339. package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +62 -0
  340. package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +5 -0
  341. package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +39 -0
  342. package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +71 -0
  343. package/esm2022/components/select/index.mjs +7 -0
  344. package/esm2022/components/select/native-select/native-select-group.component.mjs +60 -0
  345. package/esm2022/components/select/native-select/native-select.component.mjs +56 -0
  346. package/esm2022/components/select/select.component.mjs +116 -0
  347. package/esm2022/components/select/select.directive.mjs +29 -0
  348. package/esm2022/components/select/select.module.mjs +83 -0
  349. package/esm2022/components/select/select.options.mjs +12 -0
  350. package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +5 -0
  351. package/esm2022/components/select-option/index.mjs +3 -0
  352. package/esm2022/components/select-option/select-option.component.mjs +65 -0
  353. package/esm2022/components/select-option/select-option.module.mjs +21 -0
  354. package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +5 -0
  355. package/esm2022/components/sheet/components/sheet/sheet.component.mjs +118 -0
  356. package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +42 -0
  357. package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +27 -0
  358. package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +31 -0
  359. package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +46 -0
  360. package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +38 -0
  361. package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +37 -0
  362. package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +51 -0
  363. package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +76 -0
  364. package/esm2022/components/sheet/index.mjs +15 -0
  365. package/esm2022/components/sheet/sheet-options.mjs +21 -0
  366. package/esm2022/components/sheet/sheet-tokens.mjs +14 -0
  367. package/esm2022/components/sheet/sheet.directive.mjs +38 -0
  368. package/esm2022/components/sheet/sheet.mjs +2 -0
  369. package/esm2022/components/sheet/sheet.module.mjs +74 -0
  370. package/esm2022/components/sheet/sheet.service.mjs +51 -0
  371. package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +5 -0
  372. package/esm2022/components/svg/content-processor.mjs +38 -0
  373. package/esm2022/components/svg/deprecated-icons.mjs +59 -0
  374. package/esm2022/components/svg/index.mjs +6 -0
  375. package/esm2022/components/svg/svg-options.mjs +60 -0
  376. package/esm2022/components/svg/svg.component.mjs +147 -0
  377. package/esm2022/components/svg/svg.service.mjs +64 -0
  378. package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +5 -0
  379. package/esm2022/components/table-bar/index.mjs +6 -0
  380. package/esm2022/components/table-bar/table-bar.component.mjs +33 -0
  381. package/esm2022/components/table-bar/table-bar.directive.mjs +21 -0
  382. package/esm2022/components/table-bar/table-bar.options.mjs +16 -0
  383. package/esm2022/components/table-bar/table-bars-host.component.mjs +35 -0
  384. package/esm2022/components/table-bar/table-bars.service.mjs +21 -0
  385. package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +5 -0
  386. package/esm2022/components/tag/index.mjs +4 -0
  387. package/esm2022/components/tag/tag.component.mjs +171 -0
  388. package/esm2022/components/tag/tag.module.mjs +38 -0
  389. package/esm2022/components/tag/tag.options.mjs +15 -0
  390. package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +5 -0
  391. package/esm2022/components/taiga-ui-legacy-components.mjs +5 -0
  392. package/esm2022/components/textarea/index.mjs +4 -0
  393. package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +5 -0
  394. package/esm2022/components/textarea/textarea.component.mjs +189 -0
  395. package/esm2022/components/textarea/textarea.directive.mjs +20 -0
  396. package/esm2022/components/textarea/textarea.module.mjs +64 -0
  397. package/esm2022/components/tooltip/index.mjs +3 -0
  398. package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +5 -0
  399. package/esm2022/components/tooltip/tooltip.component.mjs +47 -0
  400. package/esm2022/components/tooltip/tooltip.module.mjs +24 -0
  401. package/esm2022/directives/index.mjs +6 -0
  402. package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +2 -0
  403. package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +40 -0
  404. package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +5 -0
  405. package/esm2022/directives/taiga-ui-legacy-directives.mjs +5 -0
  406. package/esm2022/directives/textfield-controller/index.mjs +15 -0
  407. package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +5 -0
  408. package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +32 -0
  409. package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +25 -0
  410. package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +72 -0
  411. package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +44 -0
  412. package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +25 -0
  413. package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +25 -0
  414. package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +21 -0
  415. package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +21 -0
  416. package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +29 -0
  417. package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +25 -0
  418. package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +25 -0
  419. package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +25 -0
  420. package/esm2022/directives/textfield-controller/textfield.controller.mjs +48 -0
  421. package/esm2022/directives/textfield-controller/textfield.options.mjs +14 -0
  422. package/esm2022/directives/unfinished-validator/index.mjs +3 -0
  423. package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -0
  424. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +25 -0
  425. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +15 -0
  426. package/esm2022/directives/value-accessor/index.mjs +4 -0
  427. package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +5 -0
  428. package/esm2022/directives/value-accessor/value-accessor.directive.mjs +16 -0
  429. package/esm2022/directives/value-accessor/value-accessor.module.mjs +17 -0
  430. package/esm2022/directives/value-accessor/value-accessor.provider.mjs +10 -0
  431. package/esm2022/directives/wrapper/index.mjs +3 -0
  432. package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +5 -0
  433. package/esm2022/directives/wrapper/wrapper.directive.mjs +85 -0
  434. package/esm2022/directives/wrapper/wrapper.module.mjs +20 -0
  435. package/esm2022/index.mjs +7 -0
  436. package/esm2022/pipes/format-phone/format-phone.pipe.mjs +50 -0
  437. package/esm2022/pipes/format-phone/index.mjs +2 -0
  438. package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +5 -0
  439. package/esm2022/pipes/index.mjs +4 -0
  440. package/esm2022/pipes/iso-to-country-code/index.mjs +2 -0
  441. package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +43 -0
  442. package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +5 -0
  443. package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +5 -0
  444. package/esm2022/pipes/to-country-code/index.mjs +2 -0
  445. package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +5 -0
  446. package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +73 -0
  447. package/esm2022/taiga-ui-legacy.mjs +5 -0
  448. package/esm2022/tokens/countries-masks.mjs +254 -0
  449. package/esm2022/tokens/focusable-item-accessor.mjs +14 -0
  450. package/esm2022/tokens/fonts-ready.mjs +7 -0
  451. package/esm2022/tokens/icons.mjs +7 -0
  452. package/esm2022/tokens/index.mjs +15 -0
  453. package/esm2022/tokens/is-apple.mjs +9 -0
  454. package/esm2022/tokens/is-chromium.mjs +8 -0
  455. package/esm2022/tokens/is-firefox.mjs +9 -0
  456. package/esm2022/tokens/is-stackblitz.mjs +5 -0
  457. package/esm2022/tokens/month-formatter.mjs +17 -0
  458. package/esm2022/tokens/sanitizer.mjs +6 -0
  459. package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +5 -0
  460. package/esm2022/tokens/textfield-appearance.mjs +7 -0
  461. package/esm2022/tokens/textfield-host.mjs +10 -0
  462. package/esm2022/tokens/touch-supported.mjs +5 -0
  463. package/esm2022/tokens/value-accessor.mjs +7 -0
  464. package/esm2022/utils/date-mode-maskito-adapter.mjs +6 -0
  465. package/esm2022/utils/format-phone.mjs +59 -0
  466. package/esm2022/utils/get-border.mjs +20 -0
  467. package/esm2022/utils/get-max-allowed-phone-length.mjs +25 -0
  468. package/esm2022/utils/get-safe-area-size.mjs +17 -0
  469. package/esm2022/utils/icons-path-factory.mjs +14 -0
  470. package/esm2022/utils/index.mjs +14 -0
  471. package/esm2022/utils/is-apple.mjs +6 -0
  472. package/esm2022/utils/is-presumed-html-string.mjs +6 -0
  473. package/esm2022/utils/iso-to-country-code.mjs +15 -0
  474. package/esm2022/utils/not-kz-region.mjs +23 -0
  475. package/esm2022/utils/process-icon.mjs +32 -0
  476. package/esm2022/utils/specific-dropdown-controllers.mjs +6 -0
  477. package/esm2022/utils/status.mjs +2 -0
  478. package/esm2022/utils/taiga-ui-legacy-utils.mjs +5 -0
  479. package/fesm2022/taiga-ui-legacy-classes.mjs +377 -0
  480. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -0
  481. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +73 -0
  482. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -0
  483. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +280 -0
  484. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -0
  485. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +177 -0
  486. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -0
  487. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +277 -0
  488. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -0
  489. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +334 -0
  490. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -0
  491. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +438 -0
  492. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -0
  493. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +358 -0
  494. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -0
  495. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +209 -0
  496. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -0
  497. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +219 -0
  498. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -0
  499. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +344 -0
  500. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -0
  501. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +167 -0
  502. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -0
  503. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +204 -0
  504. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -0
  505. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +355 -0
  506. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -0
  507. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +253 -0
  508. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -0
  509. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +192 -0
  510. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -0
  511. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +488 -0
  512. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -0
  513. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +447 -0
  514. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -0
  515. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +176 -0
  516. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -0
  517. package/fesm2022/taiga-ui-legacy-components-input.mjs +132 -0
  518. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -0
  519. package/fesm2022/taiga-ui-legacy-components-island.mjs +80 -0
  520. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +1 -0
  521. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +47 -0
  522. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -0
  523. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +628 -0
  524. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -0
  525. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +443 -0
  526. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -0
  527. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +88 -0
  528. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -0
  529. package/fesm2022/taiga-ui-legacy-components-select.mjs +323 -0
  530. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -0
  531. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +561 -0
  532. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -0
  533. package/fesm2022/taiga-ui-legacy-components-svg.mjs +356 -0
  534. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -0
  535. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +115 -0
  536. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -0
  537. package/fesm2022/taiga-ui-legacy-components-tag.mjs +225 -0
  538. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -0
  539. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +267 -0
  540. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -0
  541. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +71 -0
  542. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -0
  543. package/fesm2022/taiga-ui-legacy-components.mjs +36 -0
  544. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -0
  545. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +46 -0
  546. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -0
  547. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +365 -0
  548. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -0
  549. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +44 -0
  550. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -0
  551. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +43 -0
  552. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -0
  553. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +107 -0
  554. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -0
  555. package/fesm2022/taiga-ui-legacy-directives.mjs +10 -0
  556. package/fesm2022/taiga-ui-legacy-directives.mjs.map +1 -0
  557. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +56 -0
  558. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -0
  559. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +49 -0
  560. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -0
  561. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +79 -0
  562. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -0
  563. package/fesm2022/taiga-ui-legacy-pipes.mjs +8 -0
  564. package/fesm2022/taiga-ui-legacy-pipes.mjs.map +1 -0
  565. package/fesm2022/taiga-ui-legacy-tokens.mjs +348 -0
  566. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -0
  567. package/fesm2022/taiga-ui-legacy-utils.mjs +235 -0
  568. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -0
  569. package/fesm2022/taiga-ui-legacy.mjs +11 -0
  570. package/fesm2022/taiga-ui-legacy.mjs.map +1 -0
  571. package/index.d.ts +6 -0
  572. package/package.json +303 -0
  573. package/pipes/format-phone/format-phone.pipe.d.ts +34 -0
  574. package/pipes/format-phone/index.d.ts +1 -0
  575. package/pipes/index.d.ts +3 -0
  576. package/pipes/iso-to-country-code/index.d.ts +1 -0
  577. package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +29 -0
  578. package/pipes/to-country-code/index.d.ts +1 -0
  579. package/pipes/to-country-code/to-country-code.pipe.d.ts +37 -0
  580. package/styles/mixins/mixins.less +252 -0
  581. package/styles/mixins/mixins.scss +230 -0
  582. package/styles/mixins/textfield.less +315 -0
  583. package/styles/mixins/textfield.scss +306 -0
  584. package/styles/mixins/wrapper.less +65 -0
  585. package/styles/mixins/wrapper.scss +59 -0
  586. package/styles/taiga-ui-local.less +4 -0
  587. package/styles/taiga-ui-local.scss +4 -0
  588. package/styles/taiga-ui-theme.less +15 -0
  589. package/styles/wrapper/accent.less +28 -0
  590. package/styles/wrapper/base.less +44 -0
  591. package/styles/wrapper/floating.less +19 -0
  592. package/styles/wrapper/glass.less +31 -0
  593. package/styles/wrapper/icon.less +53 -0
  594. package/styles/wrapper/mono.less +23 -0
  595. package/styles/wrapper/none.less +5 -0
  596. package/styles/wrapper/opposite.less +33 -0
  597. package/styles/wrapper/outline.less +52 -0
  598. package/styles/wrapper/primary.less +32 -0
  599. package/styles/wrapper/secondary-destructive.less +16 -0
  600. package/styles/wrapper/secondary.less +47 -0
  601. package/styles/wrapper/table.less +82 -0
  602. package/styles/wrapper/textfield.less +80 -0
  603. package/styles/wrapper/whiteblock.less +47 -0
  604. package/tokens/countries-masks.d.ts +7 -0
  605. package/tokens/focusable-item-accessor.d.ts +22 -0
  606. package/tokens/fonts-ready.d.ts +3 -0
  607. package/tokens/icons.d.ts +5 -0
  608. package/tokens/index.d.ts +14 -0
  609. package/tokens/is-apple.d.ts +4 -0
  610. package/tokens/is-chromium.d.ts +4 -0
  611. package/tokens/is-firefox.d.ts +4 -0
  612. package/tokens/is-stackblitz.d.ts +1 -0
  613. package/tokens/month-formatter.d.ts +10 -0
  614. package/tokens/sanitizer.d.ts +6 -0
  615. package/tokens/textfield-appearance.d.ts +5 -0
  616. package/tokens/textfield-host.d.ts +17 -0
  617. package/tokens/touch-supported.d.ts +1 -0
  618. package/tokens/value-accessor.d.ts +7 -0
  619. package/utils/date-mode-maskito-adapter.d.ts +3 -0
  620. package/utils/format-phone.d.ts +29 -0
  621. package/utils/get-border.d.ts +2 -0
  622. package/utils/get-max-allowed-phone-length.d.ts +23 -0
  623. package/utils/get-safe-area-size.d.ts +6 -0
  624. package/utils/icons-path-factory.d.ts +4 -0
  625. package/utils/index.d.ts +13 -0
  626. package/utils/is-apple.d.ts +1 -0
  627. package/utils/is-presumed-html-string.d.ts +1 -0
  628. package/utils/iso-to-country-code.d.ts +12 -0
  629. package/utils/not-kz-region.d.ts +19 -0
  630. package/utils/process-icon.d.ts +1 -0
  631. package/utils/specific-dropdown-controllers.d.ts +1 -0
  632. package/utils/status.d.ts +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-legacy-components-sheet.mjs","sources":["../../../projects/legacy/components/sheet/sheet-tokens.ts","../../../projects/legacy/components/sheet/components/sheet-heading/sheet-heading.component.ts","../../../projects/legacy/components/sheet/components/sheet-heading/sheet-heading.template.html","../../../projects/legacy/components/sheet/components/sheet/sheet.providers.ts","../../../projects/legacy/components/sheet/components/sheet-bar/sheet-bar.component.ts","../../../projects/legacy/components/sheet/components/sheet-bar/sheet-bar.template.html","../../../projects/legacy/components/sheet/directives/sheet-top/sheet-top.directive.ts","../../../projects/legacy/components/sheet/directives/sheet-stop/sheet-stop.directive.ts","../../../projects/legacy/components/sheet/components/sheet/sheet.component.ts","../../../projects/legacy/components/sheet/components/sheet/sheet.template.html","../../../projects/legacy/components/sheet/sheet-options.ts","../../../projects/legacy/components/sheet/sheet.service.ts","../../../projects/legacy/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts","../../../projects/legacy/components/sheet/directives/sheet-close/sheet-close.directive.ts","../../../projects/legacy/components/sheet/components/sheets-host/sheets-host.component.ts","../../../projects/legacy/components/sheet/components/sheets-host/sheets-host.template.html","../../../projects/legacy/components/sheet/sheet.directive.ts","../../../projects/legacy/components/sheet/sheet.module.ts","../../../projects/legacy/components/sheet/taiga-ui-legacy-components-sheet.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport type {Observable} from 'rxjs';\n\nimport type {TuiSheetRequiredProps} from './sheet';\n\n/**\n * Sheet main component\n */\nexport const TUI_SHEET = new InjectionToken<TuiSheetRequiredProps>('[TUI_SHEET]');\n\n/**\n * Current scrollTop of a sheet\n */\nexport const TUI_SHEET_SCROLL = new InjectionToken<Observable<number>>(\n '[TUI_SHEET_SCROLL]',\n);\n\n/**\n * The sheet is being dragged\n */\nexport const TUI_SHEET_DRAGGED = new InjectionToken<Observable<boolean>>(\n '[TUI_SHEET_DRAGGED]',\n);\n","import type {AfterViewInit} from '@angular/core';\nimport {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {TuiIdService} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\n\nexport const TUI_SHEET_CLOSE = 'tui-sheet-close';\nexport const TUI_SHEET_ID = 'tui-sheet-id';\n\n@Component({\n selector: '[tuiSheetHeading]',\n templateUrl: './sheet-heading.template.html',\n styleUrls: ['./sheet-heading.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSheetHeadingComponent implements AfterViewInit {\n private readonly el = tuiInjectElement();\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly id = inject(TuiIdService).generate();\n\n public ngAfterViewInit(): void {\n this.el.dispatchEvent(\n new CustomEvent(TUI_SHEET_ID, {bubbles: true, detail: this.id}),\n );\n }\n\n protected onClick(): void {\n this.el.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, {bubbles: true}));\n }\n}\n","<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconLeft]=\"icons.close\"\n (click)=\"onClick()\"\n>\n {{ closeWord$ | async }}\n</button>\n<span [id]=\"id\">\n <ng-content />\n</span>\n","import {DOCUMENT} from '@angular/common';\nimport type {Provider} from '@angular/core';\nimport {ElementRef, forwardRef, NgZone} from '@angular/core';\nimport {TUI_FALSE_HANDLER, TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport type {Observable} from 'rxjs';\nimport {concat, delay, map, merge, share, switchMap, take, takeUntil, zip} from 'rxjs';\n\nimport {TUI_SHEET, TUI_SHEET_DRAGGED, TUI_SHEET_SCROLL} from '../../sheet-tokens';\nimport {TuiSheetComponent} from './sheet.component';\n\nexport const TUI_SHEET_PROVIDERS: Provider[] = [\n {\n provide: TUI_SHEET_DRAGGED,\n deps: [ElementRef],\n useFactory: ({nativeElement}: ElementRef<HTMLElement>): Observable<boolean> =>\n merge(\n tuiTypedFromEvent(nativeElement, 'touchstart', {passive: true}).pipe(\n map(TUI_TRUE_HANDLER),\n ),\n tuiTypedFromEvent(nativeElement, 'touchend').pipe(map(TUI_FALSE_HANDLER)),\n ),\n },\n {\n provide: TUI_SHEET_SCROLL,\n deps: [ElementRef, NgZone, DOCUMENT, TUI_IS_IOS],\n useFactory: (\n {nativeElement}: ElementRef<HTMLElement>,\n zone: NgZone,\n doc: Document,\n isIos: boolean,\n ): Observable<number> =>\n isIos\n ? iosScrollFactory(nativeElement, doc, zone)\n : merge(\n tuiTypedFromEvent(nativeElement, 'scroll'),\n tuiTypedFromEvent(nativeElement, 'load', {capture: true}),\n ).pipe(\n map(() => nativeElement.scrollTop),\n tuiZonefree(zone),\n share(),\n ),\n },\n tuiProvide(TUI_SCROLL_REF, ElementRef),\n tuiProvide(\n TUI_SHEET,\n forwardRef(() => TuiSheetComponent),\n ),\n];\n\nfunction iosScrollFactory(\n element: HTMLElement,\n doc: Document,\n zone: NgZone,\n): Observable<number> {\n const load$ = tuiTypedFromEvent(element, 'load', {capture: true});\n const touchstart$ = tuiTypedFromEvent(element, 'touchstart', {passive: true});\n const touchmove$ = tuiTypedFromEvent(doc, 'touchmove', {passive: true});\n const touchend$ = tuiTypedFromEvent(doc, 'touchend');\n const scroll$ = tuiTypedFromEvent(element, 'scroll').pipe(\n map(() => element.scrollTop),\n );\n const result$ = merge(\n load$.pipe(\n delay(0),\n map(() => element.scrollTop),\n ),\n touchstart$.pipe(\n switchMap(({touches}) => {\n const {screenY} = touches[0];\n const {scrollTop} = element;\n\n return concat(\n // Sometimes touch is triggered without scroll in iOS, filter that\n zip(touchmove$, scroll$).pipe(\n map(([{touches}]) => scrollTop + screenY - touches[0].screenY),\n takeUntil(touchend$),\n ),\n scroll$,\n );\n }),\n ),\n );\n\n return concat(scroll$.pipe(take(1)), result$).pipe(tuiZonefree(zone), share());\n}\n","import {ChangeDetectionStrategy, Component, inject, NgZone} from '@angular/core';\nimport {tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {distinctUntilChanged, map} from 'rxjs';\n\nimport {TUI_SHEET, TUI_SHEET_SCROLL} from '../../sheet-tokens';\n\n@Component({\n selector: 'tui-sheet-bar',\n templateUrl: './sheet-bar.template.html',\n styleUrls: ['./sheet-bar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSheetBarComponent {\n private readonly sheet = inject(TUI_SHEET);\n private readonly scroll$ = inject(TUI_SHEET_SCROLL);\n private readonly zone = inject(NgZone);\n\n protected readonly rotate$ = this.scroll$.pipe(\n map(y => tuiClamp(10 - (y - this.stop) / 5, 0, 10)),\n distinctUntilChanged(),\n tuiZonefull(this.zone),\n );\n\n private get stop(): number {\n return this.sheet.stops[0] || 0;\n }\n}\n","<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(-' + deg + 'deg)'}\"\n ></div>\n <ng-content *ngIf=\"deg\" />\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n","import {Directive, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {map} from 'rxjs';\n\nimport {TUI_SHEET, TUI_SHEET_SCROLL} from '../../sheet-tokens';\n\n// So that borders get rounded when image is visible for at least 10px\nconst OFFSET = 10;\n\n@Directive({\n selector: '[tuiSheetTop]',\n})\nexport class TuiSheetTopDirective {\n private readonly scroll$ = inject(TUI_SHEET_SCROLL);\n private readonly component = inject(TUI_SHEET);\n private readonly win = inject(WINDOW);\n private readonly el = tuiInjectElement();\n\n protected readonly rounded$ = this.scroll$\n .pipe(map(y => y < this.stop + OFFSET))\n .pipe(takeUntilDestroyed())\n .subscribe(add =>\n add\n ? this.el.classList.add('_rounded')\n : this.el.classList.remove('_rounded'),\n );\n\n protected readonly transform$ = this.scroll$\n .pipe(\n map(y => `translateY(${this.getY(y)}%) scaleX(-1)`),\n takeUntilDestroyed(),\n )\n .subscribe(transform => this.el.style.setProperty('transform', transform));\n\n protected readonly clickthrough$ = this.scroll$\n .pipe(\n map(y => !!Math.round(this.getY(y))),\n takeUntilDestroyed(),\n )\n .subscribe(add =>\n add\n ? this.el.classList.add('_clickthrough')\n : this.el.classList.remove('_clickthrough'),\n );\n\n @Input('tuiSheetTop')\n public stop = 0;\n\n private getY(scrollTop: number): number {\n const value = scrollTop - this.stop;\n const total = this.win.innerHeight - this.component.item.offset - this.stop;\n\n return this.stop && tuiClamp(100 - (value / total) * 100, 0, 100);\n }\n}\n","import {DestroyRef, Directive, inject} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport {\n distinctUntilChanged,\n filter,\n map,\n throttleTime,\n timer,\n withLatestFrom,\n} from 'rxjs';\n\nimport {TUI_SHEET_DRAGGED, TUI_SHEET_SCROLL} from '../../sheet-tokens';\n\n@Directive({\n selector: '[tuiSheetStop]',\n})\nexport class TuiSheetStopDirective {\n constructor() {\n const scrollRef = inject(TUI_SCROLL_REF).nativeElement;\n const destroyRef = inject(DestroyRef);\n const el = tuiInjectElement();\n\n inject(TUI_SHEET_SCROLL)\n .pipe(\n map(y => Math.floor(y) > el.offsetTop),\n distinctUntilChanged(),\n withLatestFrom(inject(TUI_SHEET_DRAGGED)),\n map(([above, dragged]) => !above && !dragged),\n filter(Boolean),\n throttleTime(100),\n takeUntilDestroyed(destroyRef),\n )\n .subscribe(() => {\n scrollRef.style.overflow = 'hidden';\n scrollRef.classList.remove('_stuck'); // iOS\n scrollRef.scrollTop = el.offsetTop;\n\n timer(100)\n .pipe(takeUntilDestroyed(destroyRef))\n // eslint-disable-next-line rxjs/no-nested-subscribe\n .subscribe(() => {\n scrollRef.style.overflow = '';\n });\n });\n }\n}\n","import type {AfterViewInit, ElementRef, QueryList} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n HostListener,\n inject,\n Input,\n NgZone,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiSlideInTop} from '@taiga-ui/core/animations';\nimport {TUI_MORE_WORD} from '@taiga-ui/kit/tokens';\nimport {map, timer} from 'rxjs';\n\nimport type {TuiSheet, TuiSheetRequiredProps} from '../../sheet';\nimport {TUI_SHEET_SCROLL} from '../../sheet-tokens';\nimport {TUI_SHEET_ID} from '../sheet-heading/sheet-heading.component';\nimport {TUI_SHEET_PROVIDERS} from './sheet.providers';\n\n@Component({\n selector: 'tui-sheet',\n templateUrl: './sheet.template.html',\n styleUrls: ['./sheet.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_SHEET_PROVIDERS,\n animations: [tuiSlideInTop],\n host: {\n role: 'dialog',\n '[attr.aria-labelledby]': 'id',\n '[class._ios]': 'isIos',\n },\n})\nexport class TuiSheetComponent<T> implements TuiSheetRequiredProps<T>, AfterViewInit {\n @ViewChild('sheet')\n private readonly sheet?: ElementRef<HTMLElement>;\n\n @ViewChild('content')\n private readonly content?: ElementRef<HTMLElement>;\n\n @ViewChildren('stops')\n private readonly stopsRefs: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private readonly destroyRef = inject(DestroyRef);\n private readonly scroll$ = inject(TUI_SHEET_SCROLL);\n private readonly el = tuiInjectElement();\n private readonly zone = inject(NgZone);\n\n protected id = '';\n protected readonly isIos = inject(TUI_IS_IOS);\n protected readonly moreWord$ = inject(TUI_MORE_WORD);\n protected readonly stuck$ = this.scroll$.pipe(\n map(y => Math.floor(y) > this.contentTop),\n );\n\n protected readonly stuck$$ = this.stuck$\n .pipe(takeUntilDestroyed())\n .subscribe(add =>\n add ? this.el.classList.add('_stuck') : this.el.classList.remove('_stuck'),\n );\n\n @Input()\n public item!: TuiSheet<T>;\n\n @tuiPure\n public get context(): TuiSheet<T> {\n return {\n ...this.item,\n scroll$: this.scroll$.pipe(tuiZonefull(this.zone)),\n };\n }\n\n public get stops(): readonly number[] {\n return this.getStops(this.stopsRefs);\n }\n\n public get imageStop(): number {\n return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;\n }\n\n public get imageHeight(): number {\n return this.contentTop - this.sheetTop;\n }\n\n public ngAfterViewInit(): void {\n this.el.scrollTop = [...this.stops, this.sheetTop, this.contentTop][\n this.item.initial\n ];\n }\n\n @HostListener(TUI_SHEET_ID, ['$event.detail'])\n protected onId(id: string): void {\n this.id = id;\n }\n\n protected scrollTo(top: number = this.sheetTop): void {\n if (this.isIos) {\n const offset = top - this.el.scrollTop - 16;\n\n this.el.style.transition = 'none';\n this.el.style.transform = `scaleX(-1) translate3d(0, ${offset}px, 0)`;\n\n timer(0)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.el.style.transition = '';\n this.el.style.transform = '';\n });\n }\n\n this.el.scrollTo({top, behavior: 'smooth'});\n }\n\n protected close(): void {\n if (this.context.closeable) {\n this.context.$implicit.complete();\n }\n }\n\n private get contentTop(): number {\n return this.content?.nativeElement.offsetTop ?? Infinity;\n }\n\n private get sheetTop(): number {\n return this.sheet?.nativeElement.offsetTop ?? Infinity;\n }\n\n @tuiPure\n private getStops(stops: QueryList<ElementRef<HTMLElement>>): readonly number[] {\n return stops.map(\n ({nativeElement}) => nativeElement.offsetTop + nativeElement.clientHeight,\n );\n }\n}\n","<div\n class=\"t-bumpers\"\n (click)=\"close()\"\n>\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-wrapper\"\n [class.t-wrapper_shadow]=\"!item.image\"\n>\n <header\n *ngIf=\"item.image\"\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n >\n <img\n *polymorpheusOutlet=\"item.image as src; context: context\"\n alt=\"\"\n class=\"t-image\"\n [src]=\"src\"\n />\n </header>\n <section\n #content\n tuiSheetStop\n class=\"t-sheet\"\n >\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n type=\"button\"\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div class=\"t-content\">\n <h2\n *polymorpheusOutlet=\"item.content as text; context: context\"\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ text }}\n </h2>\n </div>\n </section>\n</div>\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport type {TuiSheet} from './sheet';\n\n/**\n * @deprecated\n */\nexport interface TuiSheetOptions<I = undefined, O = unknown> {\n readonly closeable: boolean;\n readonly data: I;\n readonly image: PolymorpheusContent<TuiSheet<O, I>>;\n readonly imageSlide: boolean;\n readonly initial: number;\n readonly offset: number;\n readonly overlay: boolean;\n readonly stops: readonly string[];\n}\n\n/**\n * @deprecated\n */\nexport const TUI_SHEET_DEFAULT_OPTIONS: Omit<TuiSheetOptions, 'data'> = {\n image: '',\n imageSlide: true,\n stops: [],\n initial: 0,\n offset: 16,\n closeable: true,\n overlay: false,\n};\n\n/**\n * @deprecated\n * Default parameters for sheet component\n */\nexport const TUI_SHEET_OPTIONS = tuiCreateToken<Omit<TuiSheetOptions, 'data'>>({\n ...TUI_SHEET_DEFAULT_OPTIONS,\n});\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiGetNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport type {PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {BehaviorSubject, EMPTY, Observable} from 'rxjs';\n\nimport type {TuiSheet} from './sheet';\nimport type {TuiSheetOptions} from './sheet-options';\nimport {TUI_SHEET_OPTIONS} from './sheet-options';\n\n/**\n * @deprecated: use {@link TuiSheetDialogService}\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiSheetService {\n private readonly doc = inject(DOCUMENT);\n private readonly options = inject<TuiSheetOptions>(TUI_SHEET_OPTIONS);\n public readonly sheets$ = new BehaviorSubject<Array<TuiSheet<any, any>>>([]);\n\n public open<G>(\n content: PolymorpheusContent<TuiSheet<G>>,\n options: Partial<TuiSheetOptions> = {},\n ): Observable<G> {\n return new Observable($implicit => {\n const completeWith = (result: G): void => {\n $implicit.next(result);\n $implicit.complete();\n };\n const sheet: TuiSheet<any> = {\n ...this.options,\n ...options,\n content,\n completeWith,\n $implicit,\n scroll$: EMPTY,\n };\n const focused = tuiGetNativeFocused(this.doc);\n\n if (tuiIsHTMLElement(focused) && sheet.overlay) {\n focused.blur();\n }\n\n this.sheets$.next([...this.sheets$.value, sheet]);\n\n return () => {\n this.sheets$.next(this.sheets$.value.filter(item => item !== sheet));\n };\n });\n }\n}\n","import {ContentChild, Directive, inject, Input, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiIsFalsy, tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {\n debounceTime,\n distinctUntilChanged,\n filter,\n map,\n race,\n startWith,\n switchMap,\n take,\n timer,\n} from 'rxjs';\n\nimport {TuiSheetComponent} from '../../components/sheet/sheet.component';\nimport {TUI_SHEET_DRAGGED, TUI_SHEET_SCROLL} from '../../sheet-tokens';\n\n// Safety offset for shadow\nconst OFFSET = 16;\n\nfunction processDragged(\n dragged$: Observable<boolean>,\n scroll$: Observable<unknown>,\n): Observable<boolean> {\n const touchstart$ = dragged$.pipe(filter(Boolean));\n const touchend$ = dragged$.pipe(filter(tuiIsFalsy));\n const race$ = race(scroll$, timer(100)).pipe(\n debounceTime(200),\n take(1),\n map(TUI_FALSE_HANDLER),\n );\n\n return touchstart$.pipe(\n switchMap(() =>\n touchend$.pipe(\n switchMap(() => race$),\n startWith(true),\n ),\n ),\n startWith(false),\n );\n}\n\n@Directive({\n selector: '[tuiSheetWrapper]',\n exportAs: 'tuiSheetWrapper',\n})\nexport class TuiSheetWrapperDirective {\n @ContentChild(TuiSheetComponent)\n private readonly sheet?: TuiSheetComponent<unknown>;\n\n @ContentChild(TuiSheetComponent, {read: TUI_SHEET_DRAGGED, static: true})\n private readonly dragged$!: Observable<boolean>;\n\n @ContentChild(TuiSheetComponent, {read: TUI_SHEET_SCROLL, static: true})\n private readonly scroll$!: Observable<number>;\n\n private readonly zone = inject(NgZone);\n private readonly win = inject(WINDOW);\n\n @Input()\n public tuiSheetWrapper = 16;\n\n @tuiPure\n public get overlay$(): Observable<boolean> {\n return this.scroll$.pipe(\n map(y => y + 16 > this.win.innerHeight - this.tuiSheetWrapper),\n distinctUntilChanged(),\n tuiZonefull(this.zone),\n );\n }\n\n @tuiPure\n public get visible$(): Observable<boolean> {\n return processDragged(this.dragged$, this.scroll$).pipe(\n distinctUntilChanged(),\n tuiZonefull(this.zone),\n );\n }\n\n @tuiPure\n public get height$(): Observable<number | null> {\n return this.scroll$.pipe(map(this.getHeight.bind(this)));\n }\n\n private getHeight(value: number): number | null {\n return this.sheet?.context.overlay\n ? null\n : tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.win.innerHeight);\n }\n\n private withImage(value: number): number {\n return !this.sheet?.imageStop || Math.floor(value) > this.sheet.imageStop\n ? value\n : value - this.sheet.imageHeight;\n }\n}\n","import {Directive, inject, NgZone, Output} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiIfMap, tuiTypedFromEvent, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsFalsy} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {distinctUntilChanged, filter, merge, startWith} from 'rxjs';\n\nimport {TuiSheetComponent} from '../../components/sheet/sheet.component';\nimport {TUI_SHEET_CLOSE} from '../../components/sheet-heading/sheet-heading.component';\nimport {TUI_SHEET_DRAGGED, TUI_SHEET_SCROLL} from '../../sheet-tokens';\n\n@Directive({\n selector: 'tui-sheet[close]',\n})\nexport class TuiSheetCloseDirective {\n private readonly zone = inject(NgZone);\n private readonly dragged$ = inject(TUI_SHEET_DRAGGED);\n private readonly scroll$ = inject(TUI_SHEET_SCROLL);\n private readonly win = inject(WINDOW);\n private readonly el = tuiInjectElement();\n private readonly sheet = inject(TuiSheetComponent);\n\n @Output()\n public readonly close: Observable<unknown> = merge(\n tuiTypedFromEvent(this.el, TUI_SHEET_CLOSE),\n this.dragged$.pipe(\n tuiIfMap(() => this.scroll$.pipe(startWith(this.el.scrollTop)), tuiIsFalsy),\n filter(y => this.sheet.item?.closeable && this.shouldClose(y)),\n distinctUntilChanged(),\n tuiZonefull(this.zone),\n ),\n );\n\n private shouldClose(scrollTop: number): boolean {\n const height = Math.min(\n this.win.innerHeight,\n this.el.scrollHeight - this.win.innerHeight,\n );\n const min = Math.min(height, this.sheet.stops[0] || Infinity);\n\n return scrollTop < min / 2;\n }\n}\n","import type {OnInit} from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n inject,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {TUI_WINDOW_SIZE} from '@taiga-ui/cdk/tokens';\nimport {tuiFadeIn, tuiSlideInTop} from '@taiga-ui/core/animations';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiToAnimationOptions} from '@taiga-ui/core/utils/miscellaneous';\nimport {map} from 'rxjs';\n\nimport type {TuiSheet} from '../../sheet';\nimport {TuiSheetService} from '../../sheet.service';\n\n@Component({\n selector: 'tui-sheets-host',\n templateUrl: './sheets-host.template.html',\n styleUrls: ['./sheets-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop, tuiFadeIn],\n})\nexport class TuiSheetsHostComponent implements OnInit {\n private readonly service = inject(TuiSheetService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly cdr = inject(ChangeDetectorRef);\n protected readonly height$ = inject(TUI_WINDOW_SIZE).pipe(map(({height}) => height));\n\n protected sheets: ReadonlyArray<TuiSheet<any>> = [];\n\n protected readonly options = tuiToAnimationOptions(inject(TUI_ANIMATIONS_SPEED));\n\n public ngOnInit(): void {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n this.service.sheets$\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(sheets => {\n this.sheets = sheets;\n this.cdr.detectChanges();\n });\n }\n\n protected close({closeable, $implicit}: TuiSheet<unknown>): void {\n if (closeable) {\n $implicit.complete();\n }\n }\n}\n","<div\n *ngFor=\"let item of sheets\"\n #wrapper=\"tuiSheetWrapper\"\n class=\"t-wrapper\"\n [@tuiFadeIn]=\"options\"\n [@tuiSlideInTop]=\"options\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n [class.t-wrapper_overlay]=\"item.overlay || (wrapper.overlay$ | async)\"\n [class.t-wrapper_visible]=\"wrapper.visible$ | async\"\n [style.height.px]=\"wrapper.height$ | async\"\n [tuiSheetWrapper]=\"item.offset\"\n (click.self)=\"close(item)\"\n>\n <tui-sheet\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n />\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n","import {Directive, inject, Input, Output} from '@angular/core';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {endWith, ignoreElements, share, Subject} from 'rxjs';\n\nimport type {TuiSheet} from './sheet';\nimport {TuiSheetService} from './sheet.service';\nimport type {TuiSheetOptions} from './sheet-options';\n\n/**\n * @deprecated: use {@link TuiSheetDialogDirective}\n */\n@Directive({\n selector: 'ng-template[tuiSheet]',\n})\nexport class TuiSheetDirective extends PolymorpheusTemplate<TuiSheet<never>> {\n private readonly service = inject(TuiSheetService);\n private readonly open$ = new Subject<boolean>();\n\n @Input('tuiSheetOptions')\n public options: Partial<TuiSheetOptions> = {};\n\n @Output()\n public readonly tuiSheetChange = this.open$.pipe(\n tuiIfMap(() =>\n this.service.open(this, this.options).pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n );\n\n @Input()\n public set tuiSheet(open: boolean) {\n this.open$.next(open);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule, NO_ERRORS_SCHEMA} from '@angular/core';\nimport {TuiLet} from '@taiga-ui/cdk/directives/let';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiScrollbar} from '@taiga-ui/core/components/scrollbar';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiSheetComponent} from './components/sheet/sheet.component';\nimport {TuiSheetBarComponent} from './components/sheet-bar/sheet-bar.component';\nimport {TuiSheetHeadingComponent} from './components/sheet-heading/sheet-heading.component';\nimport {TuiSheetsHostComponent} from './components/sheets-host/sheets-host.component';\nimport {TuiSheetCloseDirective} from './directives/sheet-close/sheet-close.directive';\nimport {TuiSheetStopDirective} from './directives/sheet-stop/sheet-stop.directive';\nimport {TuiSheetTopDirective} from './directives/sheet-top/sheet-top.directive';\nimport {TuiSheetWrapperDirective} from './directives/sheet-wrapper/sheet-wrapper.directive';\nimport {TuiSheetDirective} from './sheet.directive';\n\n/**\n * @deprecated: use {@link TuiSheetDialogModule}\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiLet,\n TuiButton,\n TuiScrollbar,\n ],\n declarations: [\n TuiSheetsHostComponent,\n TuiSheetComponent,\n TuiSheetBarComponent,\n TuiSheetHeadingComponent,\n TuiSheetTopDirective,\n TuiSheetDirective,\n TuiSheetWrapperDirective,\n TuiSheetCloseDirective,\n TuiSheetStopDirective,\n ],\n exports: [\n TuiSheetsHostComponent,\n TuiSheetComponent,\n TuiSheetHeadingComponent,\n TuiSheetDirective,\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class TuiSheetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","OFFSET","i3.TuiSheetBarComponent","i4.TuiSheetHeadingComponent","i5.TuiSheetTopDirective","i6.TuiSheetStopDirective","i2.TuiSheetComponent","i3.TuiSheetWrapperDirective","i4.TuiSheetCloseDirective"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;AAEG;AACI,MAAM,SAAS,GAAG,IAAI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BAlBnB,sBAAsB;YACtB,iBAAiB;YACjB,oBAAoB;YACpB,wBAAwB;YACxB,oBAAoB;YACpB,iBAAiB;YACjB,wBAAwB;YACxB,sBAAsB;AACtB,YAAA,qBAAqB,aAhBrB,YAAY;YACZ,kBAAkB;YAClB,oBAAoB;YACpB,MAAM;YACN,SAAS;AACT,YAAA,YAAY,aAcZ,sBAAsB;YACtB,iBAAiB;YACjB,wBAAwB;YACxB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;AAIZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YA1BnB,YAAY;YAKZ,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAqBP,cAAc,EAAA,UAAA,EAAA,CAAA;kBA5B1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,oBAAoB;wBACpB,MAAM;wBACN,SAAS;wBACT,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,sBAAsB;wBACtB,iBAAiB;wBACjB,oBAAoB;wBACpB,wBAAwB;wBACxB,oBAAoB;wBACpB,iBAAiB;wBACjB,wBAAwB;wBACxB,sBAAsB;wBACtB,qBAAqB;AACxB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,sBAAsB;wBACtB,iBAAiB;wBACjB,wBAAwB;wBACxB,iBAAiB;AACpB,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA,CAAA;;;AC/CD;;AAEG;;;;"}
@@ -0,0 +1,356 @@
1
+ import { tuiIsString, tuiCreateTokenFromFactory, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
2
+ import { __decorate } from 'tslib';
3
+ import { DOCUMENT, AsyncPipe, NgIf } from '@angular/common';
4
+ import * as i0 from '@angular/core';
5
+ import { inject, SecurityContext, Injectable, InjectionToken, SkipSelf, Optional, Component, ChangeDetectionStrategy, Input } from '@angular/core';
6
+ import { DomSanitizer } from '@angular/platform-browser';
7
+ import { WINDOW } from '@ng-web-apis/common';
8
+ import { TuiLet } from '@taiga-ui/cdk/directives/let';
9
+ import { TuiStaticRequestService } from '@taiga-ui/cdk/services';
10
+ import { TUI_BASE_HREF } from '@taiga-ui/cdk/tokens';
11
+ import { tuiInjectElement, tuiGetDocumentOrShadowRoot } from '@taiga-ui/cdk/utils/dom';
12
+ import { TUI_SANITIZER, TUI_ICONS } from '@taiga-ui/legacy/tokens';
13
+ import { tuiProcessIcon, tuiIconsPathFactory, TUI_CACHE_BUSTING_PAYLOAD, tuiIsPresumedHTMLString } from '@taiga-ui/legacy/utils';
14
+ import { BehaviorSubject, identity, ReplaySubject, switchMap, of, startWith, catchError, map } from 'rxjs';
15
+
16
+ function makeRandomSalt() {
17
+ return Math.floor(Math.random() * Date.now());
18
+ }
19
+ function extractLinearGradientIdsFromSvg(svg) {
20
+ const ids = (svg.match(/url\(("?)('*)#(.*?)('*)\)/g) ?? []).map(url => url.slice(4, url.length - 1).replaceAll(/['"#]+/g, ''));
21
+ return Array.from(new Set(ids));
22
+ }
23
+ /**
24
+ * @description:
25
+ * Any ‘linearGradient’ attributes which are defined on the referenced
26
+ * element which are not defined on this element are inherited by this element.
27
+ * If this element has no defined gradient stops, and the referenced element does
28
+ * (possibly due to its own ‘xlink:href’ attribute), then this element inherits
29
+ * the gradient stop from the referenced element. Inheritance can be indirect
30
+ * to an arbitrary level; thus, if the referenced element inherits attribute
31
+ * or gradient stops due to its own ‘xlink:href’ attribute, then the current
32
+ * element can inherit those attributes or gradient stops.
33
+ *
34
+ * Documentation: https://www.w3.org/TR/SVG11/pservers.html
35
+ *
36
+ */
37
+ function tuiSvgLinearGradientProcessor(svg, salt = makeRandomSalt()) {
38
+ if (tuiIsString(svg)) {
39
+ const uniqueIds = extractLinearGradientIdsFromSvg(svg);
40
+ return uniqueIds.reduce((newSvg, previousId) => {
41
+ const newId = `id_${salt}_${previousId}`;
42
+ return newSvg
43
+ .replaceAll(`"${previousId}"`, `"${newId}"`)
44
+ .replaceAll(`'${previousId}'`, `'${newId}'`)
45
+ .replaceAll(`url('#${previousId}')`, `url('#${newId}')`)
46
+ .replaceAll(`url("#${previousId}")`, `url("#${newId}")`)
47
+ .replaceAll(`url(#${previousId})`, `url(#${newId})`);
48
+ }, svg);
49
+ }
50
+ return svg;
51
+ }
52
+
53
+ const TUI_DEPRECATED_ICONS = {
54
+ tuiIconAttach: 'tuiIconPaperclip',
55
+ tuiIconAttention: 'tuiIconAlertCircle',
56
+ tuiIconBackCircle: 'tuiIconArrowLeftCircle',
57
+ tuiIconCall: 'tuiIconPhone',
58
+ tuiIconCallIn: 'tuiIconPhoneIncoming',
59
+ tuiIconCallOut: 'tuiIconPhoneOutgoing',
60
+ tuiIconCallTransfer: 'tuiIconPhoneForwarded',
61
+ tuiIconCancel: 'tuiIconXCircle',
62
+ tuiIconCancelCircle: 'tuiIconSlash',
63
+ tuiIconCard: 'tuiIconCreditCard',
64
+ tuiIconCards: 'tuiIconCreditCard',
65
+ tuiIconChartBar: 'tuiIconBarChart',
66
+ tuiIconChart: 'tuiIconBarChart',
67
+ tuiIconCheckList: 'tuiIconClipboard',
68
+ tuiIconCloseCircle: 'tuiIconXCircle',
69
+ tuiIconCollapse: 'tuiIconMinimize',
70
+ tuiIconComment: 'tuiIconMessageSquare',
71
+ tuiIconCommentFw: 'tuiIconMessageForward',
72
+ tuiIconCompany: 'tuiIconBriefcase',
73
+ tuiIconDefaultDoc: 'tuiIconFile',
74
+ tuiIconDesktop: 'tuiIconMonitor',
75
+ tuiIconDesktopOff: 'tuiIconMonitorOff',
76
+ tuiIconDislike: 'tuiIconThumbsDown',
77
+ tuiIconDone: 'tuiIconCheckCircle',
78
+ tuiIconDraft: 'tuiIconEdit2',
79
+ tuiIconEyeOpen: 'tuiIconEye',
80
+ tuiIconEyeClosed: 'tuiIconEyeOff',
81
+ tuiIconExpand: 'tuiIconMaximize',
82
+ tuiIconExternal: 'tuiIconExternalLink',
83
+ tuiIconFrame: 'tuiIconLayout',
84
+ tuiIconGeo: 'tuiIconMapPin',
85
+ tuiIconHeartFilled: 'tuiIconHeart',
86
+ tuiIconHide: 'tuiIconEyeOff',
87
+ tuiIconImg: 'tuiIconImage',
88
+ tuiIconInfoCircle: 'tuiIconInfo',
89
+ tuiIconLike: 'tuiIconThumbsUp',
90
+ tuiIconLockOpen: 'tuiIconUnlock',
91
+ tuiIconMobile: 'tuiIconSmartphone',
92
+ tuiIconMoreHor: 'tuiIconMoreHorizontal',
93
+ tuiIconMoreVer: 'tuiIconMoreVertical',
94
+ tuiIconMoreVert: 'tuiIconMoreVertical',
95
+ tuiIconPicture: 'tuiIconImage',
96
+ tuiIconPin: 'tuiIconMapPin',
97
+ tuiIconPrint: 'tuiIconPrinter',
98
+ tuiIconRefresh: 'tuiIconRefreshCw',
99
+ tuiIconRemove: 'tuiIconX',
100
+ tuiIconShow: 'tuiIconEye',
101
+ tuiIconSound: 'tuiIconVolume',
102
+ tuiIconSoundOff: 'tuiIconVolumeX',
103
+ tuiIconStarFilled: 'tuiIconStar',
104
+ tuiIconStop: 'tuiIconSquare',
105
+ tuiIconStructure: 'tuiIconLayoutGrid',
106
+ tuiIconTime: 'tuiIconClock',
107
+ tuiIconTooltip: 'tuiIconHelpCircle',
108
+ tuiIconViewList: 'tuiIconList',
109
+ tuiIconWifiOn: 'tuiIconWifi',
110
+ };
111
+
112
+ /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
113
+ /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
114
+ /**
115
+ * Service for reusing SVGs without inlining each instance
116
+ * @deprecated
117
+ */
118
+ class TuiSvgService {
119
+ constructor() {
120
+ this.tuiSanitizer = inject(TUI_SANITIZER, { optional: true });
121
+ this.sanitizer = inject(DomSanitizer);
122
+ this.originals = {};
123
+ this.items$ = new BehaviorSubject(new Map());
124
+ this.define(inject(TUI_ICONS));
125
+ }
126
+ define(icons) {
127
+ const { value } = this.items$;
128
+ Object.keys(icons).forEach(key => {
129
+ this.defineIcon(key, icons[key], value);
130
+ });
131
+ this.items$.next(value);
132
+ }
133
+ getOriginal(name) {
134
+ return this.originals[name] || null;
135
+ }
136
+ defineIcon(name, src, map) {
137
+ if (map.has(name)) {
138
+ return;
139
+ }
140
+ const parsed = this.parseSrc(name, src);
141
+ if (!parsed) {
142
+ ngDevMode && console.assert(false, 'Unable to parse given SVG src');
143
+ return;
144
+ }
145
+ map.set(name, parsed);
146
+ this.originals = {
147
+ ...this.originals,
148
+ [name]: src,
149
+ };
150
+ }
151
+ parseSrc(name, src) {
152
+ return this.sanitize(tuiProcessIcon(src, name));
153
+ }
154
+ sanitize(src) {
155
+ return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer
156
+ ? this.tuiSanitizer.sanitize(SecurityContext.HTML, src)
157
+ : this.sanitizer.sanitize(SecurityContext.HTML, src)) || '');
158
+ }
159
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSvgService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
160
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSvgService, providedIn: 'root' }); }
161
+ }
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSvgService, decorators: [{
163
+ type: Injectable,
164
+ args: [{
165
+ providedIn: 'root',
166
+ }]
167
+ }], ctorParameters: function () { return []; } });
168
+
169
+ const TUI_DEFAULT_ICONS_PLACE = 'assets/taiga-ui/icons';
170
+ const TUI_SVG_DEFAULT_OPTIONS = {
171
+ iconsPlace: TUI_DEFAULT_ICONS_PLACE,
172
+ path: tuiIconsPathFactory(TUI_DEFAULT_ICONS_PLACE),
173
+ srcProcessor: identity,
174
+ contentProcessor: tuiSvgLinearGradientProcessor,
175
+ deprecated: src => {
176
+ const oldIcon = src.replace('Large', '').replace('Outline', '');
177
+ const newIcon = TUI_DEPRECATED_ICONS[oldIcon];
178
+ return newIcon
179
+ ? `${oldIcon}/(Large|Outline) is deprecated, use ${newIcon}/(Large|Outline) instead`
180
+ : '';
181
+ },
182
+ };
183
+ /**
184
+ * SVG component options
185
+ */
186
+ const TUI_SVG_OPTIONS = tuiCreateTokenFromFactory(() => ({
187
+ iconsPlace: TUI_DEFAULT_ICONS_PLACE,
188
+ path: tuiIconsPathFactory(TUI_DEFAULT_ICONS_PLACE),
189
+ deprecated: TUI_SVG_DEFAULT_OPTIONS.deprecated,
190
+ srcProcessor: identity,
191
+ contentProcessor: tuiSvgLinearGradientProcessor,
192
+ }));
193
+ const TUI_SVG_SRC_INTERCEPTORS = new InjectionToken('[TUI_SVG_SRC_INTERCEPTORS]');
194
+ function tuiSvgSrcInterceptors(interceptor) {
195
+ return {
196
+ provide: TUI_SVG_SRC_INTERCEPTORS,
197
+ useValue: interceptor,
198
+ multi: true,
199
+ };
200
+ }
201
+ const tuiSvgOptionsProvider = options => ({
202
+ provide: TUI_SVG_OPTIONS,
203
+ deps: [[new SkipSelf(), new Optional(), TUI_SVG_OPTIONS]],
204
+ useFactory: (fallback) => ({
205
+ iconsPlace: options.iconsPlace ??
206
+ fallback?.iconsPlace ??
207
+ TUI_SVG_DEFAULT_OPTIONS.iconsPlace,
208
+ path: tuiIsString(options.path)
209
+ ? tuiIconsPathFactory(options.path)
210
+ : options.path ?? fallback?.path ?? TUI_SVG_DEFAULT_OPTIONS.path,
211
+ deprecated: options.deprecated ??
212
+ fallback?.deprecated ??
213
+ TUI_SVG_DEFAULT_OPTIONS.deprecated,
214
+ srcProcessor: options.srcProcessor ??
215
+ fallback?.srcProcessor ??
216
+ TUI_SVG_DEFAULT_OPTIONS.srcProcessor,
217
+ contentProcessor: options.contentProcessor ??
218
+ fallback?.contentProcessor ??
219
+ TUI_SVG_DEFAULT_OPTIONS.contentProcessor,
220
+ }),
221
+ });
222
+
223
+ const UNDEFINED_NAMED_ICON = 'Attempted to use undefined named icon';
224
+ const MISSING_EXTERNAL_ICON = 'External icon is missing on the given URL';
225
+ const FAILED_EXTERNAL_ICON = 'Failed to load external SVG';
226
+ // TODO: Move to legacy along with all related infrastructure SvgService and SvgDefsHostComponent
227
+ class TuiSvgComponent {
228
+ constructor() {
229
+ this.icon = '';
230
+ this.doc = inject(DOCUMENT);
231
+ this.win = inject(WINDOW);
232
+ this.options = inject(TUI_SVG_OPTIONS);
233
+ this.tuiSanitizer = inject(TUI_SANITIZER, { optional: true });
234
+ this.svgService = inject(TuiSvgService);
235
+ this.staticRequestService = inject(TuiStaticRequestService);
236
+ this.sanitizer = inject(DomSanitizer);
237
+ this.el = tuiInjectElement();
238
+ this.baseHref = inject(TUI_BASE_HREF);
239
+ this.src$ = new ReplaySubject(1);
240
+ this.srcInterceptors = inject(TUI_SVG_SRC_INTERCEPTORS, {
241
+ optional: true,
242
+ });
243
+ this.innerHTML$ = this.src$.pipe(switchMap(() => {
244
+ if (tuiIsString(this.icon)) {
245
+ return this.isExternal
246
+ ? this.getExternalIcon(this.icon)
247
+ : of(this.getSafeHtml(this.icon));
248
+ }
249
+ return of(this.icon);
250
+ }), startWith(''));
251
+ }
252
+ set src(src) {
253
+ const deprecated = this.options.deprecated(String(src));
254
+ ngDevMode && console.assert(!deprecated, deprecated);
255
+ this.icon = (this.srcInterceptors ?? []).reduce((newSrc, interceptor) => interceptor(newSrc, this.options), this.options.srcProcessor(src || ''));
256
+ this.src$.next();
257
+ }
258
+ get src() {
259
+ return this.icon;
260
+ }
261
+ get use() {
262
+ if (tuiIsString(this.icon)) {
263
+ return this.icon.includes('.svg#')
264
+ ? this.icon
265
+ : this.resolveName(this.icon, this.options.path);
266
+ }
267
+ return '';
268
+ }
269
+ get isInnerHTML() {
270
+ return (!tuiIsString(this.icon) ||
271
+ this.isSrc ||
272
+ this.isExternal ||
273
+ (this.isName && this.isShadowDOM));
274
+ }
275
+ onError(message = MISSING_EXTERNAL_ICON) {
276
+ const { icon } = this;
277
+ const event = new CustomEvent('tui-icon-error', {
278
+ bubbles: true,
279
+ detail: {
280
+ message,
281
+ icon: icon,
282
+ },
283
+ });
284
+ ngDevMode && console.assert(false, message, icon);
285
+ this.el.dispatchEvent(event);
286
+ }
287
+ get isShadowDOM() {
288
+ return tuiGetDocumentOrShadowRoot(this.el) !== this.doc;
289
+ }
290
+ get isUse() {
291
+ return this.use.replace(TUI_CACHE_BUSTING_PAYLOAD, '').includes('.svg#');
292
+ }
293
+ get isExternal() {
294
+ return (this.isUrl ||
295
+ this.isCrossDomain ||
296
+ (!this.isSrc && !this.svgService.getOriginal(String(this.icon))));
297
+ }
298
+ get isUrl() {
299
+ return (tuiIsString(this.icon) &&
300
+ this.icon.replace(TUI_CACHE_BUSTING_PAYLOAD, '').endsWith('.svg'));
301
+ }
302
+ get isSrc() {
303
+ return tuiIsString(this.icon) && tuiIsPresumedHTMLString(this.icon);
304
+ }
305
+ get isName() {
306
+ return !this.isUrl && !this.isUse && !this.isSrc;
307
+ }
308
+ get isCrossDomain() {
309
+ const { use, isUse, win } = this;
310
+ return (isUse && use.startsWith('http') && !!win.origin && !use.startsWith(win.origin));
311
+ }
312
+ resolveName(name, iconsPath) {
313
+ return iconsPath(name, this.baseHref);
314
+ }
315
+ getSafeHtml(src) {
316
+ return this.isSrc ? this.sanitize(src) : this.process(src);
317
+ }
318
+ process(src) {
319
+ const icon = this.svgService.getOriginal(src);
320
+ if (this.isName && !icon && !!src) {
321
+ this.onError(UNDEFINED_NAMED_ICON);
322
+ }
323
+ return this.sanitize(icon || '');
324
+ }
325
+ sanitize(src) {
326
+ src = this.options.contentProcessor(src);
327
+ return this.tuiSanitizer && tuiIsString(src)
328
+ ? this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(SecurityContext.HTML, src) || '')
329
+ : src;
330
+ }
331
+ getExternalIcon(src) {
332
+ const url = src.includes('.svg') ? src : this.use;
333
+ return this.staticRequestService.request(url).pipe(catchError(() => {
334
+ this.onError(FAILED_EXTERNAL_ICON);
335
+ return of('');
336
+ }), map(response => this.sanitize(response.replace('<svg', '<svg focusable="false"'))));
337
+ }
338
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
339
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiSvgComponent, isStandalone: true, selector: "tui-svg", inputs: { src: "src" }, ngImport: i0, template: "<div\n class=\"t-src\"\n [innerHTML]=\"innerHTML$ | async\"\n></div>\n", styles: [":host{display:inline-flex;vertical-align:middle;flex-shrink:0;align-items:center;justify-content:center;line-height:0;height:1.5rem;width:1.5rem;fill:transparent;stroke:transparent;font-size:1rem}.t-src{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.t-svg{overflow:visible}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
340
+ }
341
+ __decorate([
342
+ tuiPure
343
+ ], TuiSvgComponent.prototype, "resolveName", null);
344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSvgComponent, decorators: [{
345
+ type: Component,
346
+ args: [{ standalone: true, selector: 'tui-svg', imports: [TuiLet, AsyncPipe, NgIf], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"t-src\"\n [innerHTML]=\"innerHTML$ | async\"\n></div>\n", styles: [":host{display:inline-flex;vertical-align:middle;flex-shrink:0;align-items:center;justify-content:center;line-height:0;height:1.5rem;width:1.5rem;fill:transparent;stroke:transparent;font-size:1rem}.t-src{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.t-svg{overflow:visible}\n"] }]
347
+ }], ctorParameters: function () { return []; }, propDecorators: { src: [{
348
+ type: Input
349
+ }], resolveName: [] } });
350
+
351
+ /**
352
+ * Generated bundle index. Do not edit.
353
+ */
354
+
355
+ export { TUI_DEFAULT_ICONS_PLACE, TUI_DEPRECATED_ICONS, TUI_SVG_DEFAULT_OPTIONS, TUI_SVG_OPTIONS, TUI_SVG_SRC_INTERCEPTORS, TuiSvgComponent, TuiSvgService, tuiSvgLinearGradientProcessor, tuiSvgOptionsProvider, tuiSvgSrcInterceptors };
356
+ //# sourceMappingURL=taiga-ui-legacy-components-svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-legacy-components-svg.mjs","sources":["../../../projects/legacy/components/svg/content-processor.ts","../../../projects/legacy/components/svg/deprecated-icons.ts","../../../projects/legacy/components/svg/svg.service.ts","../../../projects/legacy/components/svg/svg-options.ts","../../../projects/legacy/components/svg/svg.component.ts","../../../projects/legacy/components/svg/svg.template.html","../../../projects/legacy/components/svg/taiga-ui-legacy-components-svg.ts"],"sourcesContent":["import type {TuiSafeHtml} from '@taiga-ui/cdk/types';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\n\nfunction makeRandomSalt(): number {\n return Math.floor(Math.random() * Date.now());\n}\n\nfunction extractLinearGradientIdsFromSvg(svg: string): string[] {\n const ids = (svg.match(/url\\((\"?)('*)#(.*?)('*)\\)/g) ?? []).map(url =>\n url.slice(4, url.length - 1).replaceAll(/['\"#]+/g, ''),\n );\n\n return Array.from(new Set(ids));\n}\n\n/**\n * @description:\n * Any ‘linearGradient’ attributes which are defined on the referenced\n * element which are not defined on this element are inherited by this element.\n * If this element has no defined gradient stops, and the referenced element does\n * (possibly due to its own ‘xlink:href’ attribute), then this element inherits\n * the gradient stop from the referenced element. Inheritance can be indirect\n * to an arbitrary level; thus, if the referenced element inherits attribute\n * or gradient stops due to its own ‘xlink:href’ attribute, then the current\n * element can inherit those attributes or gradient stops.\n *\n * Documentation: https://www.w3.org/TR/SVG11/pservers.html\n *\n */\nexport function tuiSvgLinearGradientProcessor(\n svg: TuiSafeHtml,\n salt: number | string = makeRandomSalt(),\n): TuiSafeHtml {\n if (tuiIsString(svg)) {\n const uniqueIds = extractLinearGradientIdsFromSvg(svg);\n\n return uniqueIds.reduce((newSvg, previousId) => {\n const newId = `id_${salt}_${previousId}`;\n\n return newSvg\n .replaceAll(`\"${previousId}\"`, `\"${newId}\"`)\n .replaceAll(`'${previousId}'`, `'${newId}'`)\n .replaceAll(`url('#${previousId}')`, `url('#${newId}')`)\n .replaceAll(`url(\"#${previousId}\")`, `url(\"#${newId}\")`)\n .replaceAll(`url(#${previousId})`, `url(#${newId})`);\n }, svg);\n }\n\n return svg;\n}\n","export const TUI_DEPRECATED_ICONS: Record<string, string> = {\n tuiIconAttach: 'tuiIconPaperclip',\n tuiIconAttention: 'tuiIconAlertCircle',\n tuiIconBackCircle: 'tuiIconArrowLeftCircle',\n tuiIconCall: 'tuiIconPhone',\n tuiIconCallIn: 'tuiIconPhoneIncoming',\n tuiIconCallOut: 'tuiIconPhoneOutgoing',\n tuiIconCallTransfer: 'tuiIconPhoneForwarded',\n tuiIconCancel: 'tuiIconXCircle',\n tuiIconCancelCircle: 'tuiIconSlash',\n tuiIconCard: 'tuiIconCreditCard',\n tuiIconCards: 'tuiIconCreditCard',\n tuiIconChartBar: 'tuiIconBarChart',\n tuiIconChart: 'tuiIconBarChart',\n tuiIconCheckList: 'tuiIconClipboard',\n tuiIconCloseCircle: 'tuiIconXCircle',\n tuiIconCollapse: 'tuiIconMinimize',\n tuiIconComment: 'tuiIconMessageSquare',\n tuiIconCommentFw: 'tuiIconMessageForward',\n tuiIconCompany: 'tuiIconBriefcase',\n tuiIconDefaultDoc: 'tuiIconFile',\n tuiIconDesktop: 'tuiIconMonitor',\n tuiIconDesktopOff: 'tuiIconMonitorOff',\n tuiIconDislike: 'tuiIconThumbsDown',\n tuiIconDone: 'tuiIconCheckCircle',\n tuiIconDraft: 'tuiIconEdit2',\n tuiIconEyeOpen: 'tuiIconEye',\n tuiIconEyeClosed: 'tuiIconEyeOff',\n tuiIconExpand: 'tuiIconMaximize',\n tuiIconExternal: 'tuiIconExternalLink',\n tuiIconFrame: 'tuiIconLayout',\n tuiIconGeo: 'tuiIconMapPin',\n tuiIconHeartFilled: 'tuiIconHeart',\n tuiIconHide: 'tuiIconEyeOff',\n tuiIconImg: 'tuiIconImage',\n tuiIconInfoCircle: 'tuiIconInfo',\n tuiIconLike: 'tuiIconThumbsUp',\n tuiIconLockOpen: 'tuiIconUnlock',\n tuiIconMobile: 'tuiIconSmartphone',\n tuiIconMoreHor: 'tuiIconMoreHorizontal',\n tuiIconMoreVer: 'tuiIconMoreVertical',\n tuiIconMoreVert: 'tuiIconMoreVertical',\n tuiIconPicture: 'tuiIconImage',\n tuiIconPin: 'tuiIconMapPin',\n tuiIconPrint: 'tuiIconPrinter',\n tuiIconRefresh: 'tuiIconRefreshCw',\n tuiIconRemove: 'tuiIconX',\n tuiIconShow: 'tuiIconEye',\n tuiIconSound: 'tuiIconVolume',\n tuiIconSoundOff: 'tuiIconVolumeX',\n tuiIconStarFilled: 'tuiIconStar',\n tuiIconStop: 'tuiIconSquare',\n tuiIconStructure: 'tuiIconLayoutGrid',\n tuiIconTime: 'tuiIconClock',\n tuiIconTooltip: 'tuiIconHelpCircle',\n tuiIconViewList: 'tuiIconList',\n tuiIconWifiOn: 'tuiIconWifi',\n};\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {inject, Injectable, SecurityContext} from '@angular/core';\nimport type {SafeHtml} from '@angular/platform-browser';\nimport {DomSanitizer} from '@angular/platform-browser';\nimport {TUI_ICONS, TUI_SANITIZER} from '@taiga-ui/legacy/tokens';\nimport {tuiProcessIcon} from '@taiga-ui/legacy/utils';\nimport {BehaviorSubject} from 'rxjs';\n\n/**\n * Service for reusing SVGs without inlining each instance\n * @deprecated\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiSvgService {\n private readonly tuiSanitizer = inject(TUI_SANITIZER, {optional: true});\n private readonly sanitizer = inject(DomSanitizer);\n private originals: Record<string, string> = {};\n\n public readonly items$ = new BehaviorSubject<Map<string, SafeHtml>>(new Map());\n\n constructor() {\n this.define(inject(TUI_ICONS));\n }\n\n public define(icons: Record<string, string>): void {\n const {value} = this.items$;\n\n Object.keys(icons).forEach(key => {\n this.defineIcon(key, icons[key], value);\n });\n\n this.items$.next(value);\n }\n\n public getOriginal(name: string): string | null {\n return this.originals[name] || null;\n }\n\n private defineIcon(name: string, src: string, map: Map<string, SafeHtml>): void {\n if (map.has(name)) {\n return;\n }\n\n const parsed = this.parseSrc(name, src);\n\n if (!parsed) {\n ngDevMode && console.assert(false, 'Unable to parse given SVG src');\n\n return;\n }\n\n map.set(name, parsed);\n this.originals = {\n ...this.originals,\n [name]: src,\n };\n }\n\n private parseSrc(name: string, src: string): SafeHtml {\n return this.sanitize(tuiProcessIcon(src, name));\n }\n\n private sanitize(src: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(\n (this.tuiSanitizer\n ? this.tuiSanitizer.sanitize(SecurityContext.HTML, src)\n : this.sanitizer.sanitize(SecurityContext.HTML, src)) || '',\n );\n }\n}\n","import type {FactoryProvider, Provider} from '@angular/core';\nimport {InjectionToken, Optional, SkipSelf} from '@angular/core';\nimport type {TuiHandler, TuiSafeHtml, TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateTokenFromFactory, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiIconsPathFactory} from '@taiga-ui/legacy/utils';\nimport {identity} from 'rxjs';\n\nimport {tuiSvgLinearGradientProcessor} from './content-processor';\nimport {TUI_DEPRECATED_ICONS} from './deprecated-icons';\n\nexport const TUI_DEFAULT_ICONS_PLACE = 'assets/taiga-ui/icons';\n\nexport interface TuiSvgOptions {\n readonly contentProcessor: TuiHandler<TuiSafeHtml, TuiSafeHtml>;\n readonly deprecated: TuiStringHandler<string>;\n readonly iconsPlace: string;\n readonly path: (name: string, baseHref?: string) => string;\n readonly srcProcessor: TuiHandler<TuiSafeHtml, TuiSafeHtml>;\n}\n\nexport type TuiSvgInterceptorHandler =\n | ((src: TuiSafeHtml, options: TuiSvgOptions) => TuiSafeHtml)\n | ((src: TuiSafeHtml) => TuiSafeHtml);\n\nexport const TUI_SVG_DEFAULT_OPTIONS: TuiSvgOptions = {\n iconsPlace: TUI_DEFAULT_ICONS_PLACE,\n path: tuiIconsPathFactory(TUI_DEFAULT_ICONS_PLACE),\n srcProcessor: identity,\n contentProcessor: tuiSvgLinearGradientProcessor,\n deprecated: src => {\n const oldIcon = src.replace('Large', '').replace('Outline', '');\n const newIcon = TUI_DEPRECATED_ICONS[oldIcon];\n\n return newIcon\n ? `${oldIcon}/(Large|Outline) is deprecated, use ${newIcon}/(Large|Outline) instead`\n : '';\n },\n};\n\n/**\n * SVG component options\n */\nexport const TUI_SVG_OPTIONS = tuiCreateTokenFromFactory<TuiSvgOptions>(() => ({\n iconsPlace: TUI_DEFAULT_ICONS_PLACE,\n path: tuiIconsPathFactory(TUI_DEFAULT_ICONS_PLACE),\n deprecated: TUI_SVG_DEFAULT_OPTIONS.deprecated,\n srcProcessor: identity,\n contentProcessor: tuiSvgLinearGradientProcessor,\n}));\n\nexport const TUI_SVG_SRC_INTERCEPTORS = new InjectionToken<TuiSvgInterceptorHandler>(\n '[TUI_SVG_SRC_INTERCEPTORS]',\n);\n\nexport function tuiSvgSrcInterceptors(interceptor: TuiSvgInterceptorHandler): Provider {\n return {\n provide: TUI_SVG_SRC_INTERCEPTORS,\n useValue: interceptor,\n multi: true,\n };\n}\n\nexport const tuiSvgOptionsProvider: (\n options: Partial<Omit<TuiSvgOptions, 'path'>> & {\n path?: TuiSvgOptions['path'] | string;\n },\n) => FactoryProvider = options => ({\n provide: TUI_SVG_OPTIONS,\n deps: [[new SkipSelf(), new Optional(), TUI_SVG_OPTIONS]],\n useFactory: (fallback: TuiSvgOptions | null): TuiSvgOptions => ({\n iconsPlace:\n options.iconsPlace ??\n fallback?.iconsPlace ??\n TUI_SVG_DEFAULT_OPTIONS.iconsPlace,\n path: tuiIsString(options.path)\n ? tuiIconsPathFactory(options.path)\n : options.path ?? fallback?.path ?? TUI_SVG_DEFAULT_OPTIONS.path,\n deprecated:\n options.deprecated ??\n fallback?.deprecated ??\n TUI_SVG_DEFAULT_OPTIONS.deprecated,\n srcProcessor:\n options.srcProcessor ??\n fallback?.srcProcessor ??\n TUI_SVG_DEFAULT_OPTIONS.srcProcessor,\n contentProcessor:\n options.contentProcessor ??\n fallback?.contentProcessor ??\n TUI_SVG_DEFAULT_OPTIONS.contentProcessor,\n }),\n});\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {AsyncPipe, DOCUMENT, NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n SecurityContext,\n} from '@angular/core';\nimport type {SafeHtml} from '@angular/platform-browser';\nimport {DomSanitizer} from '@angular/platform-browser';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {TuiLet} from '@taiga-ui/cdk/directives/let';\nimport {TuiStaticRequestService} from '@taiga-ui/cdk/services';\nimport {TUI_BASE_HREF} from '@taiga-ui/cdk/tokens';\nimport type {TuiSafeHtml} from '@taiga-ui/cdk/types';\nimport {tuiGetDocumentOrShadowRoot, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsString, tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_SANITIZER} from '@taiga-ui/legacy/tokens';\nimport {TUI_CACHE_BUSTING_PAYLOAD, tuiIsPresumedHTMLString} from '@taiga-ui/legacy/utils';\nimport type {Observable} from 'rxjs';\nimport {catchError, map, of, ReplaySubject, startWith, switchMap} from 'rxjs';\n\nimport {TuiSvgService} from './svg.service';\nimport type {TuiSvgInterceptorHandler, TuiSvgOptions} from './svg-options';\nimport {TUI_SVG_OPTIONS, TUI_SVG_SRC_INTERCEPTORS} from './svg-options';\n\nconst UNDEFINED_NAMED_ICON = 'Attempted to use undefined named icon';\nconst MISSING_EXTERNAL_ICON = 'External icon is missing on the given URL';\nconst FAILED_EXTERNAL_ICON = 'Failed to load external SVG';\n\nexport interface TuiIconError {\n readonly icon: string;\n readonly message: string;\n}\n\n// TODO: Move to legacy along with all related infrastructure SvgService and SvgDefsHostComponent\n@Component({\n standalone: true,\n selector: 'tui-svg',\n imports: [TuiLet, AsyncPipe, NgIf],\n templateUrl: './svg.template.html',\n styleUrls: ['./svg.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSvgComponent {\n private icon: TuiSafeHtml = '';\n private readonly doc = inject(DOCUMENT);\n private readonly win = inject(WINDOW);\n private readonly options = inject(TUI_SVG_OPTIONS);\n private readonly tuiSanitizer = inject(TUI_SANITIZER, {optional: true});\n private readonly svgService = inject(TuiSvgService);\n private readonly staticRequestService = inject(TuiStaticRequestService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly el = tuiInjectElement();\n private readonly baseHref = inject(TUI_BASE_HREF);\n private readonly src$ = new ReplaySubject<void>(1);\n private readonly srcInterceptors = inject(TUI_SVG_SRC_INTERCEPTORS, {\n optional: true,\n }) as readonly TuiSvgInterceptorHandler[] | null;\n\n protected readonly innerHTML$: Observable<SafeHtml>;\n\n constructor() {\n this.innerHTML$ = this.src$.pipe(\n switchMap(() => {\n if (tuiIsString(this.icon)) {\n return this.isExternal\n ? this.getExternalIcon(this.icon)\n : of(this.getSafeHtml(this.icon));\n }\n\n return of(this.icon);\n }),\n startWith(''),\n );\n }\n\n @Input()\n public set src(src: TuiSafeHtml | null | undefined) {\n const deprecated = this.options.deprecated(String(src));\n\n ngDevMode && console.assert(!deprecated, deprecated);\n\n this.icon = (this.srcInterceptors ?? []).reduce(\n (newSrc, interceptor: TuiSvgInterceptorHandler) =>\n interceptor(newSrc, this.options),\n this.options.srcProcessor(src || ''),\n );\n\n this.src$.next();\n }\n\n public get src(): TuiSafeHtml {\n return this.icon;\n }\n\n public get use(): string {\n if (tuiIsString(this.icon)) {\n return this.icon.includes('.svg#')\n ? this.icon\n : this.resolveName(this.icon, this.options.path);\n }\n\n return '';\n }\n\n public get isInnerHTML(): boolean {\n return (\n !tuiIsString(this.icon) ||\n this.isSrc ||\n this.isExternal ||\n (this.isName && this.isShadowDOM)\n );\n }\n\n protected onError(message: string = MISSING_EXTERNAL_ICON): void {\n const {icon} = this;\n const event = new CustomEvent<TuiIconError>('tui-icon-error', {\n bubbles: true,\n detail: {\n message,\n icon: icon as string,\n },\n });\n\n ngDevMode && console.assert(false, message, icon);\n this.el.dispatchEvent(event);\n }\n\n private get isShadowDOM(): boolean {\n return tuiGetDocumentOrShadowRoot(this.el) !== this.doc;\n }\n\n private get isUse(): boolean {\n return this.use.replace(TUI_CACHE_BUSTING_PAYLOAD, '').includes('.svg#');\n }\n\n private get isExternal(): boolean {\n return (\n this.isUrl ||\n this.isCrossDomain ||\n (!this.isSrc && !this.svgService.getOriginal(String(this.icon)))\n );\n }\n\n private get isUrl(): boolean {\n return (\n tuiIsString(this.icon) &&\n this.icon.replace(TUI_CACHE_BUSTING_PAYLOAD, '').endsWith('.svg')\n );\n }\n\n private get isSrc(): boolean {\n return tuiIsString(this.icon) && tuiIsPresumedHTMLString(this.icon);\n }\n\n private get isName(): boolean {\n return !this.isUrl && !this.isUse && !this.isSrc;\n }\n\n private get isCrossDomain(): boolean {\n const {use, isUse, win} = this;\n\n return (\n isUse && use.startsWith('http') && !!win.origin && !use.startsWith(win.origin)\n );\n }\n\n @tuiPure\n private resolveName(name: string, iconsPath: TuiSvgOptions['path']): string {\n return iconsPath(name, this.baseHref);\n }\n\n private getSafeHtml(src: string): SafeHtml {\n return this.isSrc ? this.sanitize(src) : this.process(src);\n }\n\n private process(src: string): SafeHtml {\n const icon = this.svgService.getOriginal(src);\n\n if (this.isName && !icon && !!src) {\n this.onError(UNDEFINED_NAMED_ICON);\n }\n\n return this.sanitize(icon || '');\n }\n\n private sanitize(src: TuiSafeHtml): TuiSafeHtml {\n src = this.options.contentProcessor(src);\n\n return this.tuiSanitizer && tuiIsString(src)\n ? this.sanitizer.bypassSecurityTrustHtml(\n this.tuiSanitizer.sanitize(SecurityContext.HTML, src) || '',\n )\n : src;\n }\n\n private getExternalIcon(src: string): Observable<SafeHtml> {\n const url = src.includes('.svg') ? src : this.use;\n\n return this.staticRequestService.request(url).pipe(\n catchError(() => {\n this.onError(FAILED_EXTERNAL_ICON);\n\n return of('');\n }),\n map(response =>\n this.sanitize(response.replace('<svg', '<svg focusable=\"false\"')),\n ),\n );\n }\n}\n","<div\n class=\"t-src\"\n [innerHTML]=\"innerHTML$ | async\"\n></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,SAAS,cAAc,GAAA;AACnB,IAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,+BAA+B,CAAC,GAAW,EAAA;AAChD,IAAA,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,CAAC,IAAI,EAAE,EAAE,GAAG,CAAC,GAAG,IAC/D,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE,CAAC,CACzD,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;;;;;;;AAaG;SACa,6BAA6B,CACzC,GAAgB,EAChB,IAAA,GAAwB,cAAc,EAAE,EAAA;AAExC,IAAA,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;AAClB,QAAA,MAAM,SAAS,GAAG,+BAA+B,CAAC,GAAG,CAAC,CAAC;QAEvD,O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