@taiga-ui/addon-mobile 2.54.0 → 3.0.0-rc.0

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 (508) hide show
  1. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +69 -283
  2. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +538 -406
  4. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +417 -294
  6. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +437 -324
  8. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +878 -688
  10. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +374 -265
  12. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +374 -265
  14. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-mobile-components.umd.js +17 -31
  16. package/bundles/taiga-ui-addon-mobile-components.umd.js.map +1 -1
  17. package/bundles/taiga-ui-addon-mobile-const.umd.js +10 -255
  18. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +1 -1
  19. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +418 -305
  20. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +1 -1
  21. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +119 -325
  22. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +1 -1
  23. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +103 -314
  24. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +1 -1
  25. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +435 -315
  26. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +1 -1
  27. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +414 -298
  28. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +1 -1
  29. package/bundles/taiga-ui-addon-mobile-directives.umd.js +13 -23
  30. package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +1 -1
  31. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +2 -2
  32. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +1 -1
  33. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +405 -282
  34. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
  35. package/bundles/taiga-ui-addon-mobile-internal.umd.js +5 -7
  36. package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +1 -1
  37. package/bundles/taiga-ui-addon-mobile-tokens.umd.js +8 -4
  38. package/bundles/taiga-ui-addon-mobile-tokens.umd.js.map +1 -1
  39. package/bundles/taiga-ui-addon-mobile-types.umd.js +2 -2
  40. package/bundles/taiga-ui-addon-mobile-types.umd.js.map +1 -1
  41. package/bundles/taiga-ui-addon-mobile-utils.umd.js +8 -10
  42. package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +1 -1
  43. package/bundles/taiga-ui-addon-mobile.umd.js +24 -30
  44. package/bundles/taiga-ui-addon-mobile.umd.js.map +1 -1
  45. package/components/mobile-calendar/mobile-calendar.component.d.ts +21 -2
  46. package/components/mobile-calendar/mobile-calendar.module.d.ts +12 -0
  47. package/components/mobile-calendar/package.json +2 -5
  48. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +1 -0
  49. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +3 -0
  50. package/components/mobile-calendar-dialog/mobile-calendar-dialog.module.d.ts +6 -2
  51. package/components/mobile-calendar-dialog/package.json +2 -5
  52. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +1 -0
  53. package/components/mobile-dialog/mobile-dialog.component.d.ts +3 -0
  54. package/components/mobile-dialog/mobile-dialog.module.d.ts +9 -0
  55. package/components/mobile-dialog/mobile-dialog.service.d.ts +4 -1
  56. package/components/mobile-dialog/package.json +2 -5
  57. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +1 -0
  58. package/components/package.json +2 -5
  59. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +3 -0
  60. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +3 -0
  61. package/components/pull-to-refresh/package.json +2 -5
  62. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +3 -0
  63. package/components/pull-to-refresh/pull-to-refresh.module.d.ts +10 -0
  64. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +1 -0
  65. package/components/sheet/components/sheet/sheet.component.d.ts +5 -2
  66. package/components/sheet/components/sheet/sheet.providers.d.ts +1 -5
  67. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +5 -2
  68. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +3 -0
  69. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +3 -0
  70. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +3 -0
  71. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +3 -0
  72. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +5 -2
  73. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +3 -0
  74. package/components/sheet/package.json +2 -5
  75. package/components/sheet/sheet-options.d.ts +1 -1
  76. package/components/sheet/sheet-tokens.d.ts +5 -0
  77. package/components/sheet/sheet.d.ts +4 -0
  78. package/components/sheet/sheet.directive.d.ts +3 -0
  79. package/components/sheet/sheet.module.d.ts +17 -0
  80. package/components/sheet/sheet.service.d.ts +3 -0
  81. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +1 -0
  82. package/components/taiga-ui-addon-mobile-components.d.ts +1 -0
  83. package/components/theme-android/package.json +2 -5
  84. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +1 -0
  85. package/components/theme-android/theme-android.component.d.ts +3 -0
  86. package/components/theme-android/theme-android.module.d.ts +5 -0
  87. package/components/theme-ios/package.json +2 -5
  88. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +1 -0
  89. package/components/theme-ios/theme-ios.component.d.ts +3 -0
  90. package/components/theme-ios/theme-ios.module.d.ts +5 -0
  91. package/const/package.json +2 -5
  92. package/const/taiga-ui-addon-mobile-const.d.ts +1 -0
  93. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +3 -0
  94. package/directives/elastic-sticky/elastic-sticky.module.d.ts +5 -0
  95. package/directives/elastic-sticky/elastic-sticky.service.d.ts +3 -0
  96. package/directives/elastic-sticky/package.json +2 -5
  97. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +1 -0
  98. package/directives/mobile-tabs/mobile-tabs.component.d.ts +3 -0
  99. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +3 -0
  100. package/directives/mobile-tabs/mobile-tabs.module.d.ts +6 -0
  101. package/directives/mobile-tabs/package.json +2 -5
  102. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +1 -0
  103. package/directives/package.json +2 -5
  104. package/directives/ripple/package.json +2 -5
  105. package/directives/ripple/ripple-styles.component.d.ts +3 -0
  106. package/directives/ripple/ripple.directive.d.ts +3 -0
  107. package/directives/ripple/ripple.module.d.ts +6 -0
  108. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +1 -1
  109. package/directives/sidebar/package.json +2 -5
  110. package/directives/sidebar/sidebar.component.d.ts +3 -0
  111. package/directives/sidebar/sidebar.directive.d.ts +5 -2
  112. package/directives/sidebar/sidebar.module.d.ts +8 -0
  113. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +1 -0
  114. package/directives/taiga-ui-addon-mobile-directives.d.ts +1 -0
  115. package/directives/touchable/package.json +2 -5
  116. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +1 -0
  117. package/directives/touchable/touchable.directive.d.ts +6 -3
  118. package/directives/touchable/touchable.module.d.ts +5 -0
  119. package/esm2015/components/index.js +1 -1
  120. package/esm2015/components/mobile-calendar/index.js +1 -1
  121. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +83 -63
  122. package/esm2015/components/mobile-calendar/mobile-calendar.const.js +1 -1
  123. package/esm2015/components/mobile-calendar/mobile-calendar.module.js +34 -13
  124. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +2 -2
  125. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +2 -2
  126. package/esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +1 -1
  127. package/esm2015/components/mobile-calendar-dialog/index.js +1 -1
  128. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +19 -17
  129. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +27 -21
  130. package/esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +1 -1
  131. package/esm2015/components/mobile-dialog/index.js +2 -1
  132. package/esm2015/components/mobile-dialog/mobile-dialog-options.js +2 -1
  133. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +28 -22
  134. package/esm2015/components/mobile-dialog/mobile-dialog.module.js +29 -20
  135. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +13 -14
  136. package/esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  137. package/esm2015/components/pull-to-refresh/index.js +1 -1
  138. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +21 -19
  139. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +19 -16
  140. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +31 -24
  141. package/esm2015/components/pull-to-refresh/pull-to-refresh.module.js +21 -16
  142. package/esm2015/components/pull-to-refresh/pull-to-refresh.providers.js +3 -3
  143. package/esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -1
  144. package/esm2015/components/sheet/components/sheet/sheet.component.js +67 -55
  145. package/esm2015/components/sheet/components/sheet/sheet.providers.js +10 -10
  146. package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +29 -26
  147. package/esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js +31 -25
  148. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +33 -23
  149. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +36 -29
  150. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +33 -28
  151. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +36 -31
  152. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +38 -36
  153. package/esm2015/components/sheet/index.js +2 -1
  154. package/esm2015/components/sheet/ios.hacks.js +9 -9
  155. package/esm2015/components/sheet/sheet-options.js +5 -6
  156. package/esm2015/components/sheet/sheet-tokens.js +5 -0
  157. package/esm2015/components/sheet/sheet.directive.js +30 -23
  158. package/esm2015/components/sheet/sheet.js +2 -1
  159. package/esm2015/components/sheet/sheet.module.js +55 -29
  160. package/esm2015/components/sheet/sheet.service.js +14 -16
  161. package/esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js +1 -1
  162. package/esm2015/components/taiga-ui-addon-mobile-components.js +1 -1
  163. package/esm2015/components/theme-android/index.js +1 -1
  164. package/esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +1 -1
  165. package/esm2015/components/theme-android/theme-android.component.js +16 -14
  166. package/esm2015/components/theme-android/theme-android.module.js +14 -11
  167. package/esm2015/components/theme-ios/index.js +1 -1
  168. package/esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +1 -1
  169. package/esm2015/components/theme-ios/theme-ios.component.js +16 -14
  170. package/esm2015/components/theme-ios/theme-ios.module.js +14 -11
  171. package/esm2015/const/index.js +1 -1
  172. package/esm2015/const/mobile-alert-options.js +2 -2
  173. package/esm2015/const/taiga-ui-addon-mobile-const.js +1 -1
  174. package/esm2015/directives/elastic-sticky/elastic-sticky.directive.js +20 -19
  175. package/esm2015/directives/elastic-sticky/elastic-sticky.module.js +14 -11
  176. package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +29 -24
  177. package/esm2015/directives/elastic-sticky/index.js +1 -1
  178. package/esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +1 -1
  179. package/esm2015/directives/index.js +1 -1
  180. package/esm2015/directives/mobile-tabs/index.js +1 -1
  181. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +14 -12
  182. package/esm2015/directives/mobile-tabs/mobile-tabs.directive.js +38 -29
  183. package/esm2015/directives/mobile-tabs/mobile-tabs.module.js +15 -12
  184. package/esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +1 -1
  185. package/esm2015/directives/ripple/index.js +1 -1
  186. package/esm2015/directives/ripple/ripple-styles.component.js +14 -12
  187. package/esm2015/directives/ripple/ripple.directive.js +41 -34
  188. package/esm2015/directives/ripple/ripple.module.js +15 -12
  189. package/esm2015/directives/ripple/ripple.providers.js +10 -10
  190. package/esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +1 -2
  191. package/esm2015/directives/sidebar/index.js +1 -1
  192. package/esm2015/directives/sidebar/sidebar.component.js +34 -29
  193. package/esm2015/directives/sidebar/sidebar.directive.js +39 -34
  194. package/esm2015/directives/sidebar/sidebar.module.js +16 -13
  195. package/esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +1 -1
  196. package/esm2015/directives/taiga-ui-addon-mobile-directives.js +1 -1
  197. package/esm2015/directives/touchable/index.js +1 -1
  198. package/esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +1 -1
  199. package/esm2015/directives/touchable/touchable.directive.js +49 -39
  200. package/esm2015/directives/touchable/touchable.module.js +14 -11
  201. package/esm2015/index.js +3 -2
  202. package/esm2015/interfaces/index.js +2 -1
  203. package/esm2015/interfaces/mobile-alert-data.js +2 -1
  204. package/esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js +2 -1
  205. package/esm2015/internal/index.js +1 -1
  206. package/esm2015/internal/primitive-calendar-mobile/index.js +1 -1
  207. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +28 -23
  208. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +24 -13
  209. package/esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +1 -1
  210. package/esm2015/internal/taiga-ui-addon-mobile-internal.js +1 -1
  211. package/esm2015/taiga-ui-addon-mobile.js +1 -1
  212. package/esm2015/tokens/index.js +1 -1
  213. package/esm2015/tokens/loaded.js +2 -2
  214. package/esm2015/tokens/taiga-ui-addon-mobile-tokens.js +1 -1
  215. package/esm2015/types/index.js +2 -1
  216. package/esm2015/types/taiga-ui-addon-mobile-types.js +2 -1
  217. package/esm2015/types/touch-mode.js +2 -1
  218. package/esm2015/utils/find-touch-index.js +2 -7
  219. package/esm2015/utils/index.js +1 -1
  220. package/esm2015/utils/taiga-ui-addon-mobile-utils.js +1 -1
  221. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +45 -35
  222. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
  223. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +117 -74
  224. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  225. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +68 -50
  226. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  227. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +84 -68
  228. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
  229. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +444 -366
  230. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  231. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js +27 -20
  232. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  233. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js +27 -20
  234. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  235. package/fesm2015/taiga-ui-addon-mobile-components.js.map +1 -1
  236. package/fesm2015/taiga-ui-addon-mobile-const.js +1 -1
  237. package/fesm2015/taiga-ui-addon-mobile-const.js.map +1 -1
  238. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js +58 -47
  239. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
  240. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +63 -46
  241. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +1 -1
  242. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js +76 -61
  243. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
  244. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +82 -68
  245. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
  246. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js +61 -46
  247. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
  248. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +1 -1
  249. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +1 -1
  250. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +50 -32
  251. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  252. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +1 -1
  253. package/fesm2015/taiga-ui-addon-mobile-tokens.js +1 -1
  254. package/fesm2015/taiga-ui-addon-mobile-tokens.js.map +1 -1
  255. package/fesm2015/taiga-ui-addon-mobile-types.js.map +1 -1
  256. package/fesm2015/taiga-ui-addon-mobile-utils.js +2 -7
  257. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +1 -1
  258. package/fesm2015/taiga-ui-addon-mobile.js +2 -1
  259. package/fesm2015/taiga-ui-addon-mobile.js.map +1 -1
  260. package/index.d.ts +0 -1
  261. package/interfaces/package.json +2 -5
  262. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +1 -0
  263. package/internal/package.json +2 -5
  264. package/internal/primitive-calendar-mobile/package.json +2 -5
  265. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +3 -0
  266. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.d.ts +8 -0
  267. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +1 -0
  268. package/internal/taiga-ui-addon-mobile-internal.d.ts +1 -0
  269. package/package.json +12 -15
  270. package/taiga-ui-addon-mobile.d.ts +1 -0
  271. package/tokens/package.json +2 -5
  272. package/tokens/taiga-ui-addon-mobile-tokens.d.ts +1 -0
  273. package/types/package.json +2 -5
  274. package/types/taiga-ui-addon-mobile-types.d.ts +1 -0
  275. package/types/touch-mode.d.ts +1 -1
  276. package/utils/find-touch-index.d.ts +1 -5
  277. package/utils/package.json +2 -5
  278. package/utils/taiga-ui-addon-mobile-utils.d.ts +1 -0
  279. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js +0 -2
  280. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js.map +0 -1
  281. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js +0 -2
  282. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +0 -1
  283. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js +0 -2
  284. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js.map +0 -1
  285. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js +0 -2
  286. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js.map +0 -1
  287. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js +0 -2
  288. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +0 -1
  289. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js +0 -2
  290. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js.map +0 -1
  291. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js +0 -2
  292. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js.map +0 -1
  293. package/bundles/taiga-ui-addon-mobile-components.umd.min.js +0 -2
  294. package/bundles/taiga-ui-addon-mobile-components.umd.min.js.map +0 -1
  295. package/bundles/taiga-ui-addon-mobile-const.umd.min.js +0 -2
  296. package/bundles/taiga-ui-addon-mobile-const.umd.min.js.map +0 -1
  297. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js +0 -2
  298. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js.map +0 -1
  299. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js +0 -2
  300. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js.map +0 -1
  301. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js +0 -2
  302. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js.map +0 -1
  303. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js +0 -2
  304. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js.map +0 -1
  305. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js +0 -2
  306. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js.map +0 -1
  307. package/bundles/taiga-ui-addon-mobile-directives.umd.min.js +0 -2
  308. package/bundles/taiga-ui-addon-mobile-directives.umd.min.js.map +0 -1
  309. package/bundles/taiga-ui-addon-mobile-enums.umd.js +0 -20
  310. package/bundles/taiga-ui-addon-mobile-enums.umd.js.map +0 -1
  311. package/bundles/taiga-ui-addon-mobile-enums.umd.min.js +0 -2
  312. package/bundles/taiga-ui-addon-mobile-enums.umd.min.js.map +0 -1
  313. package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js +0 -2
  314. package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js.map +0 -1
  315. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js +0 -2
  316. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js.map +0 -1
  317. package/bundles/taiga-ui-addon-mobile-internal.umd.min.js +0 -2
  318. package/bundles/taiga-ui-addon-mobile-internal.umd.min.js.map +0 -1
  319. package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js +0 -2
  320. package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js.map +0 -1
  321. package/bundles/taiga-ui-addon-mobile-types.umd.min.js +0 -2
  322. package/bundles/taiga-ui-addon-mobile-types.umd.min.js.map +0 -1
  323. package/bundles/taiga-ui-addon-mobile-utils.umd.min.js +0 -2
  324. package/bundles/taiga-ui-addon-mobile-utils.umd.min.js.map +0 -1
  325. package/bundles/taiga-ui-addon-mobile.umd.min.js +0 -2
  326. package/bundles/taiga-ui-addon-mobile.umd.min.js.map +0 -1
  327. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +0 -1
  328. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.metadata.json +0 -1
  329. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.metadata.json +0 -1
  330. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +0 -1
  331. package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +0 -1
  332. package/components/taiga-ui-addon-mobile-components.metadata.json +0 -1
  333. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.metadata.json +0 -1
  334. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.metadata.json +0 -1
  335. package/const/taiga-ui-addon-mobile-const.metadata.json +0 -1
  336. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.metadata.json +0 -1
  337. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.metadata.json +0 -1
  338. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.metadata.json +0 -1
  339. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.metadata.json +0 -1
  340. package/directives/taiga-ui-addon-mobile-directives.metadata.json +0 -1
  341. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.metadata.json +0 -1
  342. package/enums/index.d.ts +0 -1
  343. package/enums/package.json +0 -13
  344. package/enums/taiga-ui-addon-mobile-enums.d.ts +0 -4
  345. package/enums/taiga-ui-addon-mobile-enums.metadata.json +0 -1
  346. package/enums/touch-mode.d.ts +0 -8
  347. package/esm2015/enums/index.js +0 -2
  348. package/esm2015/enums/taiga-ui-addon-mobile-enums.js +0 -5
  349. package/esm2015/enums/touch-mode.js +0 -10
  350. package/esm5/components/index.js +0 -8
  351. package/esm5/components/mobile-calendar/index.js +0 -6
  352. package/esm5/components/mobile-calendar/mobile-calendar.component.js +0 -295
  353. package/esm5/components/mobile-calendar/mobile-calendar.const.js +0 -25
  354. package/esm5/components/mobile-calendar/mobile-calendar.module.js +0 -34
  355. package/esm5/components/mobile-calendar/mobile-calendar.providers.js +0 -31
  356. package/esm5/components/mobile-calendar/mobile-calendar.strategy.js +0 -134
  357. package/esm5/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -5
  358. package/esm5/components/mobile-calendar-dialog/index.js +0 -3
  359. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -57
  360. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +0 -28
  361. package/esm5/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -5
  362. package/esm5/components/mobile-dialog/index.js +0 -4
  363. package/esm5/components/mobile-dialog/mobile-dialog-options.js +0 -1
  364. package/esm5/components/mobile-dialog/mobile-dialog.component.js +0 -34
  365. package/esm5/components/mobile-dialog/mobile-dialog.module.js +0 -31
  366. package/esm5/components/mobile-dialog/mobile-dialog.service.js +0 -34
  367. package/esm5/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -5
  368. package/esm5/components/pull-to-refresh/index.js +0 -6
  369. package/esm5/components/pull-to-refresh/loader-android/loader-android.component.js +0 -43
  370. package/esm5/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -41
  371. package/esm5/components/pull-to-refresh/pull-to-refresh.component.js +0 -56
  372. package/esm5/components/pull-to-refresh/pull-to-refresh.module.js +0 -26
  373. package/esm5/components/pull-to-refresh/pull-to-refresh.providers.js +0 -32
  374. package/esm5/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -5
  375. package/esm5/components/sheet/components/sheet/sheet.component.js +0 -150
  376. package/esm5/components/sheet/components/sheet/sheet.providers.js +0 -42
  377. package/esm5/components/sheet/components/sheet-bar/sheet-bar.component.js +0 -43
  378. package/esm5/components/sheet/components/sheet-heading/sheet-heading.component.js +0 -40
  379. package/esm5/components/sheet/components/sheets-host/sheets-host.component.js +0 -40
  380. package/esm5/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
  381. package/esm5/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -46
  382. package/esm5/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -56
  383. package/esm5/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -93
  384. package/esm5/components/sheet/index.js +0 -15
  385. package/esm5/components/sheet/ios.hacks.js +0 -42
  386. package/esm5/components/sheet/sheet-options.js +0 -16
  387. package/esm5/components/sheet/sheet.directive.js +0 -58
  388. package/esm5/components/sheet/sheet.js +0 -1
  389. package/esm5/components/sheet/sheet.module.js +0 -52
  390. package/esm5/components/sheet/sheet.service.js +0 -42
  391. package/esm5/components/sheet/taiga-ui-addon-mobile-components-sheet.js +0 -5
  392. package/esm5/components/taiga-ui-addon-mobile-components.js +0 -5
  393. package/esm5/components/theme-android/index.js +0 -3
  394. package/esm5/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +0 -5
  395. package/esm5/components/theme-android/theme-android.component.js +0 -22
  396. package/esm5/components/theme-android/theme-android.module.js +0 -16
  397. package/esm5/components/theme-ios/index.js +0 -3
  398. package/esm5/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +0 -5
  399. package/esm5/components/theme-ios/theme-ios.component.js +0 -22
  400. package/esm5/components/theme-ios/theme-ios.module.js +0 -16
  401. package/esm5/const/index.js +0 -2
  402. package/esm5/const/mobile-alert-options.js +0 -8
  403. package/esm5/const/taiga-ui-addon-mobile-const.js +0 -5
  404. package/esm5/directives/elastic-sticky/elastic-sticky.directive.js +0 -26
  405. package/esm5/directives/elastic-sticky/elastic-sticky.module.js +0 -16
  406. package/esm5/directives/elastic-sticky/elastic-sticky.service.js +0 -58
  407. package/esm5/directives/elastic-sticky/index.js +0 -4
  408. package/esm5/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -5
  409. package/esm5/directives/index.js +0 -6
  410. package/esm5/directives/mobile-tabs/index.js +0 -4
  411. package/esm5/directives/mobile-tabs/mobile-tabs.component.js +0 -16
  412. package/esm5/directives/mobile-tabs/mobile-tabs.directive.js +0 -51
  413. package/esm5/directives/mobile-tabs/mobile-tabs.module.js +0 -18
  414. package/esm5/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -5
  415. package/esm5/directives/ripple/index.js +0 -4
  416. package/esm5/directives/ripple/ripple-styles.component.js +0 -16
  417. package/esm5/directives/ripple/ripple.directive.js +0 -63
  418. package/esm5/directives/ripple/ripple.module.js +0 -18
  419. package/esm5/directives/ripple/ripple.providers.js +0 -54
  420. package/esm5/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +0 -6
  421. package/esm5/directives/sidebar/index.js +0 -4
  422. package/esm5/directives/sidebar/sidebar.component.js +0 -68
  423. package/esm5/directives/sidebar/sidebar.directive.js +0 -78
  424. package/esm5/directives/sidebar/sidebar.module.js +0 -21
  425. package/esm5/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +0 -5
  426. package/esm5/directives/taiga-ui-addon-mobile-directives.js +0 -5
  427. package/esm5/directives/touchable/index.js +0 -3
  428. package/esm5/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +0 -5
  429. package/esm5/directives/touchable/touchable.directive.js +0 -90
  430. package/esm5/directives/touchable/touchable.module.js +0 -16
  431. package/esm5/enums/index.js +0 -2
  432. package/esm5/enums/taiga-ui-addon-mobile-enums.js +0 -5
  433. package/esm5/enums/touch-mode.js +0 -10
  434. package/esm5/index.js +0 -7
  435. package/esm5/interfaces/index.js +0 -1
  436. package/esm5/interfaces/mobile-alert-data.js +0 -1
  437. package/esm5/interfaces/taiga-ui-addon-mobile-interfaces.js +0 -4
  438. package/esm5/internal/index.js +0 -2
  439. package/esm5/internal/primitive-calendar-mobile/index.js +0 -3
  440. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -37
  441. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +0 -28
  442. package/esm5/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -5
  443. package/esm5/internal/taiga-ui-addon-mobile-internal.js +0 -5
  444. package/esm5/taiga-ui-addon-mobile.js +0 -5
  445. package/esm5/tokens/index.js +0 -2
  446. package/esm5/tokens/loaded.js +0 -6
  447. package/esm5/tokens/taiga-ui-addon-mobile-tokens.js +0 -5
  448. package/esm5/types/index.js +0 -1
  449. package/esm5/types/taiga-ui-addon-mobile-types.js +0 -4
  450. package/esm5/types/touch-mode.js +0 -1
  451. package/esm5/utils/find-touch-index.js +0 -15
  452. package/esm5/utils/index.js +0 -2
  453. package/esm5/utils/taiga-ui-addon-mobile-utils.js +0 -5
  454. package/fesm2015/taiga-ui-addon-mobile-enums.js +0 -16
  455. package/fesm2015/taiga-ui-addon-mobile-enums.js.map +0 -1
  456. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -87
  457. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  458. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -502
  459. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  460. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -91
  461. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  462. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -185
  463. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  464. package/fesm5/taiga-ui-addon-mobile-components-sheet.js +0 -680
  465. package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  466. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js +0 -40
  467. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  468. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js +0 -40
  469. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  470. package/fesm5/taiga-ui-addon-mobile-components.js +0 -12
  471. package/fesm5/taiga-ui-addon-mobile-components.js.map +0 -1
  472. package/fesm5/taiga-ui-addon-mobile-const.js +0 -15
  473. package/fesm5/taiga-ui-addon-mobile-const.js.map +0 -1
  474. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -97
  475. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  476. package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -82
  477. package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  478. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js +0 -143
  479. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  480. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js +0 -161
  481. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  482. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js +0 -108
  483. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  484. package/fesm5/taiga-ui-addon-mobile-directives.js +0 -10
  485. package/fesm5/taiga-ui-addon-mobile-directives.js.map +0 -1
  486. package/fesm5/taiga-ui-addon-mobile-enums.js +0 -16
  487. package/fesm5/taiga-ui-addon-mobile-enums.js.map +0 -1
  488. package/fesm5/taiga-ui-addon-mobile-interfaces.js +0 -4
  489. package/fesm5/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  490. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -65
  491. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  492. package/fesm5/taiga-ui-addon-mobile-internal.js +0 -6
  493. package/fesm5/taiga-ui-addon-mobile-internal.js.map +0 -1
  494. package/fesm5/taiga-ui-addon-mobile-tokens.js +0 -13
  495. package/fesm5/taiga-ui-addon-mobile-tokens.js.map +0 -1
  496. package/fesm5/taiga-ui-addon-mobile-types.js +0 -4
  497. package/fesm5/taiga-ui-addon-mobile-types.js.map +0 -1
  498. package/fesm5/taiga-ui-addon-mobile-utils.js +0 -21
  499. package/fesm5/taiga-ui-addon-mobile-utils.js.map +0 -1
  500. package/fesm5/taiga-ui-addon-mobile.js +0 -11
  501. package/fesm5/taiga-ui-addon-mobile.js.map +0 -1
  502. package/interfaces/taiga-ui-addon-mobile-interfaces.metadata.json +0 -1
  503. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json +0 -1
  504. package/internal/taiga-ui-addon-mobile-internal.metadata.json +0 -1
  505. package/taiga-ui-addon-mobile.metadata.json +0 -1
  506. package/tokens/taiga-ui-addon-mobile-tokens.metadata.json +0 -1
  507. package/types/taiga-ui-addon-mobile-types.metadata.json +0 -1
  508. package/utils/taiga-ui-addon-mobile-utils.metadata.json +0 -1
@@ -1,298 +1,405 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/sheet', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs', 'rxjs/operators', '@angular/common', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus'], factory) :
4
- (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui']['addon-mobile'] = global['taiga-ui']['addon-mobile'] || {}, global['taiga-ui']['addon-mobile'].components = global['taiga-ui']['addon-mobile'].components || {}, global['taiga-ui']['addon-mobile'].components.sheet = {}), global.ng.core, global.cdk, global.core$1, global.kit, global.rxjs, global.rxjs.operators, global.ng.common, global.common$1, global.ngPolymorpheus));
5
- }(this, (function (exports, core, cdk, core$1, kit, rxjs, operators, common, common$1, ngPolymorpheus) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs/operators'), require('rxjs'), require('@angular/common'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/sheet', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs/operators', 'rxjs', '@angular/common', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = global["taiga-ui"]["addon-mobile"] || {}, global["taiga-ui"]["addon-mobile"].components = global["taiga-ui"]["addon-mobile"].components || {}, global["taiga-ui"]["addon-mobile"].components.sheet = {}), global.ng.core, global.i3, global.i1$1, global.kit, global.rxjs.operators, global.rxjs, global.ng.common, global.common, global.i5));
5
+ })(this, (function (exports, i0, i3, i1$1, kit, operators, i1, i2, common, i5) { 'use strict';
6
6
 
7
- /******************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- if (typeof b !== "function" && b !== null)
32
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
- extendStatics(d, b);
34
- function __() { this.constructor = d; }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
-
38
- var __assign = function() {
39
- __assign = Object.assign || function __assign(t) {
40
- for (var s, i = 1, n = arguments.length; i < n; i++) {
41
- s = arguments[i];
42
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
43
- }
44
- return t;
45
- };
46
- return __assign.apply(this, arguments);
47
- };
48
-
49
- function __rest(s, e) {
50
- var t = {};
51
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
- t[p] = s[p];
53
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
- t[p[i]] = s[p[i]];
57
- }
58
- return t;
59
- }
60
-
61
- function __decorate(decorators, target, key, desc) {
62
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
64
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
65
- return c > 3 && r && Object.defineProperty(target, key, r), r;
66
- }
67
-
68
- function __param(paramIndex, decorator) {
69
- return function (target, key) { decorator(target, key, paramIndex); }
70
- }
71
-
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
74
- }
75
-
76
- function __awaiter(thisArg, _arguments, P, generator) {
77
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
- return new (P || (P = Promise))(function (resolve, reject) {
79
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
80
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
81
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
82
- step((generator = generator.apply(thisArg, _arguments || [])).next());
83
- });
84
- }
85
-
86
- function __generator(thisArg, body) {
87
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
88
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
89
- function verb(n) { return function (v) { return step([n, v]); }; }
90
- function step(op) {
91
- if (f) throw new TypeError("Generator is already executing.");
92
- while (_) try {
93
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
94
- if (y = 0, t) op = [op[0] & 2, t.value];
95
- switch (op[0]) {
96
- case 0: case 1: t = op; break;
97
- case 4: _.label++; return { value: op[1], done: false };
98
- case 5: _.label++; y = op[1]; op = [0]; continue;
99
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
100
- default:
101
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
102
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
103
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
104
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
105
- if (t[2]) _.ops.pop();
106
- _.trys.pop(); continue;
107
- }
108
- op = body.call(thisArg, _);
109
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
110
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
111
- }
112
- }
113
-
114
- var __createBinding = Object.create ? (function(o, m, k, k2) {
115
- if (k2 === undefined) k2 = k;
116
- var desc = Object.getOwnPropertyDescriptor(m, k);
117
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
118
- desc = { enumerable: true, get: function() { return m[k]; } };
119
- }
120
- Object.defineProperty(o, k2, desc);
121
- }) : (function(o, m, k, k2) {
122
- if (k2 === undefined) k2 = k;
123
- o[k2] = m[k];
124
- });
125
-
126
- function __exportStar(m, o) {
127
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
128
- }
129
-
130
- function __values(o) {
131
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
132
- if (m) return m.call(o);
133
- if (o && typeof o.length === "number") return {
134
- next: function () {
135
- if (o && i >= o.length) o = void 0;
136
- return { value: o && o[i++], done: !o };
137
- }
138
- };
139
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
140
- }
141
-
142
- function __read(o, n) {
143
- var m = typeof Symbol === "function" && o[Symbol.iterator];
144
- if (!m) return o;
145
- var i = m.call(o), r, ar = [], e;
146
- try {
147
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
148
- }
149
- catch (error) { e = { error: error }; }
150
- finally {
151
- try {
152
- if (r && !r.done && (m = i["return"])) m.call(i);
153
- }
154
- finally { if (e) throw e.error; }
155
- }
156
- return ar;
157
- }
158
-
159
- /** @deprecated */
160
- function __spread() {
161
- for (var ar = [], i = 0; i < arguments.length; i++)
162
- ar = ar.concat(__read(arguments[i]));
163
- return ar;
164
- }
165
-
166
- /** @deprecated */
167
- function __spreadArrays() {
168
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
169
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
170
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
171
- r[k] = a[j];
172
- return r;
173
- }
174
-
175
- function __spreadArray(to, from, pack) {
176
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
177
- if (ar || !(i in from)) {
178
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
179
- ar[i] = from[i];
180
- }
181
- }
182
- return to.concat(ar || Array.prototype.slice.call(from));
183
- }
184
-
185
- function __await(v) {
186
- return this instanceof __await ? (this.v = v, this) : new __await(v);
187
- }
188
-
189
- function __asyncGenerator(thisArg, _arguments, generator) {
190
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
191
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
192
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
193
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
194
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
195
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
196
- function fulfill(value) { resume("next", value); }
197
- function reject(value) { resume("throw", value); }
198
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
199
- }
200
-
201
- function __asyncDelegator(o) {
202
- var i, p;
203
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
204
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
205
- }
206
-
207
- function __asyncValues(o) {
208
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
209
- var m = o[Symbol.asyncIterator], i;
210
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
211
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
212
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
213
- }
214
-
215
- function __makeTemplateObject(cooked, raw) {
216
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
217
- return cooked;
218
- };
219
-
220
- var __setModuleDefault = Object.create ? (function(o, v) {
221
- Object.defineProperty(o, "default", { enumerable: true, value: v });
222
- }) : function(o, v) {
223
- o["default"] = v;
224
- };
225
-
226
- function __importStar(mod) {
227
- if (mod && mod.__esModule) return mod;
228
- var result = {};
229
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
230
- __setModuleDefault(result, mod);
231
- return result;
232
- }
233
-
234
- function __importDefault(mod) {
235
- return (mod && mod.__esModule) ? mod : { default: mod };
236
- }
237
-
238
- function __classPrivateFieldGet(receiver, state, kind, f) {
239
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
240
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
241
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
242
- }
243
-
244
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
245
- if (kind === "m") throw new TypeError("Private method is not writable");
246
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
247
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
248
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
249
- }
250
-
251
- function __classPrivateFieldIn(state, receiver) {
252
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
253
- return typeof state === "function" ? receiver === state : state.has(receiver);
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
28
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
29
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
+
32
+ /******************************************************************************
33
+ Copyright (c) Microsoft Corporation.
34
+
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
+ PERFORMANCE OF THIS SOFTWARE.
45
+ ***************************************************************************** */
46
+ /* global Reflect, Promise */
47
+ var extendStatics = function (d, b) {
48
+ extendStatics = Object.setPrototypeOf ||
49
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
+ function (d, b) { for (var p in b)
51
+ if (Object.prototype.hasOwnProperty.call(b, p))
52
+ d[p] = b[p]; };
53
+ return extendStatics(d, b);
54
+ };
55
+ function __extends(d, b) {
56
+ if (typeof b !== "function" && b !== null)
57
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
+ extendStatics(d, b);
59
+ function __() { this.constructor = d; }
60
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
+ }
62
+ var __assign = function () {
63
+ __assign = Object.assign || function __assign(t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+ for (var p in s)
67
+ if (Object.prototype.hasOwnProperty.call(s, p))
68
+ t[p] = s[p];
69
+ }
70
+ return t;
71
+ };
72
+ return __assign.apply(this, arguments);
73
+ };
74
+ function __rest(s, e) {
75
+ var t = {};
76
+ for (var p in s)
77
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
+ t[p] = s[p];
79
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
+ t[p[i]] = s[p[i]];
83
+ }
84
+ return t;
85
+ }
86
+ function __decorate(decorators, target, key, desc) {
87
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
+ r = Reflect.decorate(decorators, target, key, desc);
90
+ else
91
+ for (var i = decorators.length - 1; i >= 0; i--)
92
+ if (d = decorators[i])
93
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
95
+ }
96
+ function __param(paramIndex, decorator) {
97
+ return function (target, key) { decorator(target, key, paramIndex); };
98
+ }
99
+ function __metadata(metadataKey, metadataValue) {
100
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
101
+ return Reflect.metadata(metadataKey, metadataValue);
102
+ }
103
+ function __awaiter(thisArg, _arguments, P, generator) {
104
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
105
+ return new (P || (P = Promise))(function (resolve, reject) {
106
+ function fulfilled(value) { try {
107
+ step(generator.next(value));
108
+ }
109
+ catch (e) {
110
+ reject(e);
111
+ } }
112
+ function rejected(value) { try {
113
+ step(generator["throw"](value));
114
+ }
115
+ catch (e) {
116
+ reject(e);
117
+ } }
118
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
119
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
120
+ });
121
+ }
122
+ function __generator(thisArg, body) {
123
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
124
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
125
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
126
+ function verb(n) { return function (v) { return step([n, v]); }; }
127
+ function step(op) {
128
+ if (f)
129
+ throw new TypeError("Generator is already executing.");
130
+ while (_)
131
+ try {
132
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
133
+ return t;
134
+ if (y = 0, t)
135
+ op = [op[0] & 2, t.value];
136
+ switch (op[0]) {
137
+ case 0:
138
+ case 1:
139
+ t = op;
140
+ break;
141
+ case 4:
142
+ _.label++;
143
+ return { value: op[1], done: false };
144
+ case 5:
145
+ _.label++;
146
+ y = op[1];
147
+ op = [0];
148
+ continue;
149
+ case 7:
150
+ op = _.ops.pop();
151
+ _.trys.pop();
152
+ continue;
153
+ default:
154
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
155
+ _ = 0;
156
+ continue;
157
+ }
158
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
159
+ _.label = op[1];
160
+ break;
161
+ }
162
+ if (op[0] === 6 && _.label < t[1]) {
163
+ _.label = t[1];
164
+ t = op;
165
+ break;
166
+ }
167
+ if (t && _.label < t[2]) {
168
+ _.label = t[2];
169
+ _.ops.push(op);
170
+ break;
171
+ }
172
+ if (t[2])
173
+ _.ops.pop();
174
+ _.trys.pop();
175
+ continue;
176
+ }
177
+ op = body.call(thisArg, _);
178
+ }
179
+ catch (e) {
180
+ op = [6, e];
181
+ y = 0;
182
+ }
183
+ finally {
184
+ f = t = 0;
185
+ }
186
+ if (op[0] & 5)
187
+ throw op[1];
188
+ return { value: op[0] ? op[1] : void 0, done: true };
189
+ }
190
+ }
191
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
192
+ if (k2 === undefined)
193
+ k2 = k;
194
+ var desc = Object.getOwnPropertyDescriptor(m, k);
195
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
196
+ desc = { enumerable: true, get: function () { return m[k]; } };
197
+ }
198
+ Object.defineProperty(o, k2, desc);
199
+ }) : (function (o, m, k, k2) {
200
+ if (k2 === undefined)
201
+ k2 = k;
202
+ o[k2] = m[k];
203
+ });
204
+ function __exportStar(m, o) {
205
+ for (var p in m)
206
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
207
+ __createBinding(o, m, p);
208
+ }
209
+ function __values(o) {
210
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
211
+ if (m)
212
+ return m.call(o);
213
+ if (o && typeof o.length === "number")
214
+ return {
215
+ next: function () {
216
+ if (o && i >= o.length)
217
+ o = void 0;
218
+ return { value: o && o[i++], done: !o };
219
+ }
220
+ };
221
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
222
+ }
223
+ function __read(o, n) {
224
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
225
+ if (!m)
226
+ return o;
227
+ var i = m.call(o), r, ar = [], e;
228
+ try {
229
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
230
+ ar.push(r.value);
231
+ }
232
+ catch (error) {
233
+ e = { error: error };
234
+ }
235
+ finally {
236
+ try {
237
+ if (r && !r.done && (m = i["return"]))
238
+ m.call(i);
239
+ }
240
+ finally {
241
+ if (e)
242
+ throw e.error;
243
+ }
244
+ }
245
+ return ar;
246
+ }
247
+ /** @deprecated */
248
+ function __spread() {
249
+ for (var ar = [], i = 0; i < arguments.length; i++)
250
+ ar = ar.concat(__read(arguments[i]));
251
+ return ar;
252
+ }
253
+ /** @deprecated */
254
+ function __spreadArrays() {
255
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
+ s += arguments[i].length;
257
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
258
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
259
+ r[k] = a[j];
260
+ return r;
261
+ }
262
+ function __spreadArray(to, from, pack) {
263
+ if (pack || arguments.length === 2)
264
+ for (var i = 0, l = from.length, ar; i < l; i++) {
265
+ if (ar || !(i in from)) {
266
+ if (!ar)
267
+ ar = Array.prototype.slice.call(from, 0, i);
268
+ ar[i] = from[i];
269
+ }
270
+ }
271
+ return to.concat(ar || Array.prototype.slice.call(from));
272
+ }
273
+ function __await(v) {
274
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
275
+ }
276
+ function __asyncGenerator(thisArg, _arguments, generator) {
277
+ if (!Symbol.asyncIterator)
278
+ throw new TypeError("Symbol.asyncIterator is not defined.");
279
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
280
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
281
+ function verb(n) { if (g[n])
282
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
283
+ function resume(n, v) { try {
284
+ step(g[n](v));
285
+ }
286
+ catch (e) {
287
+ settle(q[0][3], e);
288
+ } }
289
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
290
+ function fulfill(value) { resume("next", value); }
291
+ function reject(value) { resume("throw", value); }
292
+ function settle(f, v) { if (f(v), q.shift(), q.length)
293
+ resume(q[0][0], q[0][1]); }
294
+ }
295
+ function __asyncDelegator(o) {
296
+ var i, p;
297
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
298
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
299
+ }
300
+ function __asyncValues(o) {
301
+ if (!Symbol.asyncIterator)
302
+ throw new TypeError("Symbol.asyncIterator is not defined.");
303
+ var m = o[Symbol.asyncIterator], i;
304
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
305
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
306
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
307
+ }
308
+ function __makeTemplateObject(cooked, raw) {
309
+ if (Object.defineProperty) {
310
+ Object.defineProperty(cooked, "raw", { value: raw });
311
+ }
312
+ else {
313
+ cooked.raw = raw;
314
+ }
315
+ return cooked;
316
+ }
317
+ ;
318
+ var __setModuleDefault = Object.create ? (function (o, v) {
319
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
320
+ }) : function (o, v) {
321
+ o["default"] = v;
322
+ };
323
+ function __importStar(mod) {
324
+ if (mod && mod.__esModule)
325
+ return mod;
326
+ var result = {};
327
+ if (mod != null)
328
+ for (var k in mod)
329
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
330
+ __createBinding(result, mod, k);
331
+ __setModuleDefault(result, mod);
332
+ return result;
333
+ }
334
+ function __importDefault(mod) {
335
+ return (mod && mod.__esModule) ? mod : { default: mod };
336
+ }
337
+ function __classPrivateFieldGet(receiver, state, kind, f) {
338
+ if (kind === "a" && !f)
339
+ throw new TypeError("Private accessor was defined without a getter");
340
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
342
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
343
+ }
344
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
345
+ if (kind === "m")
346
+ throw new TypeError("Private method is not writable");
347
+ if (kind === "a" && !f)
348
+ throw new TypeError("Private accessor was defined without a setter");
349
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
350
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
351
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
352
+ }
353
+ function __classPrivateFieldIn(state, receiver) {
354
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
355
+ throw new TypeError("Cannot use 'in' operator on non-object");
356
+ return typeof state === "function" ? receiver === state : state.has(receiver);
254
357
  }
255
358
 
256
359
  // eslint-disable-next-line @typescript-eslint/naming-convention
257
360
  function iosScrollFactory(element, documentRef, ngZone) {
258
- var load$ = cdk.typedFromEvent(element, 'load', { capture: true });
259
- var touchstart$ = cdk.typedFromEvent(element, 'touchstart', { passive: true });
260
- var touchmove$ = cdk.typedFromEvent(documentRef, 'touchmove', { passive: true });
261
- var touchend$ = cdk.typedFromEvent(documentRef, 'touchend');
262
- var scroll$ = cdk.typedFromEvent(element, 'scroll').pipe(operators.map(function () { return element.scrollTop; }));
263
- var result$ = rxjs.merge(load$.pipe(operators.delay(0), operators.map(function () { return element.scrollTop; })), touchstart$.pipe(operators.switchMap(function (_a) {
361
+ var load$ = i3.typedFromEvent(element, "load", { capture: true });
362
+ var touchstart$ = i3.typedFromEvent(element, "touchstart", { passive: true });
363
+ var touchmove$ = i3.typedFromEvent(documentRef, "touchmove", { passive: true });
364
+ var touchend$ = i3.typedFromEvent(documentRef, "touchend");
365
+ var scroll$ = i3.typedFromEvent(element, "scroll").pipe(operators.map(function () { return element.scrollTop; }));
366
+ var result$ = i1.merge(load$.pipe(operators.delay(0), operators.map(function () { return element.scrollTop; })), touchstart$.pipe(operators.switchMap(function (_a) {
264
367
  var touches = _a.touches;
265
368
  var screenY = touches[0].screenY;
266
369
  var scrollTop = element.scrollTop;
267
- return rxjs.concat(
370
+ return i1.concat(
268
371
  // Sometimes touch is triggered without scroll in iOS, filter that
269
- rxjs.zip(touchmove$, scroll$).pipe(operators.map(function (_a) {
372
+ i1.zip(touchmove$, scroll$).pipe(operators.map(function (_a) {
270
373
  var _b = __read(_a, 1), touches = _b[0].touches;
271
374
  return scrollTop + screenY - touches[0].screenY;
272
375
  }), operators.takeUntil(touchend$)), scroll$);
273
376
  })));
274
- return rxjs.concat(scroll$.pipe(operators.take(1)), result$).pipe(cdk.tuiZonefree(ngZone), operators.share());
377
+ return i1.concat(scroll$.pipe(operators.take(1)), result$).pipe(i3.tuiZonefree(ngZone), operators.share());
275
378
  }
276
379
  // eslint-disable-next-line @typescript-eslint/naming-convention
277
380
  function processDragged(dragged$, scroll$) {
278
381
  var touchstart$ = dragged$.pipe(operators.filter(Boolean));
279
382
  var touchend$ = dragged$.pipe(operators.filter(function (v) { return !v; }));
280
- var race$ = rxjs.race(scroll$, rxjs.timer(100)).pipe(operators.debounceTime(200), operators.take(1), operators.mapTo(false));
383
+ var race$ = i1.race(scroll$, i1.timer(100)).pipe(operators.debounceTime(200), operators.take(1), operators.mapTo(false));
281
384
  return touchstart$.pipe(operators.switchMapTo(touchend$.pipe(operators.switchMapTo(race$), operators.startWith(true))), operators.startWith(false));
282
385
  }
283
386
  // eslint-disable-next-line @typescript-eslint/naming-convention
284
387
  function fakeSmoothScroll(_a, offset) {
285
388
  var style = _a.style;
286
- style.transition = 'none';
389
+ style.transition = "none";
287
390
  style.transform = "scaleX(-1) translate3d(0, " + offset + "px, 0)";
288
391
  setTimeout(function () {
289
- style.transition = '';
290
- style.transform = '';
392
+ style.transition = "";
393
+ style.transform = "";
291
394
  });
292
395
  }
293
396
 
294
- var TUI_SHEET_CLOSE = 'tui-sheet-close';
295
- var TUI_SHEET_ID = 'tui-sheet-id';
397
+ var TUI_SHEET = new i0.InjectionToken("[TUI_SHEET] Sheet main component");
398
+ var TUI_SHEET_SCROLL = new i0.InjectionToken("Current scrollTop of a sheet");
399
+ var TUI_SHEET_DRAGGED = new i0.InjectionToken("The sheet is being dragged");
400
+
401
+ var TUI_SHEET_CLOSE = "tui-sheet-close";
402
+ var TUI_SHEET_ID = "tui-sheet-id";
296
403
  var TuiSheetHeadingComponent = /** @class */ (function () {
297
404
  function TuiSheetHeadingComponent(idService, elementRef, closeWord$) {
298
405
  this.idService = idService;
@@ -306,60 +413,205 @@
306
413
  TuiSheetHeadingComponent.prototype.onClick = function () {
307
414
  this.elementRef.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
308
415
  };
309
- TuiSheetHeadingComponent.ctorParameters = function () { return [
310
- { type: cdk.TuiIdService, decorators: [{ type: core.Inject, args: [cdk.TuiIdService,] }] },
311
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
312
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [core$1.TUI_CLOSE_WORD,] }] }
313
- ]; };
314
- TuiSheetHeadingComponent = __decorate([
315
- core.Component({
316
- selector: '[tuiSheetHeading]',
317
- template: "<button\n tuiIconButton\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconCloseLarge\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n",
318
- changeDetection: core.ChangeDetectionStrategy.OnPush,
319
- 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-base-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px rgba(255,255,255,.25)}: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}"]
320
- }),
321
- __param(0, core.Inject(cdk.TuiIdService)),
322
- __param(1, core.Inject(core.ElementRef)),
323
- __param(2, core.Inject(core$1.TUI_CLOSE_WORD))
324
- ], TuiSheetHeadingComponent);
325
416
  return TuiSheetHeadingComponent;
326
417
  }());
418
+ TuiSheetHeadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetHeadingComponent, deps: [{ token: i3.TuiIdService }, { token: i0.ElementRef }, { token: i1$1.TUI_CLOSE_WORD }], target: i0__namespace.ɵɵFactoryTarget.Component });
419
+ TuiSheetHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]", ngImport: i0__namespace, template: "<button\n tuiIconButton\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconCloseLarge\"\n class=\"t-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-base-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px rgba(255,255,255,.25)}: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"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
420
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetHeadingComponent, decorators: [{
421
+ type: i0.Component,
422
+ args: [{
423
+ selector: "[tuiSheetHeading]",
424
+ templateUrl: "sheet-heading.template.html",
425
+ styleUrls: ["sheet-heading.style.less"],
426
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
427
+ }]
428
+ }], ctorParameters: function () {
429
+ return [{ type: i3__namespace.TuiIdService, decorators: [{
430
+ type: i0.Inject,
431
+ args: [i3.TuiIdService]
432
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
433
+ type: i0.Inject,
434
+ args: [i0.ElementRef]
435
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
436
+ type: i0.Inject,
437
+ args: [i1$1.TUI_CLOSE_WORD]
438
+ }] }];
439
+ } });
327
440
 
328
- var TUI_SHEET_SCROLL = new core.InjectionToken('Current scrollTop of a sheet');
329
- var TUI_SHEET_DRAGGED = new core.InjectionToken('The sheet is being dragged');
330
- /** @deprecated use option argument for each Sheet */
331
- var TUI_SHEET_OFFSET = new core.InjectionToken('Offset from the top at which the sheet stops', {
332
- factory: function () { return 16; },
333
- });
334
441
  var TUI_SHEET_PROVIDERS = [
335
442
  {
336
443
  provide: TUI_SHEET_DRAGGED,
337
- deps: [core.ElementRef],
444
+ deps: [i0.ElementRef],
338
445
  useFactory: sheetDraggedFactory,
339
446
  },
340
447
  {
341
448
  provide: TUI_SHEET_SCROLL,
342
- deps: [core.ElementRef, core.NgZone, common.DOCUMENT, cdk.TUI_IS_IOS],
449
+ deps: [i0.ElementRef, i0.NgZone, i2.DOCUMENT, i3.TUI_IS_IOS],
343
450
  useFactory: sheetScrollFactory,
344
451
  },
345
452
  {
346
- provide: core$1.TUI_SCROLL_REF,
347
- useExisting: core.ElementRef,
453
+ provide: i1$1.TUI_SCROLL_REF,
454
+ useExisting: i0.ElementRef,
455
+ },
456
+ {
457
+ provide: TUI_SHEET,
458
+ useExisting: i0.forwardRef(function () { return TuiSheetComponent; }),
348
459
  },
349
460
  ];
350
461
  // eslint-disable-next-line @typescript-eslint/naming-convention
351
462
  function sheetDraggedFactory(_a) {
352
463
  var nativeElement = _a.nativeElement;
353
- return rxjs.merge(cdk.typedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(operators.mapTo(true)), cdk.typedFromEvent(nativeElement, 'touchend').pipe(operators.mapTo(false)));
464
+ return i1.merge(i3.typedFromEvent(nativeElement, "touchstart", { passive: true }).pipe(operators.mapTo(true)), i3.typedFromEvent(nativeElement, "touchend").pipe(operators.mapTo(false)));
354
465
  }
355
466
  // eslint-disable-next-line @typescript-eslint/naming-convention
356
467
  function sheetScrollFactory(_a, ngZone, documentRef, isIos) {
357
468
  var nativeElement = _a.nativeElement;
358
469
  return isIos
359
470
  ? iosScrollFactory(nativeElement, documentRef, ngZone)
360
- : rxjs.merge(cdk.typedFromEvent(nativeElement, 'scroll'), cdk.typedFromEvent(nativeElement, 'load', { capture: true })).pipe(operators.map(function () { return nativeElement.scrollTop; }), cdk.tuiZonefree(ngZone), operators.share());
471
+ : i1.merge(i3.typedFromEvent(nativeElement, "scroll"), i3.typedFromEvent(nativeElement, "load", { capture: true })).pipe(operators.map(function () { return nativeElement.scrollTop; }), i3.tuiZonefree(ngZone), operators.share());
361
472
  }
362
473
 
474
+ var TuiSheetBarComponent = /** @class */ (function () {
475
+ function TuiSheetBarComponent(sheet, scroll$, ngZone) {
476
+ var _this = this;
477
+ this.sheet = sheet;
478
+ this.scroll$ = scroll$;
479
+ this.ngZone = ngZone;
480
+ this.rotate$ = this.scroll$.pipe(i1$1.tuiZonefulMap(function (y) { return i3.clamp(10 - (y - _this.stop) / 5, 0, 10); }, this.ngZone));
481
+ }
482
+ Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
483
+ get: function () {
484
+ return this.sheet.stops[0] || 0;
485
+ },
486
+ enumerable: false,
487
+ configurable: true
488
+ });
489
+ return TuiSheetBarComponent;
490
+ }());
491
+ TuiSheetBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetBarComponent, deps: [{ token: TUI_SHEET }, { token: TUI_SHEET_SCROLL }, { token: i0.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
492
+ TuiSheetBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetBarComponent, selector: "tui-sheet-bar", ngImport: i0__namespace, template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n style=\"transform: rotate(-{{ deg }}deg)\"\n class=\"t-bar\"\n ></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div\n style=\"transform: rotate({{ deg }}deg)\"\n class=\"t-bar\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:.3s;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:.3s;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"], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
493
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetBarComponent, decorators: [{
494
+ type: i0.Component,
495
+ args: [{
496
+ selector: "tui-sheet-bar",
497
+ templateUrl: "sheet-bar.template.html",
498
+ styleUrls: ["sheet-bar.style.less"],
499
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
500
+ }]
501
+ }], ctorParameters: function () {
502
+ return [{ type: undefined, decorators: [{
503
+ type: i0.Inject,
504
+ args: [TUI_SHEET]
505
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
506
+ type: i0.Inject,
507
+ args: [TUI_SHEET_SCROLL]
508
+ }] }, { type: i0__namespace.NgZone, decorators: [{
509
+ type: i0.Inject,
510
+ args: [i0.NgZone]
511
+ }] }];
512
+ } });
513
+
514
+ // So that borders get rounded when image is visible for at least 10px
515
+ var OFFSET$1 = 10;
516
+ // @dynamic
517
+ var TuiSheetTopDirective = /** @class */ (function () {
518
+ function TuiSheetTopDirective(scroll$, component, windowRef) {
519
+ var _this = this;
520
+ this.scroll$ = scroll$;
521
+ this.component = component;
522
+ this.windowRef = windowRef;
523
+ this.stop = 0;
524
+ this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
525
+ this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET$1; }));
526
+ this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
527
+ }
528
+ TuiSheetTopDirective.prototype.getY = function (scrollTop) {
529
+ var value = scrollTop - this.stop;
530
+ var total = this.windowRef.innerHeight - this.component.item.offset - this.stop;
531
+ return this.stop && i3.clamp(100 - (value / total) * 100, 0, 100);
532
+ };
533
+ return TuiSheetTopDirective;
534
+ }());
535
+ TuiSheetTopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetTopDirective, deps: [{ token: TUI_SHEET_SCROLL }, { token: TUI_SHEET }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
536
+ TuiSheetTopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", 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__namespace });
537
+ __decorate([
538
+ i3.tuiDefaultProp()
539
+ ], TuiSheetTopDirective.prototype, "stop", void 0);
540
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetTopDirective, decorators: [{
541
+ type: i0.Directive,
542
+ args: [{
543
+ selector: "[tuiSheetTop]",
544
+ host: {
545
+ '[$.style.transform]': "transform$",
546
+ '($.style.transform)': "transform$",
547
+ '[$.class._rounded]': "rounded$",
548
+ '($.class._rounded)': "rounded$",
549
+ '[$.class._clickthrough]': "clickthrough$",
550
+ '($.class._clickthrough)': "clickthrough$",
551
+ },
552
+ }]
553
+ }], ctorParameters: function () {
554
+ return [{ type: i1__namespace$1.Observable, decorators: [{
555
+ type: i0.Inject,
556
+ args: [TUI_SHEET_SCROLL]
557
+ }] }, { type: undefined, decorators: [{
558
+ type: i0.Inject,
559
+ args: [TUI_SHEET]
560
+ }] }, { type: Window, decorators: [{
561
+ type: i0.Inject,
562
+ args: [common.WINDOW]
563
+ }] }];
564
+ }, propDecorators: { stop: [{
565
+ type: i0.Input,
566
+ args: ["tuiSheetTop"]
567
+ }] } });
568
+
569
+ var TuiSheetStopDirective = /** @class */ (function () {
570
+ function TuiSheetStopDirective(elementRef, destroy$, dragged$, scroll$, _a) {
571
+ var nativeElement = _a.nativeElement;
572
+ scroll$
573
+ .pipe(operators.map(function (y) { return Math.floor(y) > elementRef.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
574
+ var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
575
+ return !above && !dragged;
576
+ }), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
577
+ .subscribe(function () {
578
+ nativeElement.style.overflow = "hidden";
579
+ nativeElement.classList.remove("_stuck"); // iOS
580
+ nativeElement.scrollTop = elementRef.nativeElement.offsetTop;
581
+ setTimeout(function () {
582
+ nativeElement.style.overflow = "";
583
+ }, 100);
584
+ });
585
+ }
586
+ return TuiSheetStopDirective;
587
+ }());
588
+ TuiSheetStopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetStopDirective, deps: [{ token: i0.ElementRef }, { token: i3.TuiDestroyService }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: i1$1.TUI_SCROLL_REF }], target: i0__namespace.ɵɵFactoryTarget.Directive });
589
+ TuiSheetStopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [i3.TuiDestroyService], ngImport: i0__namespace });
590
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetStopDirective, decorators: [{
591
+ type: i0.Directive,
592
+ args: [{
593
+ selector: "[tuiSheetStop]",
594
+ providers: [i3.TuiDestroyService],
595
+ }]
596
+ }], ctorParameters: function () {
597
+ return [{ type: i0__namespace.ElementRef, decorators: [{
598
+ type: i0.Inject,
599
+ args: [i0.ElementRef]
600
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
601
+ type: i0.Inject,
602
+ args: [i3.TuiDestroyService]
603
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
604
+ type: i0.Inject,
605
+ args: [TUI_SHEET_DRAGGED]
606
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
607
+ type: i0.Inject,
608
+ args: [TUI_SHEET_SCROLL]
609
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
610
+ type: i0.Inject,
611
+ args: [i1$1.TUI_SCROLL_REF]
612
+ }] }];
613
+ } });
614
+
363
615
  // @dynamic
364
616
  var TuiSheetComponent = /** @class */ (function () {
365
617
  function TuiSheetComponent(scroll$, elementRef, ngZone, isIos, moreWord$) {
@@ -369,43 +621,43 @@
369
621
  this.ngZone = ngZone;
370
622
  this.isIos = isIos;
371
623
  this.moreWord$ = moreWord$;
372
- this.stopsRefs = cdk.EMPTY_QUERY;
373
- this.id = '';
624
+ this.stopsRefs = i3.EMPTY_QUERY;
625
+ this.id = "";
374
626
  this.stuck$ = this.scroll$.pipe(operators.map(function (y) { return Math.floor(y) > _this.contentTop; }));
375
627
  }
376
628
  Object.defineProperty(TuiSheetComponent.prototype, "stops", {
377
629
  get: function () {
378
630
  return this.getStops(this.stopsRefs);
379
631
  },
380
- enumerable: true,
632
+ enumerable: false,
381
633
  configurable: true
382
634
  });
383
635
  Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
384
636
  get: function () {
385
637
  return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
386
638
  },
387
- enumerable: true,
639
+ enumerable: false,
388
640
  configurable: true
389
641
  });
390
642
  Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
391
643
  get: function () {
392
644
  return this.contentTop - this.sheetTop;
393
645
  },
394
- enumerable: true,
646
+ enumerable: false,
395
647
  configurable: true
396
648
  });
397
649
  Object.defineProperty(TuiSheetComponent.prototype, "context", {
398
650
  get: function () {
399
- return __assign(__assign({}, this.item), { scroll$: this.scroll$.pipe(cdk.tuiZonefull(this.ngZone)) });
651
+ return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(i3.tuiZonefull(this.ngZone)) });
400
652
  },
401
- enumerable: true,
653
+ enumerable: false,
402
654
  configurable: true
403
655
  });
404
656
  TuiSheetComponent.prototype.onId = function (id) {
405
657
  this.id = id;
406
658
  };
407
659
  TuiSheetComponent.prototype.ngAfterViewInit = function () {
408
- var stops = __spread(this.stops, [this.sheetTop, this.contentTop]);
660
+ var stops = __spreadArray(__spreadArray([], __read(this.stops)), [this.sheetTop, this.contentTop]);
409
661
  this.elementRef.nativeElement.scrollTop = stops[this.item.initial];
410
662
  };
411
663
  TuiSheetComponent.prototype.scrollTo = function (top) {
@@ -414,7 +666,7 @@
414
666
  if (this.isIos) {
415
667
  fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);
416
668
  }
417
- nativeElement.scrollTo({ top: top, behavior: 'smooth' });
669
+ nativeElement.scrollTo({ top: top, behavior: "smooth" });
418
670
  };
419
671
  TuiSheetComponent.prototype.close = function () {
420
672
  if (this.context.closeable) {
@@ -426,7 +678,7 @@
426
678
  var _a, _b;
427
679
  return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
428
680
  },
429
- enumerable: true,
681
+ enumerable: false,
430
682
  configurable: true
431
683
  });
432
684
  Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
@@ -434,108 +686,80 @@
434
686
  var _a, _b;
435
687
  return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
436
688
  },
437
- enumerable: true,
689
+ enumerable: false,
438
690
  configurable: true
439
691
  });
440
692
  TuiSheetComponent.prototype.getStops = function (stops) {
441
693
  return stops
442
694
  .toArray()
443
- .map(function (_a) {
444
- var nativeElement = _a.nativeElement;
695
+ .map(function (_c) {
696
+ var nativeElement = _c.nativeElement;
445
697
  return nativeElement.offsetTop + nativeElement.clientHeight;
446
698
  });
447
699
  };
448
- TuiSheetComponent.ctorParameters = function () { return [
449
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
450
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
451
- { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
452
- { type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_IOS,] }] },
453
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [kit.TUI_MORE_WORD,] }] }
454
- ]; };
455
- __decorate([
456
- core.ViewChild('sheet')
457
- ], TuiSheetComponent.prototype, "sheet", void 0);
458
- __decorate([
459
- core.ViewChild('content')
460
- ], TuiSheetComponent.prototype, "content", void 0);
461
- __decorate([
462
- core.ViewChildren('stops')
463
- ], TuiSheetComponent.prototype, "stopsRefs", void 0);
464
- __decorate([
465
- core.Input()
466
- ], TuiSheetComponent.prototype, "item", void 0);
467
- __decorate([
468
- cdk.tuiPure
469
- ], TuiSheetComponent.prototype, "context", null);
470
- __decorate([
471
- core.HostListener(TUI_SHEET_ID, ['$event.detail'])
472
- ], TuiSheetComponent.prototype, "onId", null);
473
- __decorate([
474
- cdk.tuiPure
475
- ], TuiSheetComponent.prototype, "getStops", null);
476
- TuiSheetComponent = __decorate([
477
- core.Component({
478
- selector: 'tui-sheet',
479
- 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 polymorpheus-outlet\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n [content]=\"item.image\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <img\n alt=\"\"\n class=\"t-image\"\n [src]=\"content\"\n />\n </ng-template>\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 class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"item.content\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <h2\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ content }}\n </h2>\n </ng-template>\n </div>\n </section>\n</div>\n",
480
- providers: TUI_SHEET_PROVIDERS,
481
- animations: [core$1.tuiSlideInTop],
482
- changeDetection: core.ChangeDetectionStrategy.OnPush,
483
- host: {
484
- role: 'dialog',
485
- '[attr.aria-labelledby]': 'id',
486
- '[class._ios]': 'isIos',
487
- // '[class._stuck]': 'true', // Initially disable snapping for Firefox
488
- '[$.class._stuck]': 'stuck$',
489
- '($.class._stuck)': 'stuck$',
490
- },
491
- styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;box-shadow:0 4rem var(--tui-base-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:0 0;width:0;height:0}:host._stuck{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;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;pointer-events:auto;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12)}.t-top{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:-webkit-sticky;position:sticky;top:0;pointer-events:auto;border-radius:.8rem .8rem 0 0;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,300ms);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);box-shadow:0 4rem var(--tui-base-01)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);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 rgba(255,255,255,.25)}.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)}"]
492
- }),
493
- __param(0, core.Inject(TUI_SHEET_SCROLL)),
494
- __param(1, core.Inject(core.ElementRef)),
495
- __param(2, core.Inject(core.NgZone)),
496
- __param(3, core.Inject(cdk.TUI_IS_IOS)),
497
- __param(4, core.Inject(kit.TUI_MORE_WORD))
498
- ], TuiSheetComponent);
499
700
  return TuiSheetComponent;
500
701
  }());
501
-
502
- var TuiSheetBarComponent = /** @class */ (function () {
503
- function TuiSheetBarComponent(sheet, scroll$, ngZone) {
504
- var _this = this;
505
- this.sheet = sheet;
506
- this.scroll$ = scroll$;
507
- this.ngZone = ngZone;
508
- this.rotate$ = this.scroll$.pipe(core$1.tuiZonefulMap(function (y) { return cdk.clamp(10 - (y - _this.stop) / 5, 0, 10); }, this.ngZone));
509
- }
510
- Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
511
- get: function () {
512
- var _a;
513
- return (_a = this.sheet.stops[0]) !== null && _a !== void 0 ? _a : 0;
514
- },
515
- enumerable: true,
516
- configurable: true
517
- });
518
- TuiSheetBarComponent.ctorParameters = function () { return [
519
- { type: TuiSheetComponent, decorators: [{ type: core.Inject, args: [TuiSheetComponent,] }] },
520
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
521
- { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] }
522
- ]; };
523
- TuiSheetBarComponent = __decorate([
524
- core.Component({
525
- selector: 'tui-sheet-bar',
526
- template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n style=\"transform: rotate(-{{ deg }}deg)\"\n class=\"t-bar\"\n ></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div\n style=\"transform: rotate({{ deg }}deg)\"\n class=\"t-bar\"\n ></div>\n</ng-container>\n",
527
- changeDetection: core.ChangeDetectionStrategy.OnPush,
528
- styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);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,300ms);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}"]
529
- }),
530
- __param(0, core.Inject(TuiSheetComponent)),
531
- __param(1, core.Inject(TUI_SHEET_SCROLL)),
532
- __param(2, core.Inject(core.NgZone))
533
- ], TuiSheetBarComponent);
534
- return TuiSheetBarComponent;
535
- }());
702
+ TuiSheetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetComponent, deps: [{ token: TUI_SHEET_SCROLL }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.TUI_IS_IOS }, { token: kit.TUI_MORE_WORD }], target: i0__namespace.ɵɵFactoryTarget.Component });
703
+ TuiSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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__namespace, 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 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:.3s;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;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;box-shadow:0 4rem var(--tui-base-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{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;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;pointer-events:auto;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12)}.t-top{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:-webkit-sticky;position:sticky;top:0;pointer-events:auto;border-radius:.8rem .8rem 0 0;transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:.3s;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);box-shadow:0 4rem var(--tui-base-01)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:.3s;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 rgba(255,255,255,.25)}.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"], components: [{ type: TuiSheetBarComponent, selector: "tui-sheet-bar" }, { type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]" }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: ["tuiSheetTop"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: TuiSheetStopDirective, selector: "[tuiSheetStop]" }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1$1.tuiSlideInTop], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
704
+ __decorate([
705
+ i3.tuiPure
706
+ ], TuiSheetComponent.prototype, "context", null);
707
+ __decorate([
708
+ i3.tuiPure
709
+ ], TuiSheetComponent.prototype, "getStops", null);
710
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetComponent, decorators: [{
711
+ type: i0.Component,
712
+ args: [{
713
+ selector: "tui-sheet",
714
+ templateUrl: "sheet.template.html",
715
+ styleUrls: ["sheet.style.less"],
716
+ providers: TUI_SHEET_PROVIDERS,
717
+ animations: [i1$1.tuiSlideInTop],
718
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
719
+ host: {
720
+ role: "dialog",
721
+ '[attr.aria-labelledby]': "id",
722
+ '[class._ios]': "isIos",
723
+ // '[class._stuck]': 'true', // Initially disable snapping for Firefox
724
+ '[$.class._stuck]': "stuck$",
725
+ '($.class._stuck)': "stuck$",
726
+ },
727
+ }]
728
+ }], ctorParameters: function () {
729
+ return [{ type: i1__namespace$1.Observable, decorators: [{
730
+ type: i0.Inject,
731
+ args: [TUI_SHEET_SCROLL]
732
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
733
+ type: i0.Inject,
734
+ args: [i0.ElementRef]
735
+ }] }, { type: i0__namespace.NgZone, decorators: [{
736
+ type: i0.Inject,
737
+ args: [i0.NgZone]
738
+ }] }, { type: undefined, decorators: [{
739
+ type: i0.Inject,
740
+ args: [i3.TUI_IS_IOS]
741
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
742
+ type: i0.Inject,
743
+ args: [kit.TUI_MORE_WORD]
744
+ }] }];
745
+ }, propDecorators: { sheet: [{
746
+ type: i0.ViewChild,
747
+ args: ["sheet"]
748
+ }], content: [{
749
+ type: i0.ViewChild,
750
+ args: ["content"]
751
+ }], stopsRefs: [{
752
+ type: i0.ViewChildren,
753
+ args: ["stops"]
754
+ }], item: [{
755
+ type: i0.Input
756
+ }], context: [], onId: [{
757
+ type: i0.HostListener,
758
+ args: [TUI_SHEET_ID, ["$event.detail"]]
759
+ }], getStops: [] } });
536
760
 
537
761
  var TUI_SHEET_DEFAULT_OPTIONS = {
538
- image: '',
762
+ image: "",
539
763
  imageSlide: true,
540
764
  stops: [],
541
765
  initial: 0,
@@ -543,211 +767,48 @@
543
767
  closeable: true,
544
768
  overlay: false,
545
769
  };
546
- var TUI_SHEET_OPTIONS = new core.InjectionToken('Default parameters for sheet component', {
547
- factory: function () { return (__assign(__assign({}, TUI_SHEET_DEFAULT_OPTIONS), { offset: core.inject(TUI_SHEET_OFFSET) })); },
770
+ var TUI_SHEET_OPTIONS = new i0.InjectionToken("Default parameters for sheet component", {
771
+ factory: function () { return (Object.assign({}, TUI_SHEET_DEFAULT_OPTIONS)); },
548
772
  });
549
773
 
550
774
  var TuiSheetService = /** @class */ (function () {
551
775
  function TuiSheetService(options) {
552
776
  this.options = options;
553
- this.sheets$ = new rxjs.BehaviorSubject([]);
777
+ this.sheets$ = new i1.BehaviorSubject([]);
554
778
  }
555
779
  TuiSheetService.prototype.open = function (content, options) {
556
780
  var _this = this;
557
781
  if (options === void 0) { options = {}; }
558
- return new rxjs.Observable(function ($implicit) {
782
+ return new i1.Observable(function ($implicit) {
559
783
  var completeWith = function (result) {
560
784
  $implicit.next(result);
561
785
  $implicit.complete();
562
786
  };
563
- var sheet = __assign(__assign(__assign({}, _this.options), options), { content: content,
564
- completeWith: completeWith,
565
- $implicit: $implicit, scroll$: rxjs.EMPTY });
566
- _this.sheets$.next(__spread(_this.sheets$.value, [sheet]));
787
+ var sheet = Object.assign(Object.assign(Object.assign({}, _this.options), options), { content: content, completeWith: completeWith, $implicit: $implicit, scroll$: i1.EMPTY });
788
+ _this.sheets$.next(__spreadArray(__spreadArray([], __read(_this.sheets$.value)), [sheet]));
567
789
  return function () {
568
790
  _this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
569
791
  };
570
792
  });
571
793
  };
572
- TuiSheetService.ctorParameters = function () { return [
573
- { type: undefined, decorators: [{ type: core.Inject, args: [TUI_SHEET_OPTIONS,] }] }
574
- ]; };
575
- TuiSheetService.ɵprov = core.ɵɵdefineInjectable({ factory: function TuiSheetService_Factory() { return new TuiSheetService(core.ɵɵinject(TUI_SHEET_OPTIONS)); }, token: TuiSheetService, providedIn: "root" });
576
- TuiSheetService = __decorate([
577
- core.Injectable({
578
- providedIn: 'root',
579
- }),
580
- __param(0, core.Inject(TUI_SHEET_OPTIONS))
581
- ], TuiSheetService);
582
794
  return TuiSheetService;
583
795
  }());
584
-
585
- // @dynamic
586
- var TuiSheetsHostComponent = /** @class */ (function () {
587
- function TuiSheetsHostComponent(options, service, height$) {
588
- this.options = options;
589
- this.service = service;
590
- this.height$ = height$;
591
- }
592
- TuiSheetsHostComponent.prototype.close = function (_a) {
593
- var closeable = _a.closeable, $implicit = _a.$implicit;
594
- if (closeable) {
595
- $implicit.complete();
596
- }
597
- };
598
- TuiSheetsHostComponent.ctorParameters = function () { return [
599
- { type: undefined, decorators: [{ type: core.Inject, args: [core$1.TUI_ANIMATION_OPTIONS,] }] },
600
- { type: TuiSheetService, decorators: [{ type: core.Inject, args: [TuiSheetService,] }] },
601
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TUI_WINDOW_HEIGHT,] }] }
602
- ]; };
603
- TuiSheetsHostComponent = __decorate([
604
- core.Component({
605
- selector: 'tui-sheets-host',
606
- template: "<ng-container *ngIf=\"service.sheets$ | async as items\">\n <div\n *ngFor=\"let item of items\"\n class=\"t-wrapper\"\n [@tuiSlideInTop]=\"options\"\n [@tuiFadeIn]=\"options\"\n [tuiSheetWrapper]=\"item.offset\"\n [class.t-wrapper_overlay]=\"item.overlay\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n (click.self)=\"close(item)\"\n >\n <tui-sheet\n tuiScrollRef\n tuiOverscroll=\"all\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n [item]=\"item\"\n (close)=\"close(item)\"\n ></tui-sheet>\n </div>\n <div\n class=\"t-overlay\"\n (click)=\"close(items[0])\"\n ></div>\n</ng-container>\n",
607
- changeDetection: core.ChangeDetectionStrategy.OnPush,
608
- animations: [core$1.tuiSlideInTop, core$1.tuiFadeIn],
609
- styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration,300ms);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}._overlay~.t-overlay,.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:100%;overflow:hidden}.t-wrapper._overlay,.t-wrapper._visible,.t-wrapper_overlay{overflow:visible}"]
610
- }),
611
- __param(0, core.Inject(core$1.TUI_ANIMATION_OPTIONS)),
612
- __param(1, core.Inject(TuiSheetService)),
613
- __param(2, core.Inject(cdk.TUI_WINDOW_HEIGHT))
614
- ], TuiSheetsHostComponent);
615
- return TuiSheetsHostComponent;
616
- }());
617
-
618
- // @dynamic
619
- var TuiSheetCloseDirective = /** @class */ (function () {
620
- function TuiSheetCloseDirective(ngZone, dragged$, scroll$, windowRef, elementRef, sheet) {
621
- var _this = this;
622
- this.ngZone = ngZone;
623
- this.dragged$ = dragged$;
624
- this.scroll$ = scroll$;
625
- this.windowRef = windowRef;
626
- this.elementRef = elementRef;
627
- this.sheet = sheet;
628
- this.close = rxjs.merge(cdk.typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(operators.startWith(false), operators.switchMap(function (dragged) {
629
- return dragged
630
- ? rxjs.EMPTY
631
- : _this.scroll$.pipe(operators.startWith(_this.elementRef.nativeElement.scrollTop));
632
- }), operators.filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), operators.distinctUntilChanged(), cdk.tuiZonefull(this.ngZone)));
633
- }
634
- TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
635
- var height = Math.min(this.windowRef.innerHeight, this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight);
636
- var min = Math.min(height, this.sheet.stops[0] || Infinity);
637
- return scrollTop < min / 2;
638
- };
639
- TuiSheetCloseDirective.ctorParameters = function () { return [
640
- { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
641
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_DRAGGED,] }] },
642
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
643
- { type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] },
644
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
645
- { type: TuiSheetComponent, decorators: [{ type: core.Inject, args: [TuiSheetComponent,] }] }
646
- ]; };
647
- __decorate([
648
- core.Output()
649
- ], TuiSheetCloseDirective.prototype, "close", void 0);
650
- TuiSheetCloseDirective = __decorate([
651
- core.Directive({
652
- selector: 'tui-sheet[close]',
653
- }),
654
- __param(0, core.Inject(core.NgZone)),
655
- __param(1, core.Inject(TUI_SHEET_DRAGGED)),
656
- __param(2, core.Inject(TUI_SHEET_SCROLL)),
657
- __param(3, core.Inject(common$1.WINDOW)),
658
- __param(4, core.Inject(core.ElementRef)),
659
- __param(5, core.Inject(TuiSheetComponent))
660
- ], TuiSheetCloseDirective);
661
- return TuiSheetCloseDirective;
662
- }());
663
-
664
- var TuiSheetStopDirective = /** @class */ (function () {
665
- function TuiSheetStopDirective(elementRef, destroy$, dragged$, scroll$, _a) {
666
- var nativeElement = _a.nativeElement;
667
- scroll$
668
- .pipe(operators.map(function (y) { return Math.floor(y) > elementRef.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
669
- var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
670
- return !above && !dragged;
671
- }), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
672
- .subscribe(function () {
673
- nativeElement.style.overflow = 'hidden';
674
- nativeElement.classList.remove('_stuck'); // iOS
675
- nativeElement.scrollTop = elementRef.nativeElement.offsetTop;
676
- setTimeout(function () {
677
- nativeElement.style.overflow = '';
678
- }, 100);
679
- });
680
- }
681
- TuiSheetStopDirective.ctorParameters = function () { return [
682
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
683
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
684
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_DRAGGED,] }] },
685
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
686
- { type: core.ElementRef, decorators: [{ type: core.Inject, args: [core$1.TUI_SCROLL_REF,] }] }
687
- ]; };
688
- TuiSheetStopDirective = __decorate([
689
- core.Directive({
690
- selector: '[tuiSheetStop]',
691
- providers: [cdk.TuiDestroyService],
692
- }),
693
- __param(0, core.Inject(core.ElementRef)),
694
- __param(1, core.Inject(cdk.TuiDestroyService)),
695
- __param(2, core.Inject(TUI_SHEET_DRAGGED)),
696
- __param(3, core.Inject(TUI_SHEET_SCROLL)),
697
- __param(4, core.Inject(core$1.TUI_SCROLL_REF))
698
- ], TuiSheetStopDirective);
699
- return TuiSheetStopDirective;
700
- }());
701
-
702
- // So that borders get rounded when image is visible for at least 10px
703
- var OFFSET = 10;
704
- // @dynamic
705
- var TuiSheetTopDirective = /** @class */ (function () {
706
- function TuiSheetTopDirective(scroll$, component, windowRef) {
707
- var _this = this;
708
- this.scroll$ = scroll$;
709
- this.component = component;
710
- this.windowRef = windowRef;
711
- this.stop = 0;
712
- this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
713
- this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET; }));
714
- this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
715
- }
716
- TuiSheetTopDirective.prototype.getY = function (scrollTop) {
717
- var value = scrollTop - this.stop;
718
- var total = this.windowRef.innerHeight - this.component.item.offset - this.stop;
719
- return this.stop && cdk.clamp(100 - (value / total) * 100, 0, 100);
720
- };
721
- TuiSheetTopDirective.ctorParameters = function () { return [
722
- { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
723
- { type: TuiSheetComponent, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiSheetComponent; }),] }] },
724
- { type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] }
725
- ]; };
726
- __decorate([
727
- core.Input('tuiSheetTop'),
728
- cdk.tuiDefaultProp()
729
- ], TuiSheetTopDirective.prototype, "stop", void 0);
730
- TuiSheetTopDirective = __decorate([
731
- core.Directive({
732
- selector: '[tuiSheetTop]',
733
- host: {
734
- '[$.style.transform]': 'transform$',
735
- '($.style.transform)': 'transform$',
736
- '[$.class._rounded]': 'rounded$',
737
- '($.class._rounded)': 'rounded$',
738
- '[$.class._clickthrough]': 'clickthrough$',
739
- '($.class._clickthrough)': 'clickthrough$',
740
- },
741
- }),
742
- __param(0, core.Inject(TUI_SHEET_SCROLL)),
743
- __param(1, core.Inject(core.forwardRef(function () { return TuiSheetComponent; }))),
744
- __param(2, core.Inject(common$1.WINDOW))
745
- ], TuiSheetTopDirective);
746
- return TuiSheetTopDirective;
747
- }());
796
+ TuiSheetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, deps: [{ token: TUI_SHEET_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
797
+ TuiSheetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, providedIn: "root" });
798
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, decorators: [{
799
+ type: i0.Injectable,
800
+ args: [{
801
+ providedIn: "root",
802
+ }]
803
+ }], ctorParameters: function () {
804
+ return [{ type: undefined, decorators: [{
805
+ type: i0.Inject,
806
+ args: [TUI_SHEET_OPTIONS]
807
+ }] }];
808
+ } });
748
809
 
749
810
  // Safety offset for shadow
750
- var OFFSET$1 = 16;
811
+ var OFFSET = 16;
751
812
  // @dynamic
752
813
  var TuiSheetWrapperDirective = /** @class */ (function () {
753
814
  function TuiSheetWrapperDirective(windowRef) {
@@ -761,27 +822,28 @@
761
822
  var _this = this;
762
823
  return this.scroll$.pipe(operators.map(function (y) { return y + 16 > _this.windowRef.innerHeight - _this.tuiSheetWrapper; }));
763
824
  },
764
- enumerable: true,
825
+ enumerable: false,
765
826
  configurable: true
766
827
  });
767
828
  Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
768
829
  get: function () {
769
830
  return processDragged(this.dragged$, this.scroll$);
770
831
  },
771
- enumerable: true,
832
+ enumerable: false,
772
833
  configurable: true
773
834
  });
774
835
  Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
775
836
  get: function () {
776
837
  return this.scroll$.pipe(operators.map(this.getHeight.bind(this)));
777
838
  },
778
- enumerable: true,
839
+ enumerable: false,
779
840
  configurable: true
780
841
  });
781
842
  TuiSheetWrapperDirective.prototype.getHeight = function (value) {
782
843
  var _a;
783
- return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay) ? null
784
- : cdk.clamp(this.withImage(value) + OFFSET$1, OFFSET$1, this.windowRef.innerHeight);
844
+ return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
845
+ ? null
846
+ : i3.clamp(this.withImage(value) + OFFSET, OFFSET, this.windowRef.innerHeight);
785
847
  };
786
848
  TuiSheetWrapperDirective.prototype.withImage = function (value) {
787
849
  var _a;
@@ -789,141 +851,269 @@
789
851
  ? value
790
852
  : value - this.sheet.imageHeight;
791
853
  };
792
- TuiSheetWrapperDirective.ctorParameters = function () { return [
793
- { type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] }
794
- ]; };
795
- __decorate([
796
- core.ContentChild(TuiSheetComponent)
797
- ], TuiSheetWrapperDirective.prototype, "sheet", void 0);
798
- __decorate([
799
- core.ContentChild(TuiSheetComponent, { read: TUI_SHEET_DRAGGED })
800
- ], TuiSheetWrapperDirective.prototype, "dragged$", void 0);
801
- __decorate([
802
- core.ContentChild(TuiSheetComponent, { read: TUI_SHEET_SCROLL })
803
- ], TuiSheetWrapperDirective.prototype, "scroll$", void 0);
804
- __decorate([
805
- core.Input()
806
- ], TuiSheetWrapperDirective.prototype, "tuiSheetWrapper", void 0);
807
- __decorate([
808
- cdk.tuiPure
809
- ], TuiSheetWrapperDirective.prototype, "overlay$", null);
810
- __decorate([
811
- cdk.tuiPure
812
- ], TuiSheetWrapperDirective.prototype, "visible$", null);
813
- __decorate([
814
- cdk.tuiPure
815
- ], TuiSheetWrapperDirective.prototype, "height$", null);
816
- TuiSheetWrapperDirective = __decorate([
817
- core.Directive({
818
- selector: '[tuiSheetWrapper]',
819
- host: {
820
- '[$.class._overlay]': 'overlay$',
821
- '($.class._overlay)': 'overlay$',
822
- '[$.class._visible]': 'visible$',
823
- '($.class._visible)': 'visible$',
824
- '[$.style.height.px]': 'height$',
825
- '($.style.height.px)': 'height$',
826
- },
827
- }),
828
- __param(0, core.Inject(common$1.WINDOW))
829
- ], TuiSheetWrapperDirective);
830
854
  return TuiSheetWrapperDirective;
831
855
  }());
856
+ TuiSheetWrapperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetWrapperDirective, deps: [{ token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
857
+ TuiSheetWrapperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: { tuiSheetWrapper: "tuiSheetWrapper" }, host: { listeners: { "$.class._overlay": "overlay$", "$.class._visible": "visible$", "$.style.height.px": "height$" }, properties: { "$.class._overlay": "overlay$", "$.class._visible": "visible$", "$.style.height.px": "height$" } }, queries: [{ propertyName: "sheet", first: true, predicate: TuiSheetComponent, descendants: true }, { propertyName: "dragged$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_DRAGGED }, { propertyName: "scroll$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_SCROLL }], ngImport: i0__namespace });
858
+ __decorate([
859
+ i3.tuiPure
860
+ ], TuiSheetWrapperDirective.prototype, "overlay$", null);
861
+ __decorate([
862
+ i3.tuiPure
863
+ ], TuiSheetWrapperDirective.prototype, "visible$", null);
864
+ __decorate([
865
+ i3.tuiPure
866
+ ], TuiSheetWrapperDirective.prototype, "height$", null);
867
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetWrapperDirective, decorators: [{
868
+ type: i0.Directive,
869
+ args: [{
870
+ selector: "[tuiSheetWrapper]",
871
+ host: {
872
+ '[$.class._overlay]': "overlay$",
873
+ '($.class._overlay)': "overlay$",
874
+ '[$.class._visible]': "visible$",
875
+ '($.class._visible)': "visible$",
876
+ '[$.style.height.px]': "height$",
877
+ '($.style.height.px)': "height$",
878
+ },
879
+ }]
880
+ }], ctorParameters: function () {
881
+ return [{ type: Window, decorators: [{
882
+ type: i0.Inject,
883
+ args: [common.WINDOW]
884
+ }] }];
885
+ }, propDecorators: { sheet: [{
886
+ type: i0.ContentChild,
887
+ args: [TuiSheetComponent]
888
+ }], dragged$: [{
889
+ type: i0.ContentChild,
890
+ args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED }]
891
+ }], scroll$: [{
892
+ type: i0.ContentChild,
893
+ args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL }]
894
+ }], tuiSheetWrapper: [{
895
+ type: i0.Input
896
+ }], overlay$: [], visible$: [], height$: [] } });
897
+
898
+ // @dynamic
899
+ var TuiSheetCloseDirective = /** @class */ (function () {
900
+ function TuiSheetCloseDirective(ngZone, dragged$, scroll$, windowRef, elementRef, sheet) {
901
+ var _this = this;
902
+ this.ngZone = ngZone;
903
+ this.dragged$ = dragged$;
904
+ this.scroll$ = scroll$;
905
+ this.windowRef = windowRef;
906
+ this.elementRef = elementRef;
907
+ this.sheet = sheet;
908
+ this.close = i1.merge(i3.typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(operators.startWith(false), operators.switchMap(function (dragged) { return dragged
909
+ ? i1.EMPTY
910
+ : _this.scroll$.pipe(operators.startWith(_this.elementRef.nativeElement.scrollTop)); }), operators.filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), operators.distinctUntilChanged(), i3.tuiZonefull(this.ngZone)));
911
+ }
912
+ TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
913
+ var height = Math.min(this.windowRef.innerHeight, this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight);
914
+ var min = Math.min(height, this.sheet.stops[0] || Infinity);
915
+ return scrollTop < min / 2;
916
+ };
917
+ return TuiSheetCloseDirective;
918
+ }());
919
+ TuiSheetCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetCloseDirective, deps: [{ token: i0.NgZone }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: common.WINDOW }, { token: i0.ElementRef }, { token: TuiSheetComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
920
+ TuiSheetCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: { close: "close" }, ngImport: i0__namespace });
921
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetCloseDirective, decorators: [{
922
+ type: i0.Directive,
923
+ args: [{
924
+ selector: "tui-sheet[close]",
925
+ }]
926
+ }], ctorParameters: function () {
927
+ return [{ type: i0__namespace.NgZone, decorators: [{
928
+ type: i0.Inject,
929
+ args: [i0.NgZone]
930
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
931
+ type: i0.Inject,
932
+ args: [TUI_SHEET_DRAGGED]
933
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
934
+ type: i0.Inject,
935
+ args: [TUI_SHEET_SCROLL]
936
+ }] }, { type: Window, decorators: [{
937
+ type: i0.Inject,
938
+ args: [common.WINDOW]
939
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
940
+ type: i0.Inject,
941
+ args: [i0.ElementRef]
942
+ }] }, { type: TuiSheetComponent, decorators: [{
943
+ type: i0.Inject,
944
+ args: [TuiSheetComponent]
945
+ }] }];
946
+ }, propDecorators: { close: [{
947
+ type: i0.Output
948
+ }] } });
949
+
950
+ // @dynamic
951
+ var TuiSheetsHostComponent = /** @class */ (function () {
952
+ function TuiSheetsHostComponent(options, service, height$) {
953
+ this.options = options;
954
+ this.service = service;
955
+ this.height$ = height$;
956
+ }
957
+ TuiSheetsHostComponent.prototype.close = function (_a) {
958
+ var closeable = _a.closeable, $implicit = _a.$implicit;
959
+ if (closeable) {
960
+ $implicit.complete();
961
+ }
962
+ };
963
+ return TuiSheetsHostComponent;
964
+ }());
965
+ TuiSheetsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetsHostComponent, deps: [{ token: i1$1.TUI_ANIMATION_OPTIONS }, { token: TuiSheetService }, { token: i3.TUI_WINDOW_HEIGHT }], target: i0__namespace.ɵɵFactoryTarget.Component });
966
+ TuiSheetsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetsHostComponent, selector: "tui-sheets-host", ngImport: i0__namespace, template: "<ng-container *ngIf=\"service.sheets$ | async as items\">\n <div\n *ngFor=\"let item of items\"\n class=\"t-wrapper\"\n [@tuiSlideInTop]=\"options\"\n [@tuiFadeIn]=\"options\"\n [tuiSheetWrapper]=\"item.offset\"\n [class.t-wrapper_overlay]=\"item.overlay\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n (click.self)=\"close(item)\"\n >\n <tui-sheet\n tuiScrollRef\n tuiOverscroll=\"all\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n [item]=\"item\"\n (close)=\"close(item)\"\n ></tui-sheet>\n </div>\n <div\n class=\"t-overlay\"\n (click)=\"close(items[0])\"\n ></div>\n</ng-container>\n", styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:.3s;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}._overlay~.t-overlay,.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_overlay,.t-wrapper._visible,.t-wrapper._overlay{overflow:visible}\n"], components: [{ type: TuiSheetComponent, selector: "tui-sheet", inputs: ["item"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: ["tuiSheetWrapper"] }, { type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: ["close"] }, { type: i1__namespace.TuiScrollRefDirective, selector: "[tuiScrollRef]" }, { type: i3__namespace.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
967
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetsHostComponent, decorators: [{
968
+ type: i0.Component,
969
+ args: [{
970
+ selector: "tui-sheets-host",
971
+ templateUrl: "sheets-host.template.html",
972
+ styleUrls: ["sheets-host.style.less"],
973
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
974
+ animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn],
975
+ }]
976
+ }], ctorParameters: function () {
977
+ return [{ type: undefined, decorators: [{
978
+ type: i0.Inject,
979
+ args: [i1$1.TUI_ANIMATION_OPTIONS]
980
+ }] }, { type: TuiSheetService, decorators: [{
981
+ type: i0.Inject,
982
+ args: [TuiSheetService]
983
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
984
+ type: i0.Inject,
985
+ args: [i3.TUI_WINDOW_HEIGHT]
986
+ }] }];
987
+ } });
832
988
 
833
989
  var TuiSheetDirective = /** @class */ (function (_super) {
834
990
  __extends(TuiSheetDirective, _super);
835
991
  function TuiSheetDirective(changeDetectorRef, templateRef, service) {
836
992
  var _this = _super.call(this, templateRef, changeDetectorRef) || this;
837
993
  _this.service = service;
838
- _this.open$ = new rxjs.Subject();
994
+ _this.open$ = new i1.Subject();
839
995
  _this.options = {};
840
- _this.tuiSheetChange = _this.open$.pipe(operators.switchMap(function (open) {
841
- return open
842
- ? _this.service
843
- .open(_this, _this.options)
844
- .pipe(operators.ignoreElements(), operators.endWith(false))
845
- : rxjs.EMPTY;
846
- }));
996
+ _this.tuiSheetChange = _this.open$.pipe(operators.switchMap(function (open) { return open
997
+ ? _this.service
998
+ .open(_this, _this.options)
999
+ .pipe(operators.ignoreElements(), operators.endWith(false))
1000
+ : i1.EMPTY; }));
847
1001
  return _this;
848
1002
  }
849
1003
  Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
850
1004
  set: function (open) {
851
1005
  this.open$.next(open);
852
1006
  },
853
- enumerable: true,
1007
+ enumerable: false,
854
1008
  configurable: true
855
1009
  });
856
- TuiSheetDirective.ctorParameters = function () { return [
857
- { type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
858
- { type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] },
859
- { type: TuiSheetService, decorators: [{ type: core.Inject, args: [TuiSheetService,] }] }
860
- ]; };
861
- __decorate([
862
- core.Input('tuiSheetOptions'),
863
- cdk.tuiDefaultProp()
864
- ], TuiSheetDirective.prototype, "options", void 0);
865
- __decorate([
866
- core.Input(),
867
- cdk.tuiRequiredSetter()
868
- ], TuiSheetDirective.prototype, "tuiSheet", null);
869
- __decorate([
870
- core.Output()
871
- ], TuiSheetDirective.prototype, "tuiSheetChange", void 0);
872
- TuiSheetDirective = __decorate([
873
- core.Directive({
874
- selector: 'ng-template[tuiSheet]',
875
- }),
876
- __param(0, core.Inject(core.ChangeDetectorRef)),
877
- __param(1, core.Inject(core.TemplateRef)),
878
- __param(2, core.Inject(TuiSheetService))
879
- ], TuiSheetDirective);
880
1010
  return TuiSheetDirective;
881
- }(ngPolymorpheus.PolymorpheusTemplate));
1011
+ }(i5.PolymorpheusTemplate));
1012
+ TuiSheetDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.TemplateRef }, { token: TuiSheetService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1013
+ TuiSheetDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetDirective, selector: "ng-template[tuiSheet]", inputs: { options: ["tuiSheetOptions", "options"], tuiSheet: "tuiSheet" }, outputs: { tuiSheetChange: "tuiSheetChange" }, usesInheritance: true, ngImport: i0__namespace });
1014
+ __decorate([
1015
+ i3.tuiDefaultProp()
1016
+ ], TuiSheetDirective.prototype, "options", void 0);
1017
+ __decorate([
1018
+ i3.tuiRequiredSetter()
1019
+ ], TuiSheetDirective.prototype, "tuiSheet", null);
1020
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetDirective, decorators: [{
1021
+ type: i0.Directive,
1022
+ args: [{
1023
+ selector: "ng-template[tuiSheet]",
1024
+ }]
1025
+ }], ctorParameters: function () {
1026
+ return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1027
+ type: i0.Inject,
1028
+ args: [i0.ChangeDetectorRef]
1029
+ }] }, { type: i0__namespace.TemplateRef, decorators: [{
1030
+ type: i0.Inject,
1031
+ args: [i0.TemplateRef]
1032
+ }] }, { type: TuiSheetService, decorators: [{
1033
+ type: i0.Inject,
1034
+ args: [TuiSheetService]
1035
+ }] }];
1036
+ }, propDecorators: { options: [{
1037
+ type: i0.Input,
1038
+ args: ["tuiSheetOptions"]
1039
+ }], tuiSheet: [{
1040
+ type: i0.Input
1041
+ }], tuiSheetChange: [{
1042
+ type: i0.Output
1043
+ }] } });
882
1044
 
883
1045
  var TuiSheetModule = /** @class */ (function () {
884
1046
  function TuiSheetModule() {
885
1047
  }
886
- TuiSheetModule = __decorate([
887
- core.NgModule({
888
- imports: [
889
- common.CommonModule,
890
- ngPolymorpheus.PolymorpheusModule,
891
- cdk.TuiLetModule,
892
- core$1.TuiButtonModule,
893
- cdk.TuiOverscrollModule,
894
- core$1.TuiScrollbarModule,
895
- ],
896
- declarations: [
897
- TuiSheetsHostComponent,
898
- TuiSheetComponent,
899
- TuiSheetBarComponent,
900
- TuiSheetHeadingComponent,
901
- TuiSheetTopDirective,
902
- TuiSheetDirective,
903
- TuiSheetWrapperDirective,
904
- TuiSheetCloseDirective,
905
- TuiSheetStopDirective,
906
- ],
907
- exports: [
908
- TuiSheetsHostComponent,
909
- TuiSheetComponent,
910
- TuiSheetHeadingComponent,
911
- TuiSheetDirective,
912
- ],
913
- schemas: [core.NO_ERRORS_SCHEMA],
914
- })
915
- ], TuiSheetModule);
916
1048
  return TuiSheetModule;
917
1049
  }());
1050
+ TuiSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1051
+ TuiSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
1052
+ TuiSheetComponent,
1053
+ TuiSheetBarComponent,
1054
+ TuiSheetHeadingComponent,
1055
+ TuiSheetTopDirective,
1056
+ TuiSheetDirective,
1057
+ TuiSheetWrapperDirective,
1058
+ TuiSheetCloseDirective,
1059
+ TuiSheetStopDirective], imports: [i2.CommonModule,
1060
+ i5.PolymorpheusModule,
1061
+ i3.TuiLetModule,
1062
+ i1$1.TuiButtonModule,
1063
+ i3.TuiOverscrollModule,
1064
+ i1$1.TuiScrollbarModule], exports: [TuiSheetsHostComponent,
1065
+ TuiSheetComponent,
1066
+ TuiSheetHeadingComponent,
1067
+ TuiSheetDirective] });
1068
+ TuiSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, imports: [[
1069
+ i2.CommonModule,
1070
+ i5.PolymorpheusModule,
1071
+ i3.TuiLetModule,
1072
+ i1$1.TuiButtonModule,
1073
+ i3.TuiOverscrollModule,
1074
+ i1$1.TuiScrollbarModule,
1075
+ ]] });
1076
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, decorators: [{
1077
+ type: i0.NgModule,
1078
+ args: [{
1079
+ imports: [
1080
+ i2.CommonModule,
1081
+ i5.PolymorpheusModule,
1082
+ i3.TuiLetModule,
1083
+ i1$1.TuiButtonModule,
1084
+ i3.TuiOverscrollModule,
1085
+ i1$1.TuiScrollbarModule,
1086
+ ],
1087
+ declarations: [
1088
+ TuiSheetsHostComponent,
1089
+ TuiSheetComponent,
1090
+ TuiSheetBarComponent,
1091
+ TuiSheetHeadingComponent,
1092
+ TuiSheetTopDirective,
1093
+ TuiSheetDirective,
1094
+ TuiSheetWrapperDirective,
1095
+ TuiSheetCloseDirective,
1096
+ TuiSheetStopDirective,
1097
+ ],
1098
+ exports: [
1099
+ TuiSheetsHostComponent,
1100
+ TuiSheetComponent,
1101
+ TuiSheetHeadingComponent,
1102
+ TuiSheetDirective,
1103
+ ],
1104
+ schemas: [i0.NO_ERRORS_SCHEMA],
1105
+ }]
1106
+ }] });
1107
+
1108
+ /**
1109
+ * Generated bundle index. Do not edit.
1110
+ */
918
1111
 
919
1112
  exports.TUI_SHEET_CLOSE = TUI_SHEET_CLOSE;
920
1113
  exports.TUI_SHEET_DEFAULT_OPTIONS = TUI_SHEET_DEFAULT_OPTIONS;
921
- exports.TUI_SHEET_DRAGGED = TUI_SHEET_DRAGGED;
922
1114
  exports.TUI_SHEET_ID = TUI_SHEET_ID;
923
- exports.TUI_SHEET_OFFSET = TUI_SHEET_OFFSET;
924
1115
  exports.TUI_SHEET_OPTIONS = TUI_SHEET_OPTIONS;
925
1116
  exports.TUI_SHEET_PROVIDERS = TUI_SHEET_PROVIDERS;
926
- exports.TUI_SHEET_SCROLL = TUI_SHEET_SCROLL;
927
1117
  exports.TuiSheetBarComponent = TuiSheetBarComponent;
928
1118
  exports.TuiSheetCloseDirective = TuiSheetCloseDirective;
929
1119
  exports.TuiSheetComponent = TuiSheetComponent;
@@ -943,5 +1133,5 @@
943
1133
 
944
1134
  Object.defineProperty(exports, '__esModule', { value: true });
945
1135
 
946
- })));
1136
+ }));
947
1137
  //# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.umd.js.map