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

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