@taiga-ui/addon-mobile 2.59.1 → 3.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (509) 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 +534 -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 +402 -293
  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 +450 -337
  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 +875 -698
  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 -266
  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 -266
  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 +9 -254
  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 +419 -308
  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 +118 -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 +121 -338
  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 +434 -319
  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 +403 -287
  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 -283
  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 +7 -3
  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/mobile-calendar.providers.d.ts +1 -2
  48. package/components/mobile-calendar/package.json +2 -5
  49. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +1 -0
  50. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +3 -0
  51. package/components/mobile-calendar-dialog/mobile-calendar-dialog.module.d.ts +6 -2
  52. package/components/mobile-calendar-dialog/package.json +2 -5
  53. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +1 -0
  54. package/components/mobile-dialog/mobile-dialog.component.d.ts +3 -0
  55. package/components/mobile-dialog/mobile-dialog.module.d.ts +9 -0
  56. package/components/mobile-dialog/mobile-dialog.service.d.ts +4 -1
  57. package/components/mobile-dialog/package.json +2 -5
  58. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +1 -0
  59. package/components/package.json +2 -5
  60. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +3 -0
  61. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +3 -0
  62. package/components/pull-to-refresh/package.json +2 -5
  63. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +3 -0
  64. package/components/pull-to-refresh/pull-to-refresh.module.d.ts +10 -0
  65. package/components/pull-to-refresh/pull-to-refresh.providers.d.ts +1 -2
  66. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +1 -0
  67. package/components/sheet/components/sheet/sheet.component.d.ts +5 -2
  68. package/components/sheet/components/sheet/sheet.providers.d.ts +1 -8
  69. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +5 -2
  70. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +3 -0
  71. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +3 -0
  72. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +3 -0
  73. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +3 -0
  74. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +5 -2
  75. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +3 -0
  76. package/components/sheet/package.json +2 -5
  77. package/components/sheet/sheet-options.d.ts +1 -1
  78. package/components/sheet/sheet-tokens.d.ts +5 -0
  79. package/components/sheet/sheet.d.ts +4 -0
  80. package/components/sheet/sheet.directive.d.ts +3 -0
  81. package/components/sheet/sheet.module.d.ts +17 -0
  82. package/components/sheet/sheet.service.d.ts +3 -0
  83. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +1 -0
  84. package/components/taiga-ui-addon-mobile-components.d.ts +1 -0
  85. package/components/theme-android/package.json +2 -5
  86. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +1 -0
  87. package/components/theme-android/theme-android.component.d.ts +3 -0
  88. package/components/theme-android/theme-android.module.d.ts +5 -0
  89. package/components/theme-ios/package.json +2 -5
  90. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +1 -0
  91. package/components/theme-ios/theme-ios.component.d.ts +3 -0
  92. package/components/theme-ios/theme-ios.module.d.ts +5 -0
  93. package/const/package.json +2 -5
  94. package/const/taiga-ui-addon-mobile-const.d.ts +1 -0
  95. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +3 -0
  96. package/directives/elastic-sticky/elastic-sticky.module.d.ts +5 -0
  97. package/directives/elastic-sticky/elastic-sticky.service.d.ts +3 -0
  98. package/directives/elastic-sticky/package.json +2 -5
  99. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +1 -0
  100. package/directives/mobile-tabs/mobile-tabs.component.d.ts +3 -0
  101. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +3 -0
  102. package/directives/mobile-tabs/mobile-tabs.module.d.ts +6 -0
  103. package/directives/mobile-tabs/package.json +2 -5
  104. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +1 -0
  105. package/directives/package.json +2 -5
  106. package/directives/ripple/package.json +2 -5
  107. package/directives/ripple/ripple-styles.component.d.ts +3 -0
  108. package/directives/ripple/ripple.directive.d.ts +3 -0
  109. package/directives/ripple/ripple.module.d.ts +6 -0
  110. package/directives/ripple/ripple.providers.d.ts +1 -3
  111. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +1 -1
  112. package/directives/sidebar/package.json +2 -5
  113. package/directives/sidebar/sidebar.component.d.ts +3 -0
  114. package/directives/sidebar/sidebar.directive.d.ts +7 -4
  115. package/directives/sidebar/sidebar.module.d.ts +8 -0
  116. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +1 -0
  117. package/directives/taiga-ui-addon-mobile-directives.d.ts +1 -0
  118. package/directives/touchable/package.json +2 -5
  119. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +1 -0
  120. package/directives/touchable/touchable.directive.d.ts +6 -3
  121. package/directives/touchable/touchable.module.d.ts +5 -0
  122. package/esm2015/components/index.js +1 -1
  123. package/esm2015/components/mobile-calendar/index.js +1 -1
  124. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +78 -59
  125. package/esm2015/components/mobile-calendar/mobile-calendar.const.js +1 -1
  126. package/esm2015/components/mobile-calendar/mobile-calendar.module.js +34 -13
  127. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +7 -9
  128. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +1 -1
  129. package/esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +1 -1
  130. package/esm2015/components/mobile-calendar-dialog/index.js +1 -1
  131. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +19 -17
  132. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +27 -21
  133. package/esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +1 -1
  134. package/esm2015/components/mobile-dialog/index.js +2 -1
  135. package/esm2015/components/mobile-dialog/mobile-dialog-options.js +2 -1
  136. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +28 -23
  137. package/esm2015/components/mobile-dialog/mobile-dialog.module.js +17 -21
  138. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +11 -12
  139. package/esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  140. package/esm2015/components/pull-to-refresh/index.js +1 -1
  141. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +21 -19
  142. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +19 -16
  143. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +31 -24
  144. package/esm2015/components/pull-to-refresh/pull-to-refresh.module.js +21 -16
  145. package/esm2015/components/pull-to-refresh/pull-to-refresh.providers.js +15 -14
  146. package/esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -1
  147. package/esm2015/components/sheet/components/sheet/sheet.component.js +66 -57
  148. package/esm2015/components/sheet/components/sheet/sheet.providers.js +17 -21
  149. package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +31 -28
  150. package/esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js +29 -23
  151. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +33 -24
  152. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +38 -32
  153. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +30 -25
  154. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +38 -34
  155. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +40 -39
  156. package/esm2015/components/sheet/index.js +2 -1
  157. package/esm2015/components/sheet/ios.hacks.js +7 -7
  158. package/esm2015/components/sheet/sheet-options.js +3 -4
  159. package/esm2015/components/sheet/sheet-tokens.js +5 -0
  160. package/esm2015/components/sheet/sheet.directive.js +30 -23
  161. package/esm2015/components/sheet/sheet.js +2 -1
  162. package/esm2015/components/sheet/sheet.module.js +55 -29
  163. package/esm2015/components/sheet/sheet.service.js +14 -16
  164. package/esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js +1 -1
  165. package/esm2015/components/taiga-ui-addon-mobile-components.js +1 -1
  166. package/esm2015/components/theme-android/index.js +1 -1
  167. package/esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +1 -1
  168. package/esm2015/components/theme-android/theme-android.component.js +16 -15
  169. package/esm2015/components/theme-android/theme-android.module.js +14 -11
  170. package/esm2015/components/theme-ios/index.js +1 -1
  171. package/esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +1 -1
  172. package/esm2015/components/theme-ios/theme-ios.component.js +16 -15
  173. package/esm2015/components/theme-ios/theme-ios.module.js +14 -11
  174. package/esm2015/const/index.js +1 -1
  175. package/esm2015/const/mobile-alert-options.js +1 -1
  176. package/esm2015/const/taiga-ui-addon-mobile-const.js +1 -1
  177. package/esm2015/directives/elastic-sticky/elastic-sticky.directive.js +20 -19
  178. package/esm2015/directives/elastic-sticky/elastic-sticky.module.js +14 -11
  179. package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +32 -29
  180. package/esm2015/directives/elastic-sticky/index.js +1 -1
  181. package/esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +1 -1
  182. package/esm2015/directives/index.js +1 -1
  183. package/esm2015/directives/mobile-tabs/index.js +1 -1
  184. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +14 -12
  185. package/esm2015/directives/mobile-tabs/mobile-tabs.directive.js +36 -28
  186. package/esm2015/directives/mobile-tabs/mobile-tabs.module.js +15 -12
  187. package/esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +1 -1
  188. package/esm2015/directives/ripple/index.js +1 -1
  189. package/esm2015/directives/ripple/ripple-styles.component.js +14 -12
  190. package/esm2015/directives/ripple/ripple.directive.js +40 -33
  191. package/esm2015/directives/ripple/ripple.module.js +15 -12
  192. package/esm2015/directives/ripple/ripple.providers.js +29 -33
  193. package/esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +1 -2
  194. package/esm2015/directives/sidebar/index.js +1 -1
  195. package/esm2015/directives/sidebar/sidebar.component.js +31 -27
  196. package/esm2015/directives/sidebar/sidebar.directive.js +39 -38
  197. package/esm2015/directives/sidebar/sidebar.module.js +16 -13
  198. package/esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +1 -1
  199. package/esm2015/directives/taiga-ui-addon-mobile-directives.js +1 -1
  200. package/esm2015/directives/touchable/index.js +1 -1
  201. package/esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +1 -1
  202. package/esm2015/directives/touchable/touchable.directive.js +39 -29
  203. package/esm2015/directives/touchable/touchable.module.js +14 -11
  204. package/esm2015/index.js +3 -2
  205. package/esm2015/interfaces/index.js +2 -1
  206. package/esm2015/interfaces/mobile-alert-data.js +2 -1
  207. package/esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js +2 -1
  208. package/esm2015/internal/index.js +1 -1
  209. package/esm2015/internal/primitive-calendar-mobile/index.js +1 -1
  210. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +28 -24
  211. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +24 -13
  212. package/esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +1 -1
  213. package/esm2015/internal/taiga-ui-addon-mobile-internal.js +1 -1
  214. package/esm2015/taiga-ui-addon-mobile.js +1 -1
  215. package/esm2015/tokens/index.js +1 -1
  216. package/esm2015/tokens/loaded.js +1 -1
  217. package/esm2015/tokens/taiga-ui-addon-mobile-tokens.js +1 -1
  218. package/esm2015/types/index.js +2 -1
  219. package/esm2015/types/taiga-ui-addon-mobile-types.js +2 -1
  220. package/esm2015/types/touch-mode.js +2 -1
  221. package/esm2015/utils/find-touch-index.js +2 -7
  222. package/esm2015/utils/index.js +1 -1
  223. package/esm2015/utils/taiga-ui-addon-mobile-utils.js +1 -1
  224. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +45 -35
  225. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
  226. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +117 -77
  227. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  228. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +54 -50
  229. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  230. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +97 -80
  231. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
  232. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +437 -370
  233. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  234. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js +27 -21
  235. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  236. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js +27 -21
  237. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  238. package/fesm2015/taiga-ui-addon-mobile-components.js.map +1 -1
  239. package/fesm2015/taiga-ui-addon-mobile-const.js.map +1 -1
  240. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js +61 -52
  241. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
  242. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +61 -45
  243. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +1 -1
  244. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js +93 -82
  245. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
  246. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +79 -70
  247. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
  248. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js +51 -36
  249. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
  250. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +1 -1
  251. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +1 -1
  252. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +50 -33
  253. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  254. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +1 -1
  255. package/fesm2015/taiga-ui-addon-mobile-tokens.js.map +1 -1
  256. package/fesm2015/taiga-ui-addon-mobile-types.js.map +1 -1
  257. package/fesm2015/taiga-ui-addon-mobile-utils.js +2 -7
  258. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +1 -1
  259. package/fesm2015/taiga-ui-addon-mobile.js +2 -1
  260. package/fesm2015/taiga-ui-addon-mobile.js.map +1 -1
  261. package/index.d.ts +0 -1
  262. package/interfaces/package.json +2 -5
  263. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +1 -0
  264. package/internal/package.json +2 -5
  265. package/internal/primitive-calendar-mobile/package.json +2 -5
  266. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +3 -1
  267. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.d.ts +8 -0
  268. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +1 -0
  269. package/internal/taiga-ui-addon-mobile-internal.d.ts +1 -0
  270. package/package.json +12 -15
  271. package/taiga-ui-addon-mobile.d.ts +1 -0
  272. package/tokens/package.json +2 -5
  273. package/tokens/taiga-ui-addon-mobile-tokens.d.ts +1 -0
  274. package/types/package.json +2 -5
  275. package/types/taiga-ui-addon-mobile-types.d.ts +1 -0
  276. package/types/touch-mode.d.ts +1 -1
  277. package/utils/find-touch-index.d.ts +1 -5
  278. package/utils/package.json +2 -5
  279. package/utils/taiga-ui-addon-mobile-utils.d.ts +1 -0
  280. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js +0 -2
  281. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js.map +0 -1
  282. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js +0 -2
  283. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +0 -1
  284. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js +0 -2
  285. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js.map +0 -1
  286. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js +0 -2
  287. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js.map +0 -1
  288. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js +0 -2
  289. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +0 -1
  290. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js +0 -2
  291. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js.map +0 -1
  292. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js +0 -2
  293. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js.map +0 -1
  294. package/bundles/taiga-ui-addon-mobile-components.umd.min.js +0 -2
  295. package/bundles/taiga-ui-addon-mobile-components.umd.min.js.map +0 -1
  296. package/bundles/taiga-ui-addon-mobile-const.umd.min.js +0 -2
  297. package/bundles/taiga-ui-addon-mobile-const.umd.min.js.map +0 -1
  298. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js +0 -2
  299. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js.map +0 -1
  300. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js +0 -2
  301. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js.map +0 -1
  302. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js +0 -2
  303. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js.map +0 -1
  304. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js +0 -2
  305. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js.map +0 -1
  306. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js +0 -2
  307. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js.map +0 -1
  308. package/bundles/taiga-ui-addon-mobile-directives.umd.min.js +0 -2
  309. package/bundles/taiga-ui-addon-mobile-directives.umd.min.js.map +0 -1
  310. package/bundles/taiga-ui-addon-mobile-enums.umd.js +0 -20
  311. package/bundles/taiga-ui-addon-mobile-enums.umd.js.map +0 -1
  312. package/bundles/taiga-ui-addon-mobile-enums.umd.min.js +0 -2
  313. package/bundles/taiga-ui-addon-mobile-enums.umd.min.js.map +0 -1
  314. package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js +0 -2
  315. package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js.map +0 -1
  316. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js +0 -2
  317. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js.map +0 -1
  318. package/bundles/taiga-ui-addon-mobile-internal.umd.min.js +0 -2
  319. package/bundles/taiga-ui-addon-mobile-internal.umd.min.js.map +0 -1
  320. package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js +0 -2
  321. package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js.map +0 -1
  322. package/bundles/taiga-ui-addon-mobile-types.umd.min.js +0 -2
  323. package/bundles/taiga-ui-addon-mobile-types.umd.min.js.map +0 -1
  324. package/bundles/taiga-ui-addon-mobile-utils.umd.min.js +0 -2
  325. package/bundles/taiga-ui-addon-mobile-utils.umd.min.js.map +0 -1
  326. package/bundles/taiga-ui-addon-mobile.umd.min.js +0 -2
  327. package/bundles/taiga-ui-addon-mobile.umd.min.js.map +0 -1
  328. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +0 -1
  329. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.metadata.json +0 -1
  330. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.metadata.json +0 -1
  331. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +0 -1
  332. package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +0 -1
  333. package/components/taiga-ui-addon-mobile-components.metadata.json +0 -1
  334. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.metadata.json +0 -1
  335. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.metadata.json +0 -1
  336. package/const/taiga-ui-addon-mobile-const.metadata.json +0 -1
  337. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.metadata.json +0 -1
  338. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.metadata.json +0 -1
  339. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.metadata.json +0 -1
  340. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.metadata.json +0 -1
  341. package/directives/taiga-ui-addon-mobile-directives.metadata.json +0 -1
  342. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.metadata.json +0 -1
  343. package/enums/index.d.ts +0 -1
  344. package/enums/package.json +0 -13
  345. package/enums/taiga-ui-addon-mobile-enums.d.ts +0 -4
  346. package/enums/taiga-ui-addon-mobile-enums.metadata.json +0 -1
  347. package/enums/touch-mode.d.ts +0 -8
  348. package/esm2015/enums/index.js +0 -2
  349. package/esm2015/enums/taiga-ui-addon-mobile-enums.js +0 -5
  350. package/esm2015/enums/touch-mode.js +0 -10
  351. package/esm5/components/index.js +0 -8
  352. package/esm5/components/mobile-calendar/index.js +0 -6
  353. package/esm5/components/mobile-calendar/mobile-calendar.component.js +0 -295
  354. package/esm5/components/mobile-calendar/mobile-calendar.const.js +0 -25
  355. package/esm5/components/mobile-calendar/mobile-calendar.module.js +0 -34
  356. package/esm5/components/mobile-calendar/mobile-calendar.providers.js +0 -31
  357. package/esm5/components/mobile-calendar/mobile-calendar.strategy.js +0 -134
  358. package/esm5/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -5
  359. package/esm5/components/mobile-calendar-dialog/index.js +0 -3
  360. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -57
  361. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +0 -28
  362. package/esm5/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -5
  363. package/esm5/components/mobile-dialog/index.js +0 -4
  364. package/esm5/components/mobile-dialog/mobile-dialog-options.js +0 -1
  365. package/esm5/components/mobile-dialog/mobile-dialog.component.js +0 -34
  366. package/esm5/components/mobile-dialog/mobile-dialog.module.js +0 -31
  367. package/esm5/components/mobile-dialog/mobile-dialog.service.js +0 -34
  368. package/esm5/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -5
  369. package/esm5/components/pull-to-refresh/index.js +0 -6
  370. package/esm5/components/pull-to-refresh/loader-android/loader-android.component.js +0 -43
  371. package/esm5/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -41
  372. package/esm5/components/pull-to-refresh/pull-to-refresh.component.js +0 -56
  373. package/esm5/components/pull-to-refresh/pull-to-refresh.module.js +0 -26
  374. package/esm5/components/pull-to-refresh/pull-to-refresh.providers.js +0 -32
  375. package/esm5/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -5
  376. package/esm5/components/sheet/components/sheet/sheet.component.js +0 -150
  377. package/esm5/components/sheet/components/sheet/sheet.providers.js +0 -42
  378. package/esm5/components/sheet/components/sheet-bar/sheet-bar.component.js +0 -43
  379. package/esm5/components/sheet/components/sheet-heading/sheet-heading.component.js +0 -40
  380. package/esm5/components/sheet/components/sheets-host/sheets-host.component.js +0 -40
  381. package/esm5/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
  382. package/esm5/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -46
  383. package/esm5/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -56
  384. package/esm5/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -93
  385. package/esm5/components/sheet/index.js +0 -15
  386. package/esm5/components/sheet/ios.hacks.js +0 -42
  387. package/esm5/components/sheet/sheet-options.js +0 -16
  388. package/esm5/components/sheet/sheet.directive.js +0 -58
  389. package/esm5/components/sheet/sheet.js +0 -1
  390. package/esm5/components/sheet/sheet.module.js +0 -52
  391. package/esm5/components/sheet/sheet.service.js +0 -42
  392. package/esm5/components/sheet/taiga-ui-addon-mobile-components-sheet.js +0 -5
  393. package/esm5/components/taiga-ui-addon-mobile-components.js +0 -5
  394. package/esm5/components/theme-android/index.js +0 -3
  395. package/esm5/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +0 -5
  396. package/esm5/components/theme-android/theme-android.component.js +0 -22
  397. package/esm5/components/theme-android/theme-android.module.js +0 -16
  398. package/esm5/components/theme-ios/index.js +0 -3
  399. package/esm5/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +0 -5
  400. package/esm5/components/theme-ios/theme-ios.component.js +0 -22
  401. package/esm5/components/theme-ios/theme-ios.module.js +0 -16
  402. package/esm5/const/index.js +0 -2
  403. package/esm5/const/mobile-alert-options.js +0 -8
  404. package/esm5/const/taiga-ui-addon-mobile-const.js +0 -5
  405. package/esm5/directives/elastic-sticky/elastic-sticky.directive.js +0 -26
  406. package/esm5/directives/elastic-sticky/elastic-sticky.module.js +0 -16
  407. package/esm5/directives/elastic-sticky/elastic-sticky.service.js +0 -58
  408. package/esm5/directives/elastic-sticky/index.js +0 -4
  409. package/esm5/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -5
  410. package/esm5/directives/index.js +0 -6
  411. package/esm5/directives/mobile-tabs/index.js +0 -4
  412. package/esm5/directives/mobile-tabs/mobile-tabs.component.js +0 -16
  413. package/esm5/directives/mobile-tabs/mobile-tabs.directive.js +0 -51
  414. package/esm5/directives/mobile-tabs/mobile-tabs.module.js +0 -18
  415. package/esm5/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -5
  416. package/esm5/directives/ripple/index.js +0 -4
  417. package/esm5/directives/ripple/ripple-styles.component.js +0 -16
  418. package/esm5/directives/ripple/ripple.directive.js +0 -63
  419. package/esm5/directives/ripple/ripple.module.js +0 -18
  420. package/esm5/directives/ripple/ripple.providers.js +0 -54
  421. package/esm5/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +0 -6
  422. package/esm5/directives/sidebar/index.js +0 -4
  423. package/esm5/directives/sidebar/sidebar.component.js +0 -75
  424. package/esm5/directives/sidebar/sidebar.directive.js +0 -78
  425. package/esm5/directives/sidebar/sidebar.module.js +0 -21
  426. package/esm5/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +0 -5
  427. package/esm5/directives/taiga-ui-addon-mobile-directives.js +0 -5
  428. package/esm5/directives/touchable/index.js +0 -3
  429. package/esm5/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +0 -5
  430. package/esm5/directives/touchable/touchable.directive.js +0 -90
  431. package/esm5/directives/touchable/touchable.module.js +0 -16
  432. package/esm5/enums/index.js +0 -2
  433. package/esm5/enums/taiga-ui-addon-mobile-enums.js +0 -5
  434. package/esm5/enums/touch-mode.js +0 -10
  435. package/esm5/index.js +0 -7
  436. package/esm5/interfaces/index.js +0 -1
  437. package/esm5/interfaces/mobile-alert-data.js +0 -1
  438. package/esm5/interfaces/taiga-ui-addon-mobile-interfaces.js +0 -4
  439. package/esm5/internal/index.js +0 -2
  440. package/esm5/internal/primitive-calendar-mobile/index.js +0 -3
  441. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -37
  442. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +0 -28
  443. package/esm5/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -5
  444. package/esm5/internal/taiga-ui-addon-mobile-internal.js +0 -5
  445. package/esm5/taiga-ui-addon-mobile.js +0 -5
  446. package/esm5/tokens/index.js +0 -2
  447. package/esm5/tokens/loaded.js +0 -6
  448. package/esm5/tokens/taiga-ui-addon-mobile-tokens.js +0 -5
  449. package/esm5/types/index.js +0 -1
  450. package/esm5/types/taiga-ui-addon-mobile-types.js +0 -4
  451. package/esm5/types/touch-mode.js +0 -1
  452. package/esm5/utils/find-touch-index.js +0 -15
  453. package/esm5/utils/index.js +0 -2
  454. package/esm5/utils/taiga-ui-addon-mobile-utils.js +0 -5
  455. package/fesm2015/taiga-ui-addon-mobile-enums.js +0 -16
  456. package/fesm2015/taiga-ui-addon-mobile-enums.js.map +0 -1
  457. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -87
  458. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  459. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -502
  460. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  461. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -91
  462. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  463. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -185
  464. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  465. package/fesm5/taiga-ui-addon-mobile-components-sheet.js +0 -680
  466. package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  467. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js +0 -40
  468. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  469. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js +0 -40
  470. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  471. package/fesm5/taiga-ui-addon-mobile-components.js +0 -12
  472. package/fesm5/taiga-ui-addon-mobile-components.js.map +0 -1
  473. package/fesm5/taiga-ui-addon-mobile-const.js +0 -15
  474. package/fesm5/taiga-ui-addon-mobile-const.js.map +0 -1
  475. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -97
  476. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  477. package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -82
  478. package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  479. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js +0 -143
  480. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  481. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js +0 -168
  482. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  483. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js +0 -108
  484. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  485. package/fesm5/taiga-ui-addon-mobile-directives.js +0 -10
  486. package/fesm5/taiga-ui-addon-mobile-directives.js.map +0 -1
  487. package/fesm5/taiga-ui-addon-mobile-enums.js +0 -16
  488. package/fesm5/taiga-ui-addon-mobile-enums.js.map +0 -1
  489. package/fesm5/taiga-ui-addon-mobile-interfaces.js +0 -4
  490. package/fesm5/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  491. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -65
  492. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  493. package/fesm5/taiga-ui-addon-mobile-internal.js +0 -6
  494. package/fesm5/taiga-ui-addon-mobile-internal.js.map +0 -1
  495. package/fesm5/taiga-ui-addon-mobile-tokens.js +0 -13
  496. package/fesm5/taiga-ui-addon-mobile-tokens.js.map +0 -1
  497. package/fesm5/taiga-ui-addon-mobile-types.js +0 -4
  498. package/fesm5/taiga-ui-addon-mobile-types.js.map +0 -1
  499. package/fesm5/taiga-ui-addon-mobile-utils.js +0 -21
  500. package/fesm5/taiga-ui-addon-mobile-utils.js.map +0 -1
  501. package/fesm5/taiga-ui-addon-mobile.js +0 -11
  502. package/fesm5/taiga-ui-addon-mobile.js.map +0 -1
  503. package/interfaces/taiga-ui-addon-mobile-interfaces.metadata.json +0 -1
  504. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json +0 -1
  505. package/internal/taiga-ui-addon-mobile-internal.metadata.json +0 -1
  506. package/taiga-ui-addon-mobile.metadata.json +0 -1
  507. package/tokens/taiga-ui-addon-mobile-tokens.metadata.json +0 -1
  508. package/types/taiga-ui-addon-mobile-types.metadata.json +0 -1
  509. package/utils/taiga-ui-addon-mobile-utils.metadata.json +0 -1
