@taiga-ui/addon-mobile 3.57.0 → 3.59.0-canary.10da730

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 (421) hide show
  1. package/components/app-bar/app-bar-back.component.d.ts +1 -1
  2. package/components/app-bar/app-bar.component.d.ts +1 -1
  3. package/components/app-bar/app-bar.directive.d.ts +1 -1
  4. package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
  5. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +1 -1
  6. package/components/mobile-dialog/mobile-dialog.component.d.ts +1 -1
  7. package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -1
  8. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +1 -1
  9. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +1 -1
  10. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +1 -1
  11. package/components/sheet/components/sheet/sheet.component.d.ts +1 -1
  12. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +1 -1
  13. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +1 -1
  14. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +1 -1
  15. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +1 -1
  16. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +1 -1
  17. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +1 -1
  18. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
  19. package/components/sheet/sheet.directive.d.ts +1 -1
  20. package/components/sheet-dialog/sheet-dialog.component.d.ts +1 -1
  21. package/components/sheet-dialog/sheet-dialog.directive.d.ts +1 -1
  22. package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
  23. package/components/tab-bar/tab-bar-item.component.d.ts +1 -1
  24. package/components/tab-bar/tab-bar-item.directive.d.ts +1 -1
  25. package/components/tab-bar/tab-bar.component.d.ts +1 -1
  26. package/components/theme-android/theme-android.component.d.ts +1 -1
  27. package/components/theme-ios/theme-ios.component.d.ts +1 -1
  28. package/const/mobile-alert-options.d.ts +3 -3
  29. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -1
  30. package/directives/mobile-tabs/mobile-tabs.component.d.ts +1 -1
  31. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +1 -1
  32. package/directives/ripple/ripple-styles.component.d.ts +1 -1
  33. package/directives/ripple/ripple.directive.d.ts +1 -1
  34. package/directives/sidebar/sidebar.component.d.ts +1 -1
  35. package/directives/sidebar/sidebar.directive.d.ts +1 -1
  36. package/directives/touchable/touchable.directive.d.ts +1 -1
  37. package/esm2020/components/app-bar/app-bar-back.component.mjs +11 -0
  38. package/esm2020/components/app-bar/app-bar.component.mjs +33 -0
  39. package/{esm2015/components/app-bar/app-bar.directive.js → esm2020/components/app-bar/app-bar.directive.mjs} +3 -3
  40. package/{esm2015/components/app-bar/app-bar.module.js → esm2020/components/app-bar/app-bar.module.mjs} +5 -5
  41. package/esm2020/components/mobile-calendar/mobile-calendar.component.mjs +301 -0
  42. package/{esm2015/components/mobile-calendar/mobile-calendar.module.js → esm2020/components/mobile-calendar/mobile-calendar.module.mjs} +14 -16
  43. package/esm2020/components/mobile-calendar/mobile-calendar.providers.mjs +29 -0
  44. package/esm2020/components/mobile-calendar/mobile-calendar.strategy.mjs +125 -0
  45. package/esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.component.mjs +35 -0
  46. package/{esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js → esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.module.mjs} +6 -6
  47. package/esm2020/components/mobile-dialog/mobile-dialog.component.mjs +32 -0
  48. package/{esm2015/components/mobile-dialog/mobile-dialog.module.js → esm2020/components/mobile-dialog/mobile-dialog.module.mjs} +5 -5
  49. package/esm2020/components/mobile-dialog/mobile-dialog.service.mjs +29 -0
  50. package/esm2020/components/pull-to-refresh/loader-android/loader-android.component.mjs +55 -0
  51. package/esm2020/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +44 -0
  52. package/esm2020/components/pull-to-refresh/pull-to-refresh.component.mjs +69 -0
  53. package/{esm2015/components/pull-to-refresh/pull-to-refresh.module.js → esm2020/components/pull-to-refresh/pull-to-refresh.module.mjs} +5 -5
  54. package/esm2020/components/pull-to-refresh/pull-to-refresh.service.mjs +53 -0
  55. package/esm2020/components/sheet/components/sheet/sheet.component.mjs +121 -0
  56. package/esm2020/components/sheet/components/sheet/sheet.providers.mjs +30 -0
  57. package/{esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js → esm2020/components/sheet/components/sheet-bar/sheet-bar.component.mjs} +7 -12
  58. package/{esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js → esm2020/components/sheet/components/sheet-heading/sheet-heading.component.mjs} +5 -10
  59. package/esm2020/components/sheet/components/sheets-host/sheets-host.component.mjs +61 -0
  60. package/esm2020/components/sheet/directives/sheet-close/sheet-close.directive.mjs +55 -0
  61. package/esm2020/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +47 -0
  62. package/esm2020/components/sheet/directives/sheet-top/sheet-top.directive.mjs +54 -0
  63. package/esm2020/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +78 -0
  64. package/esm2020/components/sheet/ios.hacks.mjs +28 -0
  65. package/esm2020/components/sheet/sheet-options.mjs +21 -0
  66. package/esm2020/components/sheet/sheet.directive.mjs +48 -0
  67. package/{esm2015/components/sheet/sheet.module.js → esm2020/components/sheet/sheet.module.mjs} +10 -12
  68. package/esm2020/components/sheet/sheet.service.mjs +56 -0
  69. package/esm2020/components/sheet-dialog/sheet-dialog.component.mjs +132 -0
  70. package/{esm2015/components/sheet-dialog/sheet-dialog.directive.js → esm2020/components/sheet-dialog/sheet-dialog.directive.mjs} +3 -3
  71. package/{esm2015/components/sheet-dialog/sheet-dialog.module.js → esm2020/components/sheet-dialog/sheet-dialog.module.mjs} +5 -5
  72. package/{esm2015/components/sheet-dialog/sheet-dialog.service.js → esm2020/components/sheet-dialog/sheet-dialog.service.mjs} +8 -5
  73. package/esm2020/components/tab-bar/tab-bar-item.component.mjs +29 -0
  74. package/esm2020/components/tab-bar/tab-bar-item.directive.mjs +44 -0
  75. package/esm2020/components/tab-bar/tab-bar.component.mjs +47 -0
  76. package/{esm2015/components/tab-bar/tab-bar.module.js → esm2020/components/tab-bar/tab-bar.module.mjs} +5 -5
  77. package/{esm2015/components/theme-android/theme-android.component.js → esm2020/components/theme-android/theme-android.component.mjs} +5 -11
  78. package/{esm2015/components/theme-android/theme-android.module.js → esm2020/components/theme-android/theme-android.module.mjs} +4 -4
  79. package/esm2020/components/theme-ios/theme-ios.component.mjs +12 -0
  80. package/{esm2015/components/theme-ios/theme-ios.module.js → esm2020/components/theme-ios/theme-ios.module.mjs} +4 -4
  81. package/esm2020/const/mobile-alert-options.mjs +13 -0
  82. package/{esm2015/directives/elastic-sticky/elastic-sticky.directive.js → esm2020/directives/elastic-sticky/elastic-sticky.directive.mjs} +3 -3
  83. package/{esm2015/directives/elastic-sticky/elastic-sticky.module.js → esm2020/directives/elastic-sticky/elastic-sticky.module.mjs} +4 -4
  84. package/esm2020/directives/elastic-sticky/elastic-sticky.service.mjs +40 -0
  85. package/esm2020/directives/mobile-tabs/mobile-tabs.component.mjs +13 -0
  86. package/{esm2015/directives/mobile-tabs/mobile-tabs.directive.js → esm2020/directives/mobile-tabs/mobile-tabs.directive.mjs} +3 -3
  87. package/{esm2015/directives/mobile-tabs/mobile-tabs.module.js → esm2020/directives/mobile-tabs/mobile-tabs.module.mjs} +4 -4
  88. package/{esm2015/directives/ripple/ripple-styles.component.js → esm2020/directives/ripple/ripple-styles.component.mjs} +6 -12
  89. package/esm2020/directives/ripple/ripple.directive.mjs +66 -0
  90. package/{esm2015/directives/ripple/ripple.module.js → esm2020/directives/ripple/ripple.module.mjs} +4 -4
  91. package/esm2020/directives/ripple/ripple.providers.mjs +42 -0
  92. package/esm2020/directives/sidebar/sidebar.component.mjs +58 -0
  93. package/esm2020/directives/sidebar/sidebar.directive.mjs +72 -0
  94. package/{esm2015/directives/sidebar/sidebar.module.js → esm2020/directives/sidebar/sidebar.module.mjs} +5 -5
  95. package/esm2020/directives/touchable/touchable.directive.mjs +82 -0
  96. package/{esm2015/directives/touchable/touchable.module.js → esm2020/directives/touchable/touchable.module.mjs} +4 -4
  97. package/esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.mjs +34 -0
  98. package/{esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js → esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.mjs} +8 -10
  99. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs +103 -0
  100. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  101. package/fesm2015/{taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +16 -19
  102. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  103. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs +539 -0
  104. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  105. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs +91 -0
  106. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  107. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +257 -0
  108. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  109. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs +215 -0
  110. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  111. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs +687 -0
  112. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  113. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs +137 -0
  114. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  115. package/fesm2015/{taiga-ui-addon-mobile-components-theme-android.js → taiga-ui-addon-mobile-components-theme-android.mjs} +9 -15
  116. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  117. package/fesm2015/{taiga-ui-addon-mobile-components-theme-ios.js → taiga-ui-addon-mobile-components-theme-ios.mjs} +9 -15
  118. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  119. package/fesm2015/{taiga-ui-addon-mobile-components.js → taiga-ui-addon-mobile-components.mjs} +1 -1
  120. package/fesm2015/taiga-ui-addon-mobile-components.mjs.map +1 -0
  121. package/fesm2015/{taiga-ui-addon-mobile-const.js → taiga-ui-addon-mobile-const.mjs} +1 -1
  122. package/fesm2015/taiga-ui-addon-mobile-const.mjs.map +1 -0
  123. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +85 -0
  124. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  125. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +87 -0
  126. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  127. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs +136 -0
  128. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  129. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs +143 -0
  130. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  131. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs +104 -0
  132. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  133. package/fesm2015/{taiga-ui-addon-mobile-directives.js → taiga-ui-addon-mobile-directives.mjs} +1 -1
  134. package/fesm2015/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  135. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  136. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  137. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs +72 -0
  138. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  139. package/fesm2015/{taiga-ui-addon-mobile-internal.js → taiga-ui-addon-mobile-internal.mjs} +1 -1
  140. package/fesm2015/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  141. package/fesm2015/taiga-ui-addon-mobile-types.mjs +4 -0
  142. package/fesm2015/taiga-ui-addon-mobile-types.mjs.map +1 -0
  143. package/fesm2015/{taiga-ui-addon-mobile-utils.js → taiga-ui-addon-mobile-utils.mjs} +1 -1
  144. package/fesm2015/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  145. package/fesm2015/{taiga-ui-addon-mobile.js → taiga-ui-addon-mobile.mjs} +1 -1
  146. package/fesm2015/taiga-ui-addon-mobile.mjs.map +1 -0
  147. package/{fesm2015/taiga-ui-addon-mobile-components-app-bar.js → fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs} +19 -34
  148. package/fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  149. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs +69 -0
  150. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  151. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js → fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +36 -51
  152. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  153. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js → fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +22 -25
  154. package/fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  155. package/{fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js → fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +25 -42
  156. package/fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  157. package/{fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js → fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +25 -31
  158. package/fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  159. package/{fesm2015/taiga-ui-addon-mobile-components-sheet.js → fesm2020/taiga-ui-addon-mobile-components-sheet.mjs} +86 -108
  160. package/fesm2020/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  161. package/{fesm2015/taiga-ui-addon-mobile-components-tab-bar.js → fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs} +19 -30
  162. package/fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  163. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs +32 -0
  164. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  165. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs +32 -0
  166. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  167. package/fesm2020/taiga-ui-addon-mobile-components.mjs +15 -0
  168. package/fesm2020/taiga-ui-addon-mobile-components.mjs.map +1 -0
  169. package/fesm2020/taiga-ui-addon-mobile-const.mjs +19 -0
  170. package/fesm2020/taiga-ui-addon-mobile-const.mjs.map +1 -0
  171. package/{fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js → fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +12 -13
  172. package/fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  173. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +85 -0
  174. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  175. package/{fesm2015/taiga-ui-addon-mobile-directives-ripple.js → fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs} +14 -21
  176. package/fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  177. package/{fesm2015/taiga-ui-addon-mobile-directives-sidebar.js → fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs} +28 -28
  178. package/fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  179. package/{fesm2015/taiga-ui-addon-mobile-directives-touchable.js → fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs} +10 -11
  180. package/fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  181. package/fesm2020/taiga-ui-addon-mobile-directives.mjs +10 -0
  182. package/fesm2020/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  183. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  184. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  185. package/{fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +13 -21
  186. package/fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  187. package/fesm2020/taiga-ui-addon-mobile-internal.mjs +6 -0
  188. package/fesm2020/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  189. package/fesm2020/taiga-ui-addon-mobile-types.mjs +4 -0
  190. package/fesm2020/taiga-ui-addon-mobile-types.mjs.map +1 -0
  191. package/fesm2020/taiga-ui-addon-mobile-utils.mjs +16 -0
  192. package/fesm2020/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  193. package/fesm2020/taiga-ui-addon-mobile.mjs +11 -0
  194. package/fesm2020/taiga-ui-addon-mobile.mjs.map +1 -0
  195. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +1 -1
  196. package/package.json +229 -32
  197. package/styles/android/checkbox.less +16 -13
  198. package/styles/android/radio.less +7 -5
  199. package/styles/android/toggle.less +3 -4
  200. package/styles/common/badge.less +3 -3
  201. package/styles/ios/checkbox.less +17 -9
  202. package/styles/ios/toggle.less +8 -11
  203. package/types/touch-mode.d.ts +1 -1
  204. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +0 -149
  205. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +0 -1
  206. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +0 -129
  207. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +0 -1
  208. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +0 -929
  209. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +0 -1
  210. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +0 -450
  211. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +0 -1
  212. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +0 -677
  213. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +0 -1
  214. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +0 -596
  215. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +0 -1
  216. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +0 -1153
  217. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +0 -1
  218. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +0 -188
  219. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +0 -1
  220. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +0 -391
  221. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +0 -1
  222. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +0 -391
  223. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +0 -1
  224. package/bundles/taiga-ui-addon-mobile-components.umd.js +0 -75
  225. package/bundles/taiga-ui-addon-mobile-components.umd.js.map +0 -1
  226. package/bundles/taiga-ui-addon-mobile-const.umd.js +0 -24
  227. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +0 -1
  228. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +0 -437
  229. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +0 -1
  230. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +0 -131
  231. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +0 -1
  232. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +0 -195
  233. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +0 -1
  234. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +0 -524
  235. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +0 -1
  236. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +0 -144
  237. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +0 -1
  238. package/bundles/taiga-ui-addon-mobile-directives.umd.js +0 -45
  239. package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +0 -1
  240. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +0 -11
  241. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +0 -1
  242. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +0 -429
  243. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +0 -1
  244. package/bundles/taiga-ui-addon-mobile-internal.umd.js +0 -21
  245. package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +0 -1
  246. package/bundles/taiga-ui-addon-mobile-types.umd.js +0 -11
  247. package/bundles/taiga-ui-addon-mobile-types.umd.js.map +0 -1
  248. package/bundles/taiga-ui-addon-mobile-utils.umd.js +0 -26
  249. package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +0 -1
  250. package/bundles/taiga-ui-addon-mobile.umd.js +0 -51
  251. package/bundles/taiga-ui-addon-mobile.umd.js.map +0 -1
  252. package/components/app-bar/package.json +0 -10
  253. package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +0 -5
  254. package/components/mobile-calendar/package.json +0 -10
  255. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +0 -5
  256. package/components/mobile-calendar-dialog/package.json +0 -10
  257. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +0 -5
  258. package/components/mobile-dialog/package.json +0 -10
  259. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +0 -5
  260. package/components/package.json +0 -10
  261. package/components/pull-to-refresh/package.json +0 -10
  262. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +0 -5
  263. package/components/sheet/package.json +0 -10
  264. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +0 -5
  265. package/components/sheet-dialog/package.json +0 -10
  266. package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +0 -5
  267. package/components/tab-bar/package.json +0 -10
  268. package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +0 -5
  269. package/components/taiga-ui-addon-mobile-components.d.ts +0 -5
  270. package/components/theme-android/package.json +0 -10
  271. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +0 -5
  272. package/components/theme-ios/package.json +0 -10
  273. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +0 -5
  274. package/const/package.json +0 -10
  275. package/const/taiga-ui-addon-mobile-const.d.ts +0 -5
  276. package/directives/elastic-sticky/package.json +0 -10
  277. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +0 -5
  278. package/directives/mobile-tabs/package.json +0 -10
  279. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +0 -5
  280. package/directives/package.json +0 -10
  281. package/directives/ripple/package.json +0 -10
  282. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +0 -5
  283. package/directives/sidebar/package.json +0 -10
  284. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +0 -5
  285. package/directives/taiga-ui-addon-mobile-directives.d.ts +0 -5
  286. package/directives/touchable/package.json +0 -10
  287. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +0 -5
  288. package/esm2015/components/app-bar/app-bar-back.component.js +0 -16
  289. package/esm2015/components/app-bar/app-bar.component.js +0 -43
  290. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +0 -314
  291. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +0 -30
  292. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +0 -126
  293. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -45
  294. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +0 -38
  295. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +0 -26
  296. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +0 -60
  297. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -49
  298. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +0 -75
  299. package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +0 -54
  300. package/esm2015/components/sheet/components/sheet/sheet.component.js +0 -128
  301. package/esm2015/components/sheet/components/sheet/sheet.providers.js +0 -31
  302. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +0 -68
  303. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
  304. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -47
  305. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -54
  306. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -81
  307. package/esm2015/components/sheet/ios.hacks.js +0 -29
  308. package/esm2015/components/sheet/sheet-options.js +0 -19
  309. package/esm2015/components/sheet/sheet.directive.js +0 -49
  310. package/esm2015/components/sheet/sheet.service.js +0 -51
  311. package/esm2015/components/sheet-dialog/sheet-dialog.component.js +0 -141
  312. package/esm2015/components/tab-bar/tab-bar-item.component.js +0 -35
  313. package/esm2015/components/tab-bar/tab-bar-item.directive.js +0 -44
  314. package/esm2015/components/tab-bar/tab-bar.component.js +0 -52
  315. package/esm2015/components/theme-ios/theme-ios.component.js +0 -18
  316. package/esm2015/const/mobile-alert-options.js +0 -7
  317. package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +0 -41
  318. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +0 -19
  319. package/esm2015/directives/ripple/ripple.directive.js +0 -67
  320. package/esm2015/directives/ripple/ripple.providers.js +0 -43
  321. package/esm2015/directives/sidebar/sidebar.component.js +0 -58
  322. package/esm2015/directives/sidebar/sidebar.directive.js +0 -72
  323. package/esm2015/directives/touchable/touchable.directive.js +0 -83
  324. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -40
  325. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +0 -1
  326. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  327. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  328. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  329. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  330. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +0 -1
  331. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  332. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +0 -1
  333. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  334. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  335. package/fesm2015/taiga-ui-addon-mobile-components.js.map +0 -1
  336. package/fesm2015/taiga-ui-addon-mobile-const.js.map +0 -1
  337. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  338. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -91
  339. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  340. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  341. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  342. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  343. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +0 -1
  344. package/fesm2015/taiga-ui-addon-mobile-interfaces.js +0 -4
  345. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  346. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  347. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +0 -1
  348. package/fesm2015/taiga-ui-addon-mobile-types.js +0 -4
  349. package/fesm2015/taiga-ui-addon-mobile-types.js.map +0 -1
  350. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +0 -1
  351. package/fesm2015/taiga-ui-addon-mobile.js.map +0 -1
  352. package/interfaces/package.json +0 -10
  353. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +0 -5
  354. package/internal/package.json +0 -10
  355. package/internal/primitive-calendar-mobile/package.json +0 -10
  356. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +0 -5
  357. package/internal/taiga-ui-addon-mobile-internal.d.ts +0 -5
  358. package/taiga-ui-addon-mobile.d.ts +0 -5
  359. package/types/package.json +0 -10
  360. package/types/taiga-ui-addon-mobile-types.d.ts +0 -5
  361. package/utils/package.json +0 -10
  362. package/utils/taiga-ui-addon-mobile-utils.d.ts +0 -5
  363. /package/{esm2015/components/app-bar/app-bar.providers.js → esm2020/components/app-bar/app-bar.providers.mjs} +0 -0
  364. /package/{esm2015/components/app-bar/index.js → esm2020/components/app-bar/index.mjs} +0 -0
  365. /package/{esm2015/components/app-bar/taiga-ui-addon-mobile-components-app-bar.js → esm2020/components/app-bar/taiga-ui-addon-mobile-components-app-bar.mjs} +0 -0
  366. /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
  367. /package/{esm2015/components/mobile-calendar/index.js → esm2020/components/mobile-calendar/index.mjs} +0 -0
  368. /package/{esm2015/components/mobile-calendar/mobile-calendar.const.js → esm2020/components/mobile-calendar/mobile-calendar.const.mjs} +0 -0
  369. /package/{esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js → esm2020/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +0 -0
  370. /package/{esm2015/components/mobile-calendar-dialog/index.js → esm2020/components/mobile-calendar-dialog/index.mjs} +0 -0
  371. /package/{esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → esm2020/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +0 -0
  372. /package/{esm2015/components/mobile-dialog/index.js → esm2020/components/mobile-dialog/index.mjs} +0 -0
  373. /package/{esm2015/components/mobile-dialog/mobile-dialog-options.js → esm2020/components/mobile-dialog/mobile-dialog-options.mjs} +0 -0
  374. /package/{esm2015/components/mobile-dialog/mobile-dialog.options.js → esm2020/components/mobile-dialog/mobile-dialog.options.mjs} +0 -0
  375. /package/{esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js → esm2020/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +0 -0
  376. /package/{esm2015/components/pull-to-refresh/index.js → esm2020/components/pull-to-refresh/index.mjs} +0 -0
  377. /package/{esm2015/components/pull-to-refresh/pull-to-refresh.providers.js → esm2020/components/pull-to-refresh/pull-to-refresh.providers.mjs} +0 -0
  378. /package/{esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js → esm2020/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +0 -0
  379. /package/{esm2015/components/sheet/index.js → esm2020/components/sheet/index.mjs} +0 -0
  380. /package/{esm2015/components/sheet/sheet-tokens.js → esm2020/components/sheet/sheet-tokens.mjs} +0 -0
  381. /package/{esm2015/components/sheet/sheet.js → esm2020/components/sheet/sheet.mjs} +0 -0
  382. /package/{esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js → esm2020/components/sheet/taiga-ui-addon-mobile-components-sheet.mjs} +0 -0
  383. /package/{esm2015/components/sheet-dialog/index.js → esm2020/components/sheet-dialog/index.mjs} +0 -0
  384. /package/{esm2015/components/sheet-dialog/sheet-dialog.options.js → esm2020/components/sheet-dialog/sheet-dialog.options.mjs} +0 -0
  385. /package/{esm2015/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.js → esm2020/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +0 -0
  386. /package/{esm2015/components/tab-bar/index.js → esm2020/components/tab-bar/index.mjs} +0 -0
  387. /package/{esm2015/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.js → esm2020/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.mjs} +0 -0
  388. /package/{esm2015/components/taiga-ui-addon-mobile-components.js → esm2020/components/taiga-ui-addon-mobile-components.mjs} +0 -0
  389. /package/{esm2015/components/theme-android/index.js → esm2020/components/theme-android/index.mjs} +0 -0
  390. /package/{esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js → esm2020/components/theme-android/taiga-ui-addon-mobile-components-theme-android.mjs} +0 -0
  391. /package/{esm2015/components/theme-ios/index.js → esm2020/components/theme-ios/index.mjs} +0 -0
  392. /package/{esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js → esm2020/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.mjs} +0 -0
  393. /package/{esm2015/const/index.js → esm2020/const/index.mjs} +0 -0
  394. /package/{esm2015/const/taiga-ui-addon-mobile-const.js → esm2020/const/taiga-ui-addon-mobile-const.mjs} +0 -0
  395. /package/{esm2015/directives/elastic-sticky/index.js → esm2020/directives/elastic-sticky/index.mjs} +0 -0
  396. /package/{esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js → esm2020/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +0 -0
  397. /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
  398. /package/{esm2015/directives/mobile-tabs/index.js → esm2020/directives/mobile-tabs/index.mjs} +0 -0
  399. /package/{esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js → esm2020/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.mjs} +0 -0
  400. /package/{esm2015/directives/ripple/index.js → esm2020/directives/ripple/index.mjs} +0 -0
  401. /package/{esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js → esm2020/directives/ripple/taiga-ui-addon-mobile-directives-ripple.mjs} +0 -0
  402. /package/{esm2015/directives/sidebar/index.js → esm2020/directives/sidebar/index.mjs} +0 -0
  403. /package/{esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js → esm2020/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.mjs} +0 -0
  404. /package/{esm2015/directives/taiga-ui-addon-mobile-directives.js → esm2020/directives/taiga-ui-addon-mobile-directives.mjs} +0 -0
  405. /package/{esm2015/directives/touchable/index.js → esm2020/directives/touchable/index.mjs} +0 -0
  406. /package/{esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js → esm2020/directives/touchable/taiga-ui-addon-mobile-directives-touchable.mjs} +0 -0
  407. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  408. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  409. /package/{esm2015/interfaces/mobile-alert-data.js → esm2020/interfaces/mobile-alert-data.mjs} +0 -0
  410. /package/{esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js → esm2020/interfaces/taiga-ui-addon-mobile-interfaces.mjs} +0 -0
  411. /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
  412. /package/{esm2015/internal/primitive-calendar-mobile/index.js → esm2020/internal/primitive-calendar-mobile/index.mjs} +0 -0
  413. /package/{esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → esm2020/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +0 -0
  414. /package/{esm2015/internal/taiga-ui-addon-mobile-internal.js → esm2020/internal/taiga-ui-addon-mobile-internal.mjs} +0 -0
  415. /package/{esm2015/taiga-ui-addon-mobile.js → esm2020/taiga-ui-addon-mobile.mjs} +0 -0
  416. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  417. /package/{esm2015/types/taiga-ui-addon-mobile-types.js → esm2020/types/taiga-ui-addon-mobile-types.mjs} +0 -0
  418. /package/{esm2015/types/touch-mode.js → esm2020/types/touch-mode.mjs} +0 -0
  419. /package/{esm2015/utils/find-touch-index.js → esm2020/utils/find-touch-index.mjs} +0 -0
  420. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  421. /package/{esm2015/utils/taiga-ui-addon-mobile-utils.js → esm2020/utils/taiga-ui-addon-mobile-utils.mjs} +0 -0
@@ -0,0 +1,687 @@
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, ElementRef, Component, ChangeDetectionStrategy, Inject, NgZone, forwardRef, Directive, Input, Self, ViewChild, ViewChildren, HostListener, Injectable, ContentChild, Output, ChangeDetectorRef, TemplateRef, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
4
+ import * as i2 from '@taiga-ui/cdk';
5
+ import { tuiTypedFromEvent, tuiZonefree, TuiIdService, ALWAYS_TRUE_HANDLER, ALWAYS_FALSE_HANDLER, TUI_IS_IOS, TUI_SCROLL_REF, tuiClamp, TuiDestroyService, EMPTY_QUERY, tuiZonefull, tuiPure, tuiCreateToken, tuiGetNativeFocused, tuiIsHTMLElement, tuiIsFalsy, tuiIfMap, TUI_WINDOW_HEIGHT, TuiLetModule, TuiOverscrollModule } from '@taiga-ui/cdk';
6
+ import * as i1 from '@taiga-ui/core';
7
+ import { TUI_CLOSE_WORD, TUI_COMMON_ICONS, tuiZonefulMap, tuiSlideInTop, TUI_ANIMATION_OPTIONS, tuiFadeIn, TuiButtonModule, TuiScrollbarModule } from '@taiga-ui/core';
8
+ import { TUI_MORE_WORD } from '@taiga-ui/kit';
9
+ import * as i1$2 from 'rxjs';
10
+ import { map, merge, delay, switchMap, concat, zip, takeUntil, take, share, distinctUntilChanged, withLatestFrom, filter, throttleTime, BehaviorSubject, Observable, EMPTY, race, timer, debounceTime, startWith, Subject, ignoreElements, endWith } from 'rxjs';
11
+ import * as i1$1 from '@angular/common';
12
+ import { DOCUMENT, CommonModule } from '@angular/common';
13
+ import * as i2$1 from '@tinkoff/ng-polymorpheus';
14
+ import { PolymorpheusTemplate, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
15
+ import { WINDOW } from '@ng-web-apis/common';
16
+
17
+ // eslint-disable-next-line @typescript-eslint/naming-convention
18
+ function iosScrollFactory(element, doc, zone) {
19
+ const load$ = tuiTypedFromEvent(element, `load`, { capture: true });
20
+ const touchstart$ = tuiTypedFromEvent(element, `touchstart`, { passive: true });
21
+ const touchmove$ = tuiTypedFromEvent(doc, `touchmove`, { passive: true });
22
+ const touchend$ = tuiTypedFromEvent(doc, `touchend`);
23
+ const scroll$ = tuiTypedFromEvent(element, `scroll`).pipe(map(() => element.scrollTop));
24
+ const result$ = merge(load$.pipe(delay(0), map(() => element.scrollTop)), touchstart$.pipe(switchMap(({ touches }) => {
25
+ const { screenY } = touches[0];
26
+ const { scrollTop } = element;
27
+ return concat(
28
+ // Sometimes touch is triggered without scroll in iOS, filter that
29
+ zip(touchmove$, scroll$).pipe(map(([{ touches }]) => scrollTop + screenY - touches[0].screenY), takeUntil(touchend$)), scroll$);
30
+ })));
31
+ return concat(scroll$.pipe(take(1)), result$).pipe(tuiZonefree(zone), share());
32
+ }
33
+ // eslint-disable-next-line @typescript-eslint/naming-convention
34
+ function fakeSmoothScroll({ style }, offset) {
35
+ style.transition = `none`;
36
+ style.transform = `scaleX(-1) translate3d(0, ${offset}px, 0)`;
37
+ setTimeout(() => {
38
+ style.transition = ``;
39
+ style.transform = ``;
40
+ });
41
+ }
42
+
43
+ /**
44
+ * Sheet main component
45
+ */
46
+ const TUI_SHEET = new InjectionToken(`[TUI_SHEET]`);
47
+ /**
48
+ * Current scrollTop of a sheet
49
+ */
50
+ const TUI_SHEET_SCROLL = new InjectionToken(`[TUI_SHEET_SCROLL]`);
51
+ /**
52
+ * The sheet is being dragged
53
+ */
54
+ const TUI_SHEET_DRAGGED = new InjectionToken(`[TUI_SHEET_DRAGGED]`);
55
+
56
+ const TUI_SHEET_CLOSE = 'tui-sheet-close';
57
+ const TUI_SHEET_ID = 'tui-sheet-id';
58
+ class TuiSheetHeadingComponent {
59
+ constructor(idService, el, closeWord$, icons) {
60
+ this.idService = idService;
61
+ this.el = el;
62
+ this.closeWord$ = closeWord$;
63
+ this.icons = icons;
64
+ this.id = this.idService.generate();
65
+ }
66
+ ngAfterViewInit() {
67
+ this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_ID, { bubbles: true, detail: this.id }));
68
+ }
69
+ onClick() {
70
+ this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
71
+ }
72
+ }
73
+ TuiSheetHeadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetHeadingComponent, deps: [{ token: TuiIdService }, { token: ElementRef }, { token: TUI_CLOSE_WORD }, { token: TUI_COMMON_ICONS }], target: i0.ɵɵFactoryTarget.Component });
74
+ TuiSheetHeadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]", ngImport: i0, template: "<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-elevation-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}:host:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}\n"], dependencies: [{ kind: "component", type: i1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetHeadingComponent, decorators: [{
76
+ type: Component,
77
+ args: [{ selector: '[tuiSheetHeading]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-elevation-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}:host:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}\n"] }]
78
+ }], ctorParameters: function () {
79
+ return [{ type: i2.TuiIdService, decorators: [{
80
+ type: Inject,
81
+ args: [TuiIdService]
82
+ }] }, { type: i0.ElementRef, decorators: [{
83
+ type: Inject,
84
+ args: [ElementRef]
85
+ }] }, { type: i1$2.Observable, decorators: [{
86
+ type: Inject,
87
+ args: [TUI_CLOSE_WORD]
88
+ }] }, { type: undefined, decorators: [{
89
+ type: Inject,
90
+ args: [TUI_COMMON_ICONS]
91
+ }] }];
92
+ } });
93
+
94
+ const TUI_SHEET_PROVIDERS = [
95
+ {
96
+ provide: TUI_SHEET_DRAGGED,
97
+ deps: [ElementRef],
98
+ useFactory: ({ nativeElement }) => merge(tuiTypedFromEvent(nativeElement, `touchstart`, { passive: true }).pipe(map(ALWAYS_TRUE_HANDLER)), tuiTypedFromEvent(nativeElement, `touchend`).pipe(map(ALWAYS_FALSE_HANDLER))),
99
+ },
100
+ {
101
+ provide: TUI_SHEET_SCROLL,
102
+ deps: [ElementRef, NgZone, DOCUMENT, TUI_IS_IOS],
103
+ useFactory: ({ nativeElement }, zone, doc, isIos) => isIos
104
+ ? iosScrollFactory(nativeElement, doc, zone)
105
+ : merge(tuiTypedFromEvent(nativeElement, `scroll`), tuiTypedFromEvent(nativeElement, `load`, { capture: true })).pipe(map(() => nativeElement.scrollTop), tuiZonefree(zone), share()),
106
+ },
107
+ {
108
+ provide: TUI_SCROLL_REF,
109
+ useExisting: ElementRef,
110
+ },
111
+ {
112
+ provide: TUI_SHEET,
113
+ useExisting: forwardRef(() => TuiSheetComponent),
114
+ },
115
+ ];
116
+
117
+ class TuiSheetBarComponent {
118
+ constructor(sheet, scroll$, zone) {
119
+ this.sheet = sheet;
120
+ this.scroll$ = scroll$;
121
+ this.zone = zone;
122
+ this.rotate$ = this.scroll$.pipe(tuiZonefulMap(y => tuiClamp(10 - (y - this.stop) / 5, 0, 10), this.zone));
123
+ }
124
+ get stop() {
125
+ return this.sheet.stops[0] || 0;
126
+ }
127
+ }
128
+ TuiSheetBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetBarComponent, deps: [{ token: TUI_SHEET }, { token: TUI_SHEET_SCROLL }, { token: NgZone }], target: i0.ɵɵFactoryTarget.Component });
129
+ TuiSheetBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetBarComponent, selector: "tui-sheet-bar", ngImport: i0, template: "<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\"></ng-content>\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:\"\";height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetBarComponent, decorators: [{
131
+ type: Component,
132
+ args: [{ selector: 'tui-sheet-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<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\"></ng-content>\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:\"\";height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}\n"] }]
133
+ }], ctorParameters: function () {
134
+ return [{ type: undefined, decorators: [{
135
+ type: Inject,
136
+ args: [TUI_SHEET]
137
+ }] }, { type: i1$2.Observable, decorators: [{
138
+ type: Inject,
139
+ args: [TUI_SHEET_SCROLL]
140
+ }] }, { type: i0.NgZone, decorators: [{
141
+ type: Inject,
142
+ args: [NgZone]
143
+ }] }];
144
+ } });
145
+
146
+ // So that borders get rounded when image is visible for at least 10px
147
+ const OFFSET$1 = 10;
148
+ class TuiSheetTopDirective {
149
+ constructor(scroll$, component, win) {
150
+ this.scroll$ = scroll$;
151
+ this.component = component;
152
+ this.win = win;
153
+ this.stop = 0;
154
+ this.transform$ = this.scroll$.pipe(map(y => `translateY(${this.getY(y)}%) scaleX(-1)`));
155
+ this.rounded$ = this.scroll$.pipe(map(y => y < this.stop + OFFSET$1));
156
+ this.clickthrough$ = this.scroll$.pipe(map(y => !!Math.round(this.getY(y))));
157
+ }
158
+ getY(scrollTop) {
159
+ const value = scrollTop - this.stop;
160
+ const total = this.win.innerHeight - this.component.item.offset - this.stop;
161
+ return this.stop && tuiClamp(100 - (value / total) * 100, 0, 100);
162
+ }
163
+ }
164
+ TuiSheetTopDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetTopDirective, deps: [{ token: TUI_SHEET_SCROLL }, { token: TUI_SHEET }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Directive });
165
+ TuiSheetTopDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: { stop: ["tuiSheetTop", "stop"] }, host: { listeners: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" }, properties: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" } }, ngImport: i0 });
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetTopDirective, decorators: [{
167
+ type: Directive,
168
+ args: [{
169
+ selector: '[tuiSheetTop]',
170
+ host: {
171
+ '[$.style.transform]': 'transform$',
172
+ '($.style.transform)': 'transform$',
173
+ '[$.class._rounded]': 'rounded$',
174
+ '($.class._rounded)': 'rounded$',
175
+ '[$.class._clickthrough]': 'clickthrough$',
176
+ '($.class._clickthrough)': 'clickthrough$',
177
+ },
178
+ }]
179
+ }], ctorParameters: function () {
180
+ return [{ type: i1$2.Observable, decorators: [{
181
+ type: Inject,
182
+ args: [TUI_SHEET_SCROLL]
183
+ }] }, { type: undefined, decorators: [{
184
+ type: Inject,
185
+ args: [TUI_SHEET]
186
+ }] }, { type: Window, decorators: [{
187
+ type: Inject,
188
+ args: [WINDOW]
189
+ }] }];
190
+ }, propDecorators: { stop: [{
191
+ type: Input,
192
+ args: ['tuiSheetTop']
193
+ }] } });
194
+
195
+ class TuiSheetStopDirective {
196
+ constructor(el, destroy$, dragged$, scroll$, { nativeElement }) {
197
+ scroll$
198
+ .pipe(map(y => Math.floor(y) > el.nativeElement.offsetTop), distinctUntilChanged(), withLatestFrom(dragged$), map(([above, dragged]) => !above && !dragged), filter(Boolean), throttleTime(100), takeUntil(destroy$))
199
+ .subscribe(() => {
200
+ nativeElement.style.overflow = 'hidden';
201
+ nativeElement.classList.remove('_stuck'); // iOS
202
+ nativeElement.scrollTop = el.nativeElement.offsetTop;
203
+ setTimeout(() => {
204
+ nativeElement.style.overflow = '';
205
+ }, 100);
206
+ });
207
+ }
208
+ }
209
+ TuiSheetStopDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetStopDirective, deps: [{ token: ElementRef }, { token: TuiDestroyService, self: true }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: TUI_SCROLL_REF }], target: i0.ɵɵFactoryTarget.Directive });
210
+ TuiSheetStopDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [TuiDestroyService], ngImport: i0 });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetStopDirective, decorators: [{
212
+ type: Directive,
213
+ args: [{
214
+ selector: '[tuiSheetStop]',
215
+ providers: [TuiDestroyService],
216
+ }]
217
+ }], ctorParameters: function () {
218
+ return [{ type: i0.ElementRef, decorators: [{
219
+ type: Inject,
220
+ args: [ElementRef]
221
+ }] }, { type: i1$2.Observable, decorators: [{
222
+ type: Self
223
+ }, {
224
+ type: Inject,
225
+ args: [TuiDestroyService]
226
+ }] }, { type: i1$2.Observable, decorators: [{
227
+ type: Inject,
228
+ args: [TUI_SHEET_DRAGGED]
229
+ }] }, { type: i1$2.Observable, decorators: [{
230
+ type: Inject,
231
+ args: [TUI_SHEET_SCROLL]
232
+ }] }, { type: i0.ElementRef, decorators: [{
233
+ type: Inject,
234
+ args: [TUI_SCROLL_REF]
235
+ }] }];
236
+ } });
237
+
238
+ class TuiSheetComponent {
239
+ constructor(scroll$, el, zone, isIos, moreWord$) {
240
+ this.scroll$ = scroll$;
241
+ this.el = el;
242
+ this.zone = zone;
243
+ this.isIos = isIos;
244
+ this.moreWord$ = moreWord$;
245
+ this.stopsRefs = EMPTY_QUERY;
246
+ this.id = '';
247
+ this.stuck$ = this.scroll$.pipe(map(y => Math.floor(y) > this.contentTop));
248
+ }
249
+ get stops() {
250
+ return this.getStops(this.stopsRefs);
251
+ }
252
+ get imageStop() {
253
+ return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
254
+ }
255
+ get imageHeight() {
256
+ return this.contentTop - this.sheetTop;
257
+ }
258
+ get context() {
259
+ return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(tuiZonefull(this.zone)) });
260
+ }
261
+ onId(id) {
262
+ this.id = id;
263
+ }
264
+ ngAfterViewInit() {
265
+ this.el.nativeElement.scrollTop = [...this.stops, this.sheetTop, this.contentTop][this.item.initial];
266
+ }
267
+ scrollTo(top = this.sheetTop) {
268
+ const { nativeElement } = this.el;
269
+ if (this.isIos) {
270
+ fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);
271
+ }
272
+ nativeElement.scrollTo({ top, behavior: 'smooth' });
273
+ }
274
+ close() {
275
+ if (this.context.closeable) {
276
+ this.context.$implicit.complete();
277
+ }
278
+ }
279
+ get contentTop() {
280
+ var _a, _b;
281
+ return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
282
+ }
283
+ get sheetTop() {
284
+ var _a, _b;
285
+ return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
286
+ }
287
+ getStops(stops) {
288
+ return stops.map(({ nativeElement }) => nativeElement.offsetTop + nativeElement.clientHeight);
289
+ }
290
+ }
291
+ TuiSheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetComponent, deps: [{ token: TUI_SHEET_SCROLL }, { token: ElementRef }, { token: NgZone }, { token: TUI_IS_IOS }, { token: TUI_MORE_WORD }], target: i0.ɵɵFactoryTarget.Component });
292
+ TuiSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetComponent, selector: "tui-sheet", inputs: { item: "item" }, host: { attributes: { "role": "dialog" }, listeners: { "$.class._stuck": "stuck$", "tui-sheet-id": "onId($event.detail)" }, properties: { "attr.aria-labelledby": "id", "class._ios": "isIos", "$.class._stuck": "stuck$" } }, providers: TUI_SHEET_PROVIDERS, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "stopsRefs", predicate: ["stops"], descendants: true }], ngImport: i0, template: "<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", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-elevation-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._stuck{scroll-snap-type:none}@supports (-moz-appearance: none){:host{scroll-snap-type:none}}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:var(--tui-shadow)}.t-top{position:-webkit-sticky;position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px #ffffff40}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading{padding-bottom:.5rem;background:var(--tui-elevation-01)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiSheetBarComponent, selector: "tui-sheet-bar" }, { kind: "component", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]" }, { kind: "directive", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: ["tuiSheetTop"] }, { kind: "directive", type: TuiSheetStopDirective, selector: "[tuiSheetStop]" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], animations: [tuiSlideInTop], changeDetection: i0.ChangeDetectionStrategy.OnPush });
293
+ __decorate([
294
+ tuiPure
295
+ ], TuiSheetComponent.prototype, "context", null);
296
+ __decorate([
297
+ tuiPure
298
+ ], TuiSheetComponent.prototype, "getStops", null);
299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetComponent, decorators: [{
300
+ type: Component,
301
+ args: [{ selector: 'tui-sheet', changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_SHEET_PROVIDERS, host: {
302
+ role: 'dialog',
303
+ '[attr.aria-labelledby]': 'id',
304
+ '[class._ios]': 'isIos',
305
+ // '[class._stuck]': 'true', // Initially disable snapping for Firefox
306
+ '[$.class._stuck]': 'stuck$',
307
+ '($.class._stuck)': 'stuck$',
308
+ }, animations: [tuiSlideInTop], template: "<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", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-elevation-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._stuck{scroll-snap-type:none}@supports (-moz-appearance: none){:host{scroll-snap-type:none}}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:var(--tui-shadow)}.t-top{position:-webkit-sticky;position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px #ffffff40}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading{padding-bottom:.5rem;background:var(--tui-elevation-01)}\n"] }]
309
+ }], ctorParameters: function () {
310
+ return [{ type: i1$2.Observable, decorators: [{
311
+ type: Inject,
312
+ args: [TUI_SHEET_SCROLL]
313
+ }] }, { type: i0.ElementRef, decorators: [{
314
+ type: Inject,
315
+ args: [ElementRef]
316
+ }] }, { type: i0.NgZone, decorators: [{
317
+ type: Inject,
318
+ args: [NgZone]
319
+ }] }, { type: undefined, decorators: [{
320
+ type: Inject,
321
+ args: [TUI_IS_IOS]
322
+ }] }, { type: i1$2.Observable, decorators: [{
323
+ type: Inject,
324
+ args: [TUI_MORE_WORD]
325
+ }] }];
326
+ }, propDecorators: { sheet: [{
327
+ type: ViewChild,
328
+ args: ['sheet']
329
+ }], content: [{
330
+ type: ViewChild,
331
+ args: ['content']
332
+ }], stopsRefs: [{
333
+ type: ViewChildren,
334
+ args: ['stops']
335
+ }], item: [{
336
+ type: Input
337
+ }], context: [], onId: [{
338
+ type: HostListener,
339
+ args: [TUI_SHEET_ID, ['$event.detail']]
340
+ }], getStops: [] } });
341
+
342
+ /**
343
+ * @deprecated: drop in v4.0
344
+ */
345
+ const TUI_SHEET_DEFAULT_OPTIONS = {
346
+ image: ``,
347
+ imageSlide: true,
348
+ stops: [],
349
+ initial: 0,
350
+ offset: 16,
351
+ closeable: true,
352
+ overlay: false,
353
+ };
354
+ /**
355
+ * @deprecated: drop in v4.0
356
+ * Default parameters for sheet component
357
+ */
358
+ const TUI_SHEET_OPTIONS = tuiCreateToken(Object.assign({}, TUI_SHEET_DEFAULT_OPTIONS));
359
+
360
+ /**
361
+ * @deprecated: use {@link TuiSheetDialogService}
362
+ * drop in v4.0
363
+ */
364
+ class TuiSheetService {
365
+ constructor(doc, options) {
366
+ this.doc = doc;
367
+ this.options = options;
368
+ this.sheets$ = new BehaviorSubject([]);
369
+ }
370
+ open(content, options = {}) {
371
+ return new Observable($implicit => {
372
+ const completeWith = (result) => {
373
+ $implicit.next(result);
374
+ $implicit.complete();
375
+ };
376
+ const sheet = Object.assign(Object.assign(Object.assign({}, this.options), options), { content,
377
+ completeWith,
378
+ $implicit, scroll$: EMPTY });
379
+ const focused = tuiGetNativeFocused(this.doc);
380
+ if (tuiIsHTMLElement(focused) && sheet.overlay) {
381
+ focused.blur();
382
+ }
383
+ this.sheets$.next([...this.sheets$.value, sheet]);
384
+ return () => {
385
+ this.sheets$.next(this.sheets$.value.filter(item => item !== sheet));
386
+ };
387
+ });
388
+ }
389
+ }
390
+ TuiSheetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetService, deps: [{ token: DOCUMENT }, { token: TUI_SHEET_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
391
+ TuiSheetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetService, providedIn: `root` });
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetService, decorators: [{
393
+ type: Injectable,
394
+ args: [{
395
+ providedIn: `root`,
396
+ }]
397
+ }], ctorParameters: function () {
398
+ return [{ type: Document, decorators: [{
399
+ type: Inject,
400
+ args: [DOCUMENT]
401
+ }] }, { type: undefined, decorators: [{
402
+ type: Inject,
403
+ args: [TUI_SHEET_OPTIONS]
404
+ }] }];
405
+ } });
406
+
407
+ // Safety offset for shadow
408
+ const OFFSET = 16;
409
+ function processDragged(dragged$, scroll$) {
410
+ const touchstart$ = dragged$.pipe(filter(Boolean));
411
+ const touchend$ = dragged$.pipe(filter(tuiIsFalsy));
412
+ const race$ = race(scroll$, timer(100)).pipe(debounceTime(200), take(1), map(ALWAYS_FALSE_HANDLER));
413
+ return touchstart$.pipe(switchMap(() => touchend$.pipe(switchMap(() => race$), startWith(true))), startWith(false));
414
+ }
415
+ class TuiSheetWrapperDirective {
416
+ constructor(zone, win) {
417
+ this.zone = zone;
418
+ this.win = win;
419
+ this.tuiSheetWrapper = 16;
420
+ }
421
+ get overlay$() {
422
+ return this.scroll$.pipe(map(y => y + 16 > this.win.innerHeight - this.tuiSheetWrapper), distinctUntilChanged(), tuiZonefull(this.zone));
423
+ }
424
+ get visible$() {
425
+ return processDragged(this.dragged$, this.scroll$).pipe(distinctUntilChanged(), tuiZonefull(this.zone));
426
+ }
427
+ get height$() {
428
+ return this.scroll$.pipe(map(this.getHeight.bind(this)));
429
+ }
430
+ getHeight(value) {
431
+ var _a;
432
+ return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
433
+ ? null
434
+ : tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.win.innerHeight);
435
+ }
436
+ withImage(value) {
437
+ var _a;
438
+ return !((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.imageStop) || Math.floor(value) > this.sheet.imageStop
439
+ ? value
440
+ : value - this.sheet.imageHeight;
441
+ }
442
+ }
443
+ TuiSheetWrapperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetWrapperDirective, deps: [{ token: NgZone }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Directive });
444
+ TuiSheetWrapperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: { tuiSheetWrapper: "tuiSheetWrapper" }, queries: [{ propertyName: "sheet", first: true, predicate: TuiSheetComponent, descendants: true }, { propertyName: "dragged$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_DRAGGED, static: true }, { propertyName: "scroll$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_SCROLL, static: true }], exportAs: ["tuiSheetWrapper"], ngImport: i0 });
445
+ __decorate([
446
+ tuiPure
447
+ ], TuiSheetWrapperDirective.prototype, "overlay$", null);
448
+ __decorate([
449
+ tuiPure
450
+ ], TuiSheetWrapperDirective.prototype, "visible$", null);
451
+ __decorate([
452
+ tuiPure
453
+ ], TuiSheetWrapperDirective.prototype, "height$", null);
454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetWrapperDirective, decorators: [{
455
+ type: Directive,
456
+ args: [{
457
+ selector: '[tuiSheetWrapper]',
458
+ exportAs: 'tuiSheetWrapper',
459
+ }]
460
+ }], ctorParameters: function () {
461
+ return [{ type: i0.NgZone, decorators: [{
462
+ type: Inject,
463
+ args: [NgZone]
464
+ }] }, { type: Window, decorators: [{
465
+ type: Inject,
466
+ args: [WINDOW]
467
+ }] }];
468
+ }, propDecorators: { sheet: [{
469
+ type: ContentChild,
470
+ args: [TuiSheetComponent]
471
+ }], dragged$: [{
472
+ type: ContentChild,
473
+ args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED, static: true }]
474
+ }], scroll$: [{
475
+ type: ContentChild,
476
+ args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL, static: true }]
477
+ }], tuiSheetWrapper: [{
478
+ type: Input
479
+ }], overlay$: [], visible$: [], height$: [] } });
480
+
481
+ class TuiSheetCloseDirective {
482
+ constructor(zone, dragged$, scroll$, win, el, sheet) {
483
+ this.zone = zone;
484
+ this.dragged$ = dragged$;
485
+ this.scroll$ = scroll$;
486
+ this.win = win;
487
+ this.el = el;
488
+ this.sheet = sheet;
489
+ this.close = merge(tuiTypedFromEvent(this.el.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(tuiIfMap(() => this.scroll$.pipe(startWith(this.el.nativeElement.scrollTop)), tuiIsFalsy), filter(y => { var _a; return ((_a = this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && this.shouldClose(y); }), distinctUntilChanged(), tuiZonefull(this.zone)));
490
+ }
491
+ shouldClose(scrollTop) {
492
+ const height = Math.min(this.win.innerHeight, this.el.nativeElement.scrollHeight - this.win.innerHeight);
493
+ const min = Math.min(height, this.sheet.stops[0] || Infinity);
494
+ return scrollTop < min / 2;
495
+ }
496
+ }
497
+ TuiSheetCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetCloseDirective, deps: [{ token: NgZone }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: WINDOW }, { token: ElementRef }, { token: TuiSheetComponent }], target: i0.ɵɵFactoryTarget.Directive });
498
+ TuiSheetCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: { close: "close" }, ngImport: i0 });
499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetCloseDirective, decorators: [{
500
+ type: Directive,
501
+ args: [{
502
+ selector: 'tui-sheet[close]',
503
+ }]
504
+ }], ctorParameters: function () {
505
+ return [{ type: i0.NgZone, decorators: [{
506
+ type: Inject,
507
+ args: [NgZone]
508
+ }] }, { type: i1$2.Observable, decorators: [{
509
+ type: Inject,
510
+ args: [TUI_SHEET_DRAGGED]
511
+ }] }, { type: i1$2.Observable, decorators: [{
512
+ type: Inject,
513
+ args: [TUI_SHEET_SCROLL]
514
+ }] }, { type: Window, decorators: [{
515
+ type: Inject,
516
+ args: [WINDOW]
517
+ }] }, { type: i0.ElementRef, decorators: [{
518
+ type: Inject,
519
+ args: [ElementRef]
520
+ }] }, { type: TuiSheetComponent, decorators: [{
521
+ type: Inject,
522
+ args: [TuiSheetComponent]
523
+ }] }];
524
+ }, propDecorators: { close: [{
525
+ type: Output
526
+ }] } });
527
+
528
+ class TuiSheetsHostComponent {
529
+ constructor(options, service, height$, destroy$, cdr) {
530
+ this.options = options;
531
+ this.service = service;
532
+ this.height$ = height$;
533
+ this.destroy$ = destroy$;
534
+ this.cdr = cdr;
535
+ this.sheets = [];
536
+ }
537
+ ngOnInit() {
538
+ // Due to this view being parallel to app content, `markForCheck` from `async` pipe
539
+ // can happen after view was checked, so calling `detectChanges` instead
540
+ this.service.sheets$.pipe(takeUntil(this.destroy$)).subscribe(sheets => {
541
+ this.sheets = sheets;
542
+ this.cdr.detectChanges();
543
+ });
544
+ }
545
+ close({ closeable, $implicit }) {
546
+ if (closeable) {
547
+ $implicit.complete();
548
+ }
549
+ }
550
+ }
551
+ TuiSheetsHostComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetsHostComponent, deps: [{ token: TUI_ANIMATION_OPTIONS }, { token: TuiSheetService }, { token: TUI_WINDOW_HEIGHT }, { token: TuiDestroyService, self: true }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
552
+ TuiSheetsHostComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetsHostComponent, selector: "tui-sheets-host", providers: [TuiDestroyService], ngImport: i0, template: "<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 tuiOverscroll=\"all\"\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n ></tui-sheet>\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n", styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper_visible{overflow:visible}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }, { kind: "directive", type: i1.TuiScrollRefDirective, selector: "[tuiScrollRef]" }, { kind: "component", type: TuiSheetComponent, selector: "tui-sheet", inputs: ["item"] }, { kind: "directive", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: ["tuiSheetWrapper"], exportAs: ["tuiSheetWrapper"] }, { kind: "directive", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: ["close"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], animations: [tuiSlideInTop, tuiFadeIn], changeDetection: i0.ChangeDetectionStrategy.OnPush });
553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetsHostComponent, decorators: [{
554
+ type: Component,
555
+ args: [{ selector: 'tui-sheets-host', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TuiDestroyService], animations: [tuiSlideInTop, tuiFadeIn], template: "<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 tuiOverscroll=\"all\"\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n ></tui-sheet>\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n", styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper_visible{overflow:visible}\n"] }]
556
+ }], ctorParameters: function () {
557
+ return [{ type: undefined, decorators: [{
558
+ type: Inject,
559
+ args: [TUI_ANIMATION_OPTIONS]
560
+ }] }, { type: TuiSheetService, decorators: [{
561
+ type: Inject,
562
+ args: [TuiSheetService]
563
+ }] }, { type: i1$2.Observable, decorators: [{
564
+ type: Inject,
565
+ args: [TUI_WINDOW_HEIGHT]
566
+ }] }, { type: i1$2.Observable, decorators: [{
567
+ type: Self
568
+ }, {
569
+ type: Inject,
570
+ args: [TuiDestroyService]
571
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
572
+ type: Inject,
573
+ args: [ChangeDetectorRef]
574
+ }] }];
575
+ } });
576
+
577
+ /**
578
+ * @deprecated: use {@link TuiSheetDialogDirective}
579
+ * drop in v4.0
580
+ */
581
+ class TuiSheetDirective extends PolymorpheusTemplate {
582
+ set tuiSheet(open) {
583
+ this.open$.next(open);
584
+ }
585
+ constructor(cdr, templateRef, service) {
586
+ super(templateRef, cdr);
587
+ this.service = service;
588
+ this.open$ = new Subject();
589
+ this.options = {};
590
+ this.tuiSheetChange = this.open$.pipe(tuiIfMap(() => this.service.open(this, this.options).pipe(ignoreElements(), endWith(false))), share());
591
+ }
592
+ }
593
+ TuiSheetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDirective, deps: [{ token: ChangeDetectorRef }, { token: TemplateRef }, { token: TuiSheetService }], target: i0.ɵɵFactoryTarget.Directive });
594
+ TuiSheetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetDirective, selector: "ng-template[tuiSheet]", inputs: { options: ["tuiSheetOptions", "options"], tuiSheet: "tuiSheet" }, outputs: { tuiSheetChange: "tuiSheetChange" }, usesInheritance: true, ngImport: i0 });
595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDirective, decorators: [{
596
+ type: Directive,
597
+ args: [{
598
+ selector: 'ng-template[tuiSheet]',
599
+ }]
600
+ }], ctorParameters: function () {
601
+ return [{ type: i0.ChangeDetectorRef, decorators: [{
602
+ type: Inject,
603
+ args: [ChangeDetectorRef]
604
+ }] }, { type: i0.TemplateRef, decorators: [{
605
+ type: Inject,
606
+ args: [TemplateRef]
607
+ }] }, { type: TuiSheetService, decorators: [{
608
+ type: Inject,
609
+ args: [TuiSheetService]
610
+ }] }];
611
+ }, propDecorators: { options: [{
612
+ type: Input,
613
+ args: ['tuiSheetOptions']
614
+ }], tuiSheet: [{
615
+ type: Input
616
+ }], tuiSheetChange: [{
617
+ type: Output
618
+ }] } });
619
+
620
+ /**
621
+ * @deprecated: use {@link TuiSheetDialogModule}
622
+ * drop in v4.0
623
+ */
624
+ class TuiSheetModule {
625
+ }
626
+ TuiSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
627
+ TuiSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
628
+ TuiSheetComponent,
629
+ TuiSheetBarComponent,
630
+ TuiSheetHeadingComponent,
631
+ TuiSheetTopDirective,
632
+ TuiSheetDirective,
633
+ TuiSheetWrapperDirective,
634
+ TuiSheetCloseDirective,
635
+ TuiSheetStopDirective], imports: [CommonModule,
636
+ PolymorpheusModule,
637
+ TuiLetModule,
638
+ TuiButtonModule,
639
+ TuiOverscrollModule,
640
+ TuiScrollbarModule], exports: [TuiSheetsHostComponent,
641
+ TuiSheetComponent,
642
+ TuiSheetHeadingComponent,
643
+ TuiSheetDirective] });
644
+ TuiSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetModule, imports: [CommonModule,
645
+ PolymorpheusModule,
646
+ TuiLetModule,
647
+ TuiButtonModule,
648
+ TuiOverscrollModule,
649
+ TuiScrollbarModule] });
650
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetModule, decorators: [{
651
+ type: NgModule,
652
+ args: [{
653
+ imports: [
654
+ CommonModule,
655
+ PolymorpheusModule,
656
+ TuiLetModule,
657
+ TuiButtonModule,
658
+ TuiOverscrollModule,
659
+ TuiScrollbarModule,
660
+ ],
661
+ declarations: [
662
+ TuiSheetsHostComponent,
663
+ TuiSheetComponent,
664
+ TuiSheetBarComponent,
665
+ TuiSheetHeadingComponent,
666
+ TuiSheetTopDirective,
667
+ TuiSheetDirective,
668
+ TuiSheetWrapperDirective,
669
+ TuiSheetCloseDirective,
670
+ TuiSheetStopDirective,
671
+ ],
672
+ exports: [
673
+ TuiSheetsHostComponent,
674
+ TuiSheetComponent,
675
+ TuiSheetHeadingComponent,
676
+ TuiSheetDirective,
677
+ ],
678
+ schemas: [NO_ERRORS_SCHEMA],
679
+ }]
680
+ }] });
681
+
682
+ /**
683
+ * Generated bundle index. Do not edit.
684
+ */
685
+
686
+ export { TUI_SHEET_CLOSE, TUI_SHEET_DEFAULT_OPTIONS, TUI_SHEET_ID, TUI_SHEET_OPTIONS, TUI_SHEET_PROVIDERS, TuiSheetBarComponent, TuiSheetCloseDirective, TuiSheetComponent, TuiSheetDirective, TuiSheetHeadingComponent, TuiSheetModule, TuiSheetService, TuiSheetStopDirective, TuiSheetTopDirective, TuiSheetWrapperDirective, TuiSheetsHostComponent, fakeSmoothScroll, iosScrollFactory };
687
+ //# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.mjs.map