@taiga-ui/addon-mobile 3.58.0 → 3.59.0-canary.1c24449

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