@@ -1,283 +1,386 @@
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.tuiTypedFromEvent(element, "load", { capture: true });
362
+ var touchstart$ = i3.tuiTypedFromEvent(element, "touchstart", { passive: true });
363
+ var touchmove$ = i3.tuiTypedFromEvent(documentRef, "touchmove", { passive: true });
364
+ var touchend$ = i3.tuiTypedFromEvent(documentRef, "touchend");
365
+ var scroll$ = i3.tuiTypedFromEvent(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
@@ -291,6 +394,10 @@
291
394
  });
292
395
  }
293
396
 
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
+
294
401
  var TUI_SHEET_CLOSE = "tui-sheet-close";
295
402
  var TUI_SHEET_ID = "tui-sheet-id";
296
403
  var TuiSheetHeadingComponent = /** @class */ (function () {
@@ -306,61 +413,200 @@
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],
338
- useFactory: sheetDraggedFactory,
444
+ deps: [i0.ElementRef],
445
+ useFactory: function (_a) {
446
+ var nativeElement = _a.nativeElement;
447
+ return i1.merge(i3.tuiTypedFromEvent(nativeElement, "touchstart", { passive: true }).pipe(operators.mapTo(true)), i3.tuiTypedFromEvent(nativeElement, "touchend").pipe(operators.mapTo(false)));
448
+ },
339
449
  },
340
450
  {
341
451
  provide: TUI_SHEET_SCROLL,
342
- deps: [core.ElementRef, core.NgZone, common.DOCUMENT, cdk.TUI_IS_IOS],
343
- useFactory: sheetScrollFactory,
452
+ deps: [i0.ElementRef, i0.NgZone, i2.DOCUMENT, i3.TUI_IS_IOS],
453
+ useFactory: function (_a, ngZone, documentRef, isIos) {
454
+ var nativeElement = _a.nativeElement;
455
+ return isIos
456
+ ? iosScrollFactory(nativeElement, documentRef, ngZone)
457
+ : i1.merge(i3.tuiTypedFromEvent(nativeElement, "scroll"), i3.tuiTypedFromEvent(nativeElement, "load", { capture: true })).pipe(operators.map(function () { return nativeElement.scrollTop; }), i3.tuiZonefree(ngZone), operators.share());
458
+ },
344
459
  },
345
460
  {
346
- provide: core$1.TUI_SCROLL_REF,
347
- useExisting: core.ElementRef,
461
+ provide: i1$1.TUI_SCROLL_REF,
462
+ useExisting: i0.ElementRef,
463
+ },
464
+ {
465
+ provide: TUI_SHEET,
466
+ useExisting: i0.forwardRef(function () { return TuiSheetComponent; }),
348
467
  },
349
468
  ];
350
- // eslint-disable-next-line @typescript-eslint/naming-convention
351
- function sheetDraggedFactory(_a) {
352
- 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)));
354
- }
355
- // eslint-disable-next-line @typescript-eslint/naming-convention
356
- function sheetScrollFactory(_a, ngZone, documentRef, isIos) {
357
- var nativeElement = _a.nativeElement;
358
- return isIos
359
- ? 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());
361
- }
362
469
 
363
- // @dynamic
470
+ var TuiSheetBarComponent = /** @class */ (function () {
471
+ function TuiSheetBarComponent(sheet, scroll$, ngZone) {
472
+ var _this = this;
473
+ this.sheet = sheet;
474
+ this.scroll$ = scroll$;
475
+ this.ngZone = ngZone;
476
+ this.rotate$ = this.scroll$.pipe(i1$1.tuiZonefulMap(function (y) { return i3.tuiClamp(10 - (y - _this.stop) / 5, 0, 10); }, this.ngZone));
477
+ }
478
+ Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
479
+ get: function () {
480
+ return this.sheet.stops[0] || 0;
481
+ },
482
+ enumerable: false,
483
+ configurable: true
484
+ });
485
+ return TuiSheetBarComponent;
486
+ }());
487
+ 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 });
488
+ 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 });
489
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetBarComponent, decorators: [{
490
+ type: i0.Component,
491
+ args: [{
492
+ selector: "tui-sheet-bar",
493
+ templateUrl: "sheet-bar.template.html",
494
+ styleUrls: ["sheet-bar.style.less"],
495
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
496
+ }]
497
+ }], ctorParameters: function () {
498
+ return [{ type: undefined, decorators: [{
499
+ type: i0.Inject,
500
+ args: [TUI_SHEET]
501
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
502
+ type: i0.Inject,
503
+ args: [TUI_SHEET_SCROLL]
504
+ }] }, { type: i0__namespace.NgZone, decorators: [{
505
+ type: i0.Inject,
506
+ args: [i0.NgZone]
507
+ }] }];
508
+ } });
509
+
510
+ // So that borders get rounded when image is visible for at least 10px
511
+ var OFFSET$1 = 10;
512
+ var TuiSheetTopDirective = /** @class */ (function () {
513
+ function TuiSheetTopDirective(scroll$, component, windowRef) {
514
+ var _this = this;
515
+ this.scroll$ = scroll$;
516
+ this.component = component;
517
+ this.windowRef = windowRef;
518
+ this.stop = 0;
519
+ this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
520
+ this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET$1; }));
521
+ this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
522
+ }
523
+ TuiSheetTopDirective.prototype.getY = function (scrollTop) {
524
+ var value = scrollTop - this.stop;
525
+ var total = this.windowRef.innerHeight - this.component.item.offset - this.stop;
526
+ return this.stop && i3.tuiClamp(100 - (value / total) * 100, 0, 100);
527
+ };
528
+ return TuiSheetTopDirective;
529
+ }());
530
+ 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 });
531
+ 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 });
532
+ __decorate([
533
+ i3.tuiDefaultProp()
534
+ ], TuiSheetTopDirective.prototype, "stop", void 0);
535
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetTopDirective, decorators: [{
536
+ type: i0.Directive,
537
+ args: [{
538
+ selector: "[tuiSheetTop]",
539
+ host: {
540
+ '[$.style.transform]': "transform$",
541
+ '($.style.transform)': "transform$",
542
+ '[$.class._rounded]': "rounded$",
543
+ '($.class._rounded)': "rounded$",
544
+ '[$.class._clickthrough]': "clickthrough$",
545
+ '($.class._clickthrough)': "clickthrough$",
546
+ },
547
+ }]
548
+ }], ctorParameters: function () {
549
+ return [{ type: i1__namespace$1.Observable, decorators: [{
550
+ type: i0.Inject,
551
+ args: [TUI_SHEET_SCROLL]
552
+ }] }, { type: undefined, decorators: [{
553
+ type: i0.Inject,
554
+ args: [TUI_SHEET]
555
+ }] }, { type: Window, decorators: [{
556
+ type: i0.Inject,
557
+ args: [common.WINDOW]
558
+ }] }];
559
+ }, propDecorators: { stop: [{
560
+ type: i0.Input,
561
+ args: ["tuiSheetTop"]
562
+ }] } });
563
+
564
+ var TuiSheetStopDirective = /** @class */ (function () {
565
+ function TuiSheetStopDirective(elementRef, destroy$, dragged$, scroll$, _a) {
566
+ var nativeElement = _a.nativeElement;
567
+ scroll$
568
+ .pipe(operators.map(function (y) { return Math.floor(y) > elementRef.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
569
+ var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
570
+ return !above && !dragged;
571
+ }), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
572
+ .subscribe(function () {
573
+ nativeElement.style.overflow = "hidden";
574
+ nativeElement.classList.remove("_stuck"); // iOS
575
+ nativeElement.scrollTop = elementRef.nativeElement.offsetTop;
576
+ setTimeout(function () {
577
+ nativeElement.style.overflow = "";
578
+ }, 100);
579
+ });
580
+ }
581
+ return TuiSheetStopDirective;
582
+ }());
583
+ 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 });
584
+ TuiSheetStopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [i3.TuiDestroyService], ngImport: i0__namespace });
585
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetStopDirective, decorators: [{
586
+ type: i0.Directive,
587
+ args: [{
588
+ selector: "[tuiSheetStop]",
589
+ providers: [i3.TuiDestroyService],
590
+ }]
591
+ }], ctorParameters: function () {
592
+ return [{ type: i0__namespace.ElementRef, decorators: [{
593
+ type: i0.Inject,
594
+ args: [i0.ElementRef]
595
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
596
+ type: i0.Inject,
597
+ args: [i3.TuiDestroyService]
598
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
599
+ type: i0.Inject,
600
+ args: [TUI_SHEET_DRAGGED]
601
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
602
+ type: i0.Inject,
603
+ args: [TUI_SHEET_SCROLL]
604
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
605
+ type: i0.Inject,
606
+ args: [i1$1.TUI_SCROLL_REF]
607
+ }] }];
608
+ } });
609
+
364
610
  var TuiSheetComponent = /** @class */ (function () {
365
611
  function TuiSheetComponent(scroll$, elementRef, ngZone, isIos, moreWord$) {
366
612
  var _this = this;
@@ -369,7 +615,7 @@
369
615
  this.ngZone = ngZone;
370
616
  this.isIos = isIos;
371
617
  this.moreWord$ = moreWord$;
372
- this.stopsRefs = cdk.EMPTY_QUERY;
618
+ this.stopsRefs = i3.EMPTY_QUERY;
373
619
  this.id = "";
374
620
  this.stuck$ = this.scroll$.pipe(operators.map(function (y) { return Math.floor(y) > _this.contentTop; }));
375
621
  }
@@ -377,35 +623,35 @@
377
623
  get: function () {
378
624
  return this.getStops(this.stopsRefs);
379
625
  },
380
- enumerable: true,
626
+ enumerable: false,
381
627
  configurable: true
382
628
  });
383
629
  Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
384
630
  get: function () {
385
631
  return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
386
632
  },
387
- enumerable: true,
633
+ enumerable: false,
388
634
  configurable: true
389
635
  });
390
636
  Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
391
637
  get: function () {
392
638
  return this.contentTop - this.sheetTop;
393
639
  },
394
- enumerable: true,
640
+ enumerable: false,
395
641
  configurable: true
396
642
  });
397
643
  Object.defineProperty(TuiSheetComponent.prototype, "context", {
398
644
  get: function () {
399
- return __assign(__assign({}, this.item), { scroll$: this.scroll$.pipe(cdk.tuiZonefull(this.ngZone)) });
645
+ return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(i3.tuiZonefull(this.ngZone)) });
400
646
  },
401
- enumerable: true,
647
+ enumerable: false,
402
648
  configurable: true
403
649
  });
404
650
  TuiSheetComponent.prototype.onId = function (id) {
405
651
  this.id = id;
406
652
  };
407
653
  TuiSheetComponent.prototype.ngAfterViewInit = function () {
408
- var stops = __spread(this.stops, [this.sheetTop, this.contentTop]);
654
+ var stops = __spreadArray(__spreadArray([], __read(this.stops)), [this.sheetTop, this.contentTop]);
409
655
  this.elementRef.nativeElement.scrollTop = stops[this.item.initial];
410
656
  };
411
657
  TuiSheetComponent.prototype.scrollTo = function (top) {
@@ -426,7 +672,7 @@
426
672
  var _a, _b;
427
673
  return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
428
674
  },
429
- enumerable: true,
675
+ enumerable: false,
430
676
  configurable: true
431
677
  });
432
678
  Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
@@ -434,105 +680,75 @@
434
680
  var _a, _b;
435
681
  return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
436
682
  },
437
- enumerable: true,
683
+ enumerable: false,
438
684
  configurable: true
439
685
  });
440
686
  TuiSheetComponent.prototype.getStops = function (stops) {
441
- return stops
442
- .toArray()
443
- .map(function (_a) {
444
- var nativeElement = _a.nativeElement;
687
+ return stops.map(function (_c) {
688
+ var nativeElement = _c.nativeElement;
445
689
  return nativeElement.offsetTop + nativeElement.clientHeight;
446
690
  });
447
691
  };
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
692
  return TuiSheetComponent;
500
693
  }());
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
- }());
694
+ 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 });
695
+ 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 });
696
+ __decorate([
697
+ i3.tuiPure
698
+ ], TuiSheetComponent.prototype, "context", null);
699
+ __decorate([
700
+ i3.tuiPure
701
+ ], TuiSheetComponent.prototype, "getStops", null);
702
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetComponent, decorators: [{
703
+ type: i0.Component,
704
+ args: [{
705
+ selector: "tui-sheet",
706
+ templateUrl: "sheet.template.html",
707
+ styleUrls: ["sheet.style.less"],
708
+ providers: TUI_SHEET_PROVIDERS,
709
+ animations: [i1$1.tuiSlideInTop],
710
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
711
+ host: {
712
+ role: "dialog",
713
+ '[attr.aria-labelledby]': "id",
714
+ '[class._ios]': "isIos",
715
+ // '[class._stuck]': 'true', // Initially disable snapping for Firefox
716
+ '[$.class._stuck]': "stuck$",
717
+ '($.class._stuck)': "stuck$",
718
+ },
719
+ }]
720
+ }], ctorParameters: function () {
721
+ return [{ type: i1__namespace$1.Observable, decorators: [{
722
+ type: i0.Inject,
723
+ args: [TUI_SHEET_SCROLL]
724
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
725
+ type: i0.Inject,
726
+ args: [i0.ElementRef]
727
+ }] }, { type: i0__namespace.NgZone, decorators: [{
728
+ type: i0.Inject,
729
+ args: [i0.NgZone]
730
+ }] }, { type: undefined, decorators: [{
731
+ type: i0.Inject,
732
+ args: [i3.TUI_IS_IOS]
733
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
734
+ type: i0.Inject,
735
+ args: [kit.TUI_MORE_WORD]
736
+ }] }];
737
+ }, propDecorators: { sheet: [{
738
+ type: i0.ViewChild,
739
+ args: ["sheet"]
740
+ }], content: [{
741
+ type: i0.ViewChild,
742
+ args: ["content"]
743
+ }], stopsRefs: [{
744
+ type: i0.ViewChildren,
745
+ args: ["stops"]
746
+ }], item: [{
747
+ type: i0.Input
748
+ }], context: [], onId: [{
749
+ type: i0.HostListener,
750
+ args: [TUI_SHEET_ID, ["$event.detail"]]
751
+ }], getStops: [] } });
536
752
 
537
753
  var TUI_SHEET_DEFAULT_OPTIONS = {
538
754
  image: "",
@@ -543,212 +759,48 @@
543
759
  closeable: true,
544
760
  overlay: false,
545
761
  };
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) })); },
762
+ var TUI_SHEET_OPTIONS = new i0.InjectionToken("Default parameters for sheet component", {
763
+ factory: function () { return (Object.assign({}, TUI_SHEET_DEFAULT_OPTIONS)); },
548
764
  });
549
765
 
550
766
  var TuiSheetService = /** @class */ (function () {
551
767
  function TuiSheetService(options) {
552
768
  this.options = options;
553
- this.sheets$ = new rxjs.BehaviorSubject([]);
769
+ this.sheets$ = new i1.BehaviorSubject([]);
554
770
  }
555
771
  TuiSheetService.prototype.open = function (content, options) {
556
772
  var _this = this;
557
773
  if (options === void 0) { options = {}; }
558
- return new rxjs.Observable(function ($implicit) {
774
+ return new i1.Observable(function ($implicit) {
559
775
  var completeWith = function (result) {
560
776
  $implicit.next(result);
561
777
  $implicit.complete();
562
778
  };
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]));
779
+ var sheet = Object.assign(Object.assign(Object.assign({}, _this.options), options), { content: content, completeWith: completeWith, $implicit: $implicit, scroll$: i1.EMPTY });
780
+ _this.sheets$.next(__spreadArray(__spreadArray([], __read(_this.sheets$.value)), [sheet]));
567
781
  return function () {
568
782
  _this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
569
783
  };
570
784
  });
571
785
  };
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
786
  return TuiSheetService;
583
787
  }());
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:100vh;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
- }());
788
+ 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 });
789
+ TuiSheetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, providedIn: "root" });
790
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, decorators: [{
791
+ type: i0.Injectable,
792
+ args: [{
793
+ providedIn: "root",
794
+ }]
795
+ }], ctorParameters: function () {
796
+ return [{ type: undefined, decorators: [{
797
+ type: i0.Inject,
798
+ args: [TUI_SHEET_OPTIONS]
799
+ }] }];
800
+ } });
748
801
 
749
802
  // Safety offset for shadow
750
- var OFFSET$1 = 16;
751
- // @dynamic
803
+ var OFFSET = 16;
752
804
  var TuiSheetWrapperDirective = /** @class */ (function () {
753
805
  function TuiSheetWrapperDirective(windowRef) {
754
806
  this.windowRef = windowRef;
@@ -761,27 +813,28 @@
761
813
  var _this = this;
762
814
  return this.scroll$.pipe(operators.map(function (y) { return y + 16 > _this.windowRef.innerHeight - _this.tuiSheetWrapper; }));
763
815
  },
764
- enumerable: true,
816
+ enumerable: false,
765
817
  configurable: true
766
818
  });
767
819
  Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
768
820
  get: function () {
769
821
  return processDragged(this.dragged$, this.scroll$);
770
822
  },
771
- enumerable: true,
823
+ enumerable: false,
772
824
  configurable: true
773
825
  });
774
826
  Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
775
827
  get: function () {
776
828
  return this.scroll$.pipe(operators.map(this.getHeight.bind(this)));
777
829
  },
778
- enumerable: true,
830
+ enumerable: false,
779
831
  configurable: true
780
832
  });
781
833
  TuiSheetWrapperDirective.prototype.getHeight = function (value) {
782
834
  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);
835
+ return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
836
+ ? null
837
+ : i3.tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.windowRef.innerHeight);
785
838
  };
786
839
  TuiSheetWrapperDirective.prototype.withImage = function (value) {
787
840
  var _a;
@@ -789,141 +842,267 @@
789
842
  ? value
790
843
  : value - this.sheet.imageHeight;
791
844
  };
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
845
  return TuiSheetWrapperDirective;
831
846
  }());
847
+ 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 });
848
+ 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 });
849
+ __decorate([
850
+ i3.tuiPure
851
+ ], TuiSheetWrapperDirective.prototype, "overlay$", null);
852
+ __decorate([
853
+ i3.tuiPure
854
+ ], TuiSheetWrapperDirective.prototype, "visible$", null);
855
+ __decorate([
856
+ i3.tuiPure
857
+ ], TuiSheetWrapperDirective.prototype, "height$", null);
858
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetWrapperDirective, decorators: [{
859
+ type: i0.Directive,
860
+ args: [{
861
+ selector: "[tuiSheetWrapper]",
862
+ host: {
863
+ '[$.class._overlay]': "overlay$",
864
+ '($.class._overlay)': "overlay$",
865
+ '[$.class._visible]': "visible$",
866
+ '($.class._visible)': "visible$",
867
+ '[$.style.height.px]': "height$",
868
+ '($.style.height.px)': "height$",
869
+ },
870
+ }]
871
+ }], ctorParameters: function () {
872
+ return [{ type: Window, decorators: [{
873
+ type: i0.Inject,
874
+ args: [common.WINDOW]
875
+ }] }];
876
+ }, propDecorators: { sheet: [{
877
+ type: i0.ContentChild,
878
+ args: [TuiSheetComponent]
879
+ }], dragged$: [{
880
+ type: i0.ContentChild,
881
+ args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED }]
882
+ }], scroll$: [{
883
+ type: i0.ContentChild,
884
+ args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL }]
885
+ }], tuiSheetWrapper: [{
886
+ type: i0.Input
887
+ }], overlay$: [], visible$: [], height$: [] } });
888
+
889
+ var TuiSheetCloseDirective = /** @class */ (function () {
890
+ function TuiSheetCloseDirective(ngZone, dragged$, scroll$, windowRef, elementRef, sheet) {
891
+ var _this = this;
892
+ this.ngZone = ngZone;
893
+ this.dragged$ = dragged$;
894
+ this.scroll$ = scroll$;
895
+ this.windowRef = windowRef;
896
+ this.elementRef = elementRef;
897
+ this.sheet = sheet;
898
+ this.close = i1.merge(i3.tuiTypedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(operators.startWith(false), operators.switchMap(function (dragged) { return dragged
899
+ ? i1.EMPTY
900
+ : _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)));
901
+ }
902
+ TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
903
+ var height = Math.min(this.windowRef.innerHeight, this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight);
904
+ var min = Math.min(height, this.sheet.stops[0] || Infinity);
905
+ return scrollTop < min / 2;
906
+ };
907
+ return TuiSheetCloseDirective;
908
+ }());
909
+ 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 });
910
+ 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 });
911
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetCloseDirective, decorators: [{
912
+ type: i0.Directive,
913
+ args: [{
914
+ selector: "tui-sheet[close]",
915
+ }]
916
+ }], ctorParameters: function () {
917
+ return [{ type: i0__namespace.NgZone, decorators: [{
918
+ type: i0.Inject,
919
+ args: [i0.NgZone]
920
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
921
+ type: i0.Inject,
922
+ args: [TUI_SHEET_DRAGGED]
923
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
924
+ type: i0.Inject,
925
+ args: [TUI_SHEET_SCROLL]
926
+ }] }, { type: Window, decorators: [{
927
+ type: i0.Inject,
928
+ args: [common.WINDOW]
929
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
930
+ type: i0.Inject,
931
+ args: [i0.ElementRef]
932
+ }] }, { type: TuiSheetComponent, decorators: [{
933
+ type: i0.Inject,
934
+ args: [TuiSheetComponent]
935
+ }] }];
936
+ }, propDecorators: { close: [{
937
+ type: i0.Output
938
+ }] } });
939
+
940
+ var TuiSheetsHostComponent = /** @class */ (function () {
941
+ function TuiSheetsHostComponent(options, service, height$) {
942
+ this.options = options;
943
+ this.service = service;
944
+ this.height$ = height$;
945
+ }
946
+ TuiSheetsHostComponent.prototype.close = function (_a) {
947
+ var closeable = _a.closeable, $implicit = _a.$implicit;
948
+ if (closeable) {
949
+ $implicit.complete();
950
+ }
951
+ };
952
+ return TuiSheetsHostComponent;
953
+ }());
954
+ 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 });
955
+ 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 });
956
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetsHostComponent, decorators: [{
957
+ type: i0.Component,
958
+ args: [{
959
+ selector: "tui-sheets-host",
960
+ templateUrl: "sheets-host.template.html",
961
+ styleUrls: ["sheets-host.style.less"],
962
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
963
+ animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn],
964
+ }]
965
+ }], ctorParameters: function () {
966
+ return [{ type: undefined, decorators: [{
967
+ type: i0.Inject,
968
+ args: [i1$1.TUI_ANIMATION_OPTIONS]
969
+ }] }, { type: TuiSheetService, decorators: [{
970
+ type: i0.Inject,
971
+ args: [TuiSheetService]
972
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
973
+ type: i0.Inject,
974
+ args: [i3.TUI_WINDOW_HEIGHT]
975
+ }] }];
976
+ } });
832
977
 
833
978
  var TuiSheetDirective = /** @class */ (function (_super) {
834
979
  __extends(TuiSheetDirective, _super);
835
980
  function TuiSheetDirective(changeDetectorRef, templateRef, service) {
836
981
  var _this = _super.call(this, templateRef, changeDetectorRef) || this;
837
982
  _this.service = service;
838
- _this.open$ = new rxjs.Subject();
983
+ _this.open$ = new i1.Subject();
839
984
  _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
- }));
985
+ _this.tuiSheetChange = _this.open$.pipe(operators.switchMap(function (open) { return open
986
+ ? _this.service
987
+ .open(_this, _this.options)
988
+ .pipe(operators.ignoreElements(), operators.endWith(false))
989
+ : i1.EMPTY; }));
847
990
  return _this;
848
991
  }
849
992
  Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
850
993
  set: function (open) {
851
994
  this.open$.next(open);
852
995
  },
853
- enumerable: true,
996
+ enumerable: false,
854
997
  configurable: true
855
998
  });
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
999
  return TuiSheetDirective;
881
- }(ngPolymorpheus.PolymorpheusTemplate));
1000
+ }(i5.PolymorpheusTemplate));
1001
+ 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 });
1002
+ 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 });
1003
+ __decorate([
1004
+ i3.tuiDefaultProp()
1005
+ ], TuiSheetDirective.prototype, "options", void 0);
1006
+ __decorate([
1007
+ i3.tuiRequiredSetter()
1008
+ ], TuiSheetDirective.prototype, "tuiSheet", null);
1009
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetDirective, decorators: [{
1010
+ type: i0.Directive,
1011
+ args: [{
1012
+ selector: "ng-template[tuiSheet]",
1013
+ }]
1014
+ }], ctorParameters: function () {
1015
+ return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1016
+ type: i0.Inject,
1017
+ args: [i0.ChangeDetectorRef]
1018
+ }] }, { type: i0__namespace.TemplateRef, decorators: [{
1019
+ type: i0.Inject,
1020
+ args: [i0.TemplateRef]
1021
+ }] }, { type: TuiSheetService, decorators: [{
1022
+ type: i0.Inject,
1023
+ args: [TuiSheetService]
1024
+ }] }];
1025
+ }, propDecorators: { options: [{
1026
+ type: i0.Input,
1027
+ args: ["tuiSheetOptions"]
1028
+ }], tuiSheet: [{
1029
+ type: i0.Input
1030
+ }], tuiSheetChange: [{
1031
+ type: i0.Output
1032
+ }] } });
882
1033
 
883
1034
  var TuiSheetModule = /** @class */ (function () {
884
1035
  function TuiSheetModule() {
885
1036
  }
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
1037
  return TuiSheetModule;
917
1038
  }());
1039
+ TuiSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1040
+ TuiSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
1041
+ TuiSheetComponent,
1042
+ TuiSheetBarComponent,
1043
+ TuiSheetHeadingComponent,
1044
+ TuiSheetTopDirective,
1045
+ TuiSheetDirective,
1046
+ TuiSheetWrapperDirective,
1047
+ TuiSheetCloseDirective,
1048
+ TuiSheetStopDirective], imports: [i2.CommonModule,
1049
+ i5.PolymorpheusModule,
1050
+ i3.TuiLetModule,
1051
+ i1$1.TuiButtonModule,
1052
+ i3.TuiOverscrollModule,
1053
+ i1$1.TuiScrollbarModule], exports: [TuiSheetsHostComponent,
1054
+ TuiSheetComponent,
1055
+ TuiSheetHeadingComponent,
1056
+ TuiSheetDirective] });
1057
+ TuiSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, imports: [[
1058
+ i2.CommonModule,
1059
+ i5.PolymorpheusModule,
1060
+ i3.TuiLetModule,
1061
+ i1$1.TuiButtonModule,
1062
+ i3.TuiOverscrollModule,
1063
+ i1$1.TuiScrollbarModule,
1064
+ ]] });
1065
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, decorators: [{
1066
+ type: i0.NgModule,
1067
+ args: [{
1068
+ imports: [
1069
+ i2.CommonModule,
1070
+ i5.PolymorpheusModule,
1071
+ i3.TuiLetModule,
1072
+ i1$1.TuiButtonModule,
1073
+ i3.TuiOverscrollModule,
1074
+ i1$1.TuiScrollbarModule,
1075
+ ],
1076
+ declarations: [
1077
+ TuiSheetsHostComponent,
1078
+ TuiSheetComponent,
1079
+ TuiSheetBarComponent,
1080
+ TuiSheetHeadingComponent,
1081
+ TuiSheetTopDirective,
1082
+ TuiSheetDirective,
1083
+ TuiSheetWrapperDirective,
1084
+ TuiSheetCloseDirective,
1085
+ TuiSheetStopDirective,
1086
+ ],
1087
+ exports: [
1088
+ TuiSheetsHostComponent,
1089
+ TuiSheetComponent,
1090
+ TuiSheetHeadingComponent,
1091
+ TuiSheetDirective,
1092
+ ],
1093
+ schemas: [i0.NO_ERRORS_SCHEMA],
1094
+ }]
1095
+ }] });
1096
+
1097
+ /**
1098
+ * Generated bundle index. Do not edit.
1099
+ */
918
1100
 
919
1101
  exports.TUI_SHEET_CLOSE = TUI_SHEET_CLOSE;
920
1102
  exports.TUI_SHEET_DEFAULT_OPTIONS = TUI_SHEET_DEFAULT_OPTIONS;
921
- exports.TUI_SHEET_DRAGGED = TUI_SHEET_DRAGGED;
922
1103
  exports.TUI_SHEET_ID = TUI_SHEET_ID;
923
- exports.TUI_SHEET_OFFSET = TUI_SHEET_OFFSET;
924
1104
  exports.TUI_SHEET_OPTIONS = TUI_SHEET_OPTIONS;
925
1105
  exports.TUI_SHEET_PROVIDERS = TUI_SHEET_PROVIDERS;
926
- exports.TUI_SHEET_SCROLL = TUI_SHEET_SCROLL;
927
1106
  exports.TuiSheetBarComponent = TuiSheetBarComponent;
928
1107
  exports.TuiSheetCloseDirective = TuiSheetCloseDirective;
929
1108
  exports.TuiSheetComponent = TuiSheetComponent;
@@ -938,10 +1117,8 @@
938
1117
  exports.fakeSmoothScroll = fakeSmoothScroll;
939
1118
  exports.iosScrollFactory = iosScrollFactory;
940
1119
  exports.processDragged = processDragged;
941
- exports.sheetDraggedFactory = sheetDraggedFactory;
942
- exports.sheetScrollFactory = sheetScrollFactory;
943
1120
 
944
1121
  Object.defineProperty(exports, '__esModule', { value: true });
945
1122
 
946
- })));
1123
+ }));
947
1124
  //# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.umd.js.map