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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/components/app-bar/app-bar-back.component.d.ts +1 -1
  2. package/components/app-bar/app-bar.component.d.ts +1 -1
  3. package/components/app-bar/app-bar.directive.d.ts +1 -1
  4. package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
  5. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +1 -1
  6. package/components/mobile-dialog/mobile-dialog.component.d.ts +1 -1
  7. package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -1
  8. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +1 -1
  9. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +1 -1
  10. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +1 -1
  11. package/components/sheet/components/sheet/sheet.component.d.ts +1 -1
  12. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +1 -1
  13. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +1 -1
  14. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +1 -1
  15. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +1 -1
  16. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +1 -1
  17. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +1 -1
  18. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
  19. package/components/sheet/sheet.directive.d.ts +1 -1
  20. package/components/sheet-dialog/sheet-dialog.component.d.ts +1 -1
  21. package/components/sheet-dialog/sheet-dialog.directive.d.ts +1 -1
  22. package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
  23. package/components/tab-bar/tab-bar-item.component.d.ts +1 -1
  24. package/components/tab-bar/tab-bar-item.directive.d.ts +1 -1
  25. package/components/tab-bar/tab-bar.component.d.ts +1 -1
  26. package/components/theme-android/theme-android.component.d.ts +1 -1
  27. package/components/theme-ios/theme-ios.component.d.ts +1 -1
  28. package/const/mobile-alert-options.d.ts +3 -3
  29. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -1
  30. package/directives/mobile-tabs/mobile-tabs.component.d.ts +1 -1
  31. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +1 -1
  32. package/directives/ripple/ripple-styles.component.d.ts +1 -1
  33. package/directives/ripple/ripple.directive.d.ts +1 -1
  34. package/directives/sidebar/sidebar.component.d.ts +1 -1
  35. package/directives/sidebar/sidebar.directive.d.ts +1 -1
  36. package/directives/touchable/touchable.directive.d.ts +1 -1
  37. package/esm2020/components/app-bar/app-bar-back.component.mjs +11 -0
  38. package/esm2020/components/app-bar/app-bar.component.mjs +33 -0
  39. package/{esm2015/components/app-bar/app-bar.directive.js → esm2020/components/app-bar/app-bar.directive.mjs} +3 -3
  40. package/{esm2015/components/app-bar/app-bar.module.js → esm2020/components/app-bar/app-bar.module.mjs} +5 -5
  41. package/esm2020/components/mobile-calendar/mobile-calendar.component.mjs +301 -0
  42. package/{esm2015/components/mobile-calendar/mobile-calendar.module.js → esm2020/components/mobile-calendar/mobile-calendar.module.mjs} +14 -16
  43. package/esm2020/components/mobile-calendar/mobile-calendar.providers.mjs +29 -0
  44. package/esm2020/components/mobile-calendar/mobile-calendar.strategy.mjs +125 -0
  45. package/esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.component.mjs +35 -0
  46. package/{esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js → esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.module.mjs} +6 -6
  47. package/esm2020/components/mobile-dialog/mobile-dialog.component.mjs +32 -0
  48. package/{esm2015/components/mobile-dialog/mobile-dialog.module.js → esm2020/components/mobile-dialog/mobile-dialog.module.mjs} +5 -5
  49. package/esm2020/components/mobile-dialog/mobile-dialog.service.mjs +29 -0
  50. package/esm2020/components/pull-to-refresh/loader-android/loader-android.component.mjs +55 -0
  51. package/esm2020/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +44 -0
  52. package/esm2020/components/pull-to-refresh/pull-to-refresh.component.mjs +69 -0
  53. package/{esm2015/components/pull-to-refresh/pull-to-refresh.module.js → esm2020/components/pull-to-refresh/pull-to-refresh.module.mjs} +5 -5
  54. package/esm2020/components/pull-to-refresh/pull-to-refresh.service.mjs +53 -0
  55. package/esm2020/components/sheet/components/sheet/sheet.component.mjs +121 -0
  56. package/esm2020/components/sheet/components/sheet/sheet.providers.mjs +30 -0
  57. package/{esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js → esm2020/components/sheet/components/sheet-bar/sheet-bar.component.mjs} +7 -12
  58. package/{esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js → esm2020/components/sheet/components/sheet-heading/sheet-heading.component.mjs} +5 -10
  59. package/esm2020/components/sheet/components/sheets-host/sheets-host.component.mjs +61 -0
  60. package/esm2020/components/sheet/directives/sheet-close/sheet-close.directive.mjs +55 -0
  61. package/esm2020/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +47 -0
  62. package/esm2020/components/sheet/directives/sheet-top/sheet-top.directive.mjs +54 -0
  63. package/esm2020/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +78 -0
  64. package/esm2020/components/sheet/ios.hacks.mjs +28 -0
  65. package/esm2020/components/sheet/sheet-options.mjs +21 -0
  66. package/esm2020/components/sheet/sheet.directive.mjs +48 -0
  67. package/{esm2015/components/sheet/sheet.module.js → esm2020/components/sheet/sheet.module.mjs} +10 -12
  68. package/esm2020/components/sheet/sheet.service.mjs +56 -0
  69. package/esm2020/components/sheet-dialog/sheet-dialog.component.mjs +132 -0
  70. package/{esm2015/components/sheet-dialog/sheet-dialog.directive.js → esm2020/components/sheet-dialog/sheet-dialog.directive.mjs} +3 -3
  71. package/{esm2015/components/sheet-dialog/sheet-dialog.module.js → esm2020/components/sheet-dialog/sheet-dialog.module.mjs} +5 -5
  72. package/{esm2015/components/sheet-dialog/sheet-dialog.service.js → esm2020/components/sheet-dialog/sheet-dialog.service.mjs} +8 -5
  73. package/esm2020/components/tab-bar/tab-bar-item.component.mjs +29 -0
  74. package/esm2020/components/tab-bar/tab-bar-item.directive.mjs +44 -0
  75. package/esm2020/components/tab-bar/tab-bar.component.mjs +47 -0
  76. package/{esm2015/components/tab-bar/tab-bar.module.js → esm2020/components/tab-bar/tab-bar.module.mjs} +5 -5
  77. package/{esm2015/components/theme-android/theme-android.component.js → esm2020/components/theme-android/theme-android.component.mjs} +5 -11
  78. package/{esm2015/components/theme-android/theme-android.module.js → esm2020/components/theme-android/theme-android.module.mjs} +4 -4
  79. package/esm2020/components/theme-ios/theme-ios.component.mjs +12 -0
  80. package/{esm2015/components/theme-ios/theme-ios.module.js → esm2020/components/theme-ios/theme-ios.module.mjs} +4 -4
  81. package/esm2020/const/mobile-alert-options.mjs +13 -0
  82. package/{esm2015/directives/elastic-sticky/elastic-sticky.directive.js → esm2020/directives/elastic-sticky/elastic-sticky.directive.mjs} +3 -3
  83. package/{esm2015/directives/elastic-sticky/elastic-sticky.module.js → esm2020/directives/elastic-sticky/elastic-sticky.module.mjs} +4 -4
  84. package/esm2020/directives/elastic-sticky/elastic-sticky.service.mjs +40 -0
  85. package/esm2020/directives/mobile-tabs/mobile-tabs.component.mjs +13 -0
  86. package/{esm2015/directives/mobile-tabs/mobile-tabs.directive.js → esm2020/directives/mobile-tabs/mobile-tabs.directive.mjs} +3 -3
  87. package/{esm2015/directives/mobile-tabs/mobile-tabs.module.js → esm2020/directives/mobile-tabs/mobile-tabs.module.mjs} +4 -4
  88. package/{esm2015/directives/ripple/ripple-styles.component.js → esm2020/directives/ripple/ripple-styles.component.mjs} +6 -12
  89. package/esm2020/directives/ripple/ripple.directive.mjs +66 -0
  90. package/{esm2015/directives/ripple/ripple.module.js → esm2020/directives/ripple/ripple.module.mjs} +4 -4
  91. package/esm2020/directives/ripple/ripple.providers.mjs +42 -0
  92. package/esm2020/directives/sidebar/sidebar.component.mjs +58 -0
  93. package/esm2020/directives/sidebar/sidebar.directive.mjs +72 -0
  94. package/{esm2015/directives/sidebar/sidebar.module.js → esm2020/directives/sidebar/sidebar.module.mjs} +5 -5
  95. package/esm2020/directives/touchable/touchable.directive.mjs +82 -0
  96. package/{esm2015/directives/touchable/touchable.module.js → esm2020/directives/touchable/touchable.module.mjs} +4 -4
  97. package/esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.mjs +34 -0
  98. package/{esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js → esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.mjs} +8 -10
  99. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs +103 -0
  100. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  101. package/fesm2015/{taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +16 -19
  102. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  103. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs +539 -0
  104. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  105. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs +91 -0
  106. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  107. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +257 -0
  108. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  109. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs +215 -0
  110. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  111. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs +687 -0
  112. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  113. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs +137 -0
  114. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  115. package/fesm2015/{taiga-ui-addon-mobile-components-theme-android.js → taiga-ui-addon-mobile-components-theme-android.mjs} +9 -15
  116. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  117. package/fesm2015/{taiga-ui-addon-mobile-components-theme-ios.js → taiga-ui-addon-mobile-components-theme-ios.mjs} +9 -15
  118. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  119. package/fesm2015/{taiga-ui-addon-mobile-components.js → taiga-ui-addon-mobile-components.mjs} +1 -1
  120. package/fesm2015/taiga-ui-addon-mobile-components.mjs.map +1 -0
  121. package/fesm2015/{taiga-ui-addon-mobile-const.js → taiga-ui-addon-mobile-const.mjs} +1 -1
  122. package/fesm2015/taiga-ui-addon-mobile-const.mjs.map +1 -0
  123. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +85 -0
  124. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  125. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +87 -0
  126. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  127. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs +136 -0
  128. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  129. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs +143 -0
  130. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  131. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs +104 -0
  132. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  133. package/fesm2015/{taiga-ui-addon-mobile-directives.js → taiga-ui-addon-mobile-directives.mjs} +1 -1
  134. package/fesm2015/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  135. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  136. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  137. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs +72 -0
  138. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  139. package/fesm2015/{taiga-ui-addon-mobile-internal.js → taiga-ui-addon-mobile-internal.mjs} +1 -1
  140. package/fesm2015/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  141. package/fesm2015/taiga-ui-addon-mobile-types.mjs +4 -0
  142. package/fesm2015/taiga-ui-addon-mobile-types.mjs.map +1 -0
  143. package/fesm2015/{taiga-ui-addon-mobile-utils.js → taiga-ui-addon-mobile-utils.mjs} +1 -1
  144. package/fesm2015/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  145. package/fesm2015/{taiga-ui-addon-mobile.js → taiga-ui-addon-mobile.mjs} +1 -1
  146. package/fesm2015/taiga-ui-addon-mobile.mjs.map +1 -0
  147. package/{fesm2015/taiga-ui-addon-mobile-components-app-bar.js → fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs} +19 -34
  148. package/fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  149. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs +69 -0
  150. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  151. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js → fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +36 -51
  152. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  153. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js → fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +22 -25
  154. package/fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  155. package/{fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js → fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +25 -42
  156. package/fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  157. package/{fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js → fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +25 -31
  158. package/fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  159. package/{fesm2015/taiga-ui-addon-mobile-components-sheet.js → fesm2020/taiga-ui-addon-mobile-components-sheet.mjs} +86 -108
  160. package/fesm2020/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  161. package/{fesm2015/taiga-ui-addon-mobile-components-tab-bar.js → fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs} +19 -30
  162. package/fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  163. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs +32 -0
  164. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  165. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs +32 -0
  166. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  167. package/fesm2020/taiga-ui-addon-mobile-components.mjs +15 -0
  168. package/fesm2020/taiga-ui-addon-mobile-components.mjs.map +1 -0
  169. package/fesm2020/taiga-ui-addon-mobile-const.mjs +19 -0
  170. package/fesm2020/taiga-ui-addon-mobile-const.mjs.map +1 -0
  171. package/{fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js → fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +12 -13
  172. package/fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  173. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +85 -0
  174. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  175. package/{fesm2015/taiga-ui-addon-mobile-directives-ripple.js → fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs} +14 -21
  176. package/fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  177. package/{fesm2015/taiga-ui-addon-mobile-directives-sidebar.js → fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs} +28 -28
  178. package/fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  179. package/{fesm2015/taiga-ui-addon-mobile-directives-touchable.js → fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs} +10 -11
  180. package/fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  181. package/fesm2020/taiga-ui-addon-mobile-directives.mjs +10 -0
  182. package/fesm2020/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  183. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  184. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  185. package/{fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +13 -21
  186. package/fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  187. package/fesm2020/taiga-ui-addon-mobile-internal.mjs +6 -0
  188. package/fesm2020/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  189. package/fesm2020/taiga-ui-addon-mobile-types.mjs +4 -0
  190. package/fesm2020/taiga-ui-addon-mobile-types.mjs.map +1 -0
  191. package/fesm2020/taiga-ui-addon-mobile-utils.mjs +16 -0
  192. package/fesm2020/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  193. package/fesm2020/taiga-ui-addon-mobile.mjs +11 -0
  194. package/fesm2020/taiga-ui-addon-mobile.mjs.map +1 -0
  195. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +1 -1
  196. package/package.json +229 -32
  197. package/styles/android/checkbox.less +16 -13
  198. package/styles/android/radio.less +7 -5
  199. package/styles/android/toggle.less +3 -4
  200. package/styles/common/badge.less +3 -3
  201. package/styles/ios/checkbox.less +17 -9
  202. package/styles/ios/toggle.less +8 -11
  203. package/types/touch-mode.d.ts +1 -1
  204. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +0 -149
  205. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +0 -1
  206. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +0 -129
  207. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +0 -1
  208. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +0 -929
  209. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +0 -1
  210. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +0 -450
  211. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +0 -1
  212. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +0 -677
  213. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +0 -1
  214. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +0 -596
  215. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +0 -1
  216. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +0 -1153
  217. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +0 -1
  218. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +0 -188
  219. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +0 -1
  220. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +0 -391
  221. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +0 -1
  222. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +0 -391
  223. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +0 -1
  224. package/bundles/taiga-ui-addon-mobile-components.umd.js +0 -75
  225. package/bundles/taiga-ui-addon-mobile-components.umd.js.map +0 -1
  226. package/bundles/taiga-ui-addon-mobile-const.umd.js +0 -24
  227. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +0 -1
  228. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +0 -437
  229. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +0 -1
  230. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +0 -131
  231. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +0 -1
  232. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +0 -195
  233. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +0 -1
  234. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +0 -524
  235. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +0 -1
  236. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +0 -144
  237. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +0 -1
  238. package/bundles/taiga-ui-addon-mobile-directives.umd.js +0 -45
  239. package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +0 -1
  240. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +0 -11
  241. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +0 -1
  242. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +0 -429
  243. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +0 -1
  244. package/bundles/taiga-ui-addon-mobile-internal.umd.js +0 -21
  245. package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +0 -1
  246. package/bundles/taiga-ui-addon-mobile-types.umd.js +0 -11
  247. package/bundles/taiga-ui-addon-mobile-types.umd.js.map +0 -1
  248. package/bundles/taiga-ui-addon-mobile-utils.umd.js +0 -26
  249. package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +0 -1
  250. package/bundles/taiga-ui-addon-mobile.umd.js +0 -51
  251. package/bundles/taiga-ui-addon-mobile.umd.js.map +0 -1
  252. package/components/app-bar/package.json +0 -10
  253. package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +0 -5
  254. package/components/mobile-calendar/package.json +0 -10
  255. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +0 -5
  256. package/components/mobile-calendar-dialog/package.json +0 -10
  257. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +0 -5
  258. package/components/mobile-dialog/package.json +0 -10
  259. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +0 -5
  260. package/components/package.json +0 -10
  261. package/components/pull-to-refresh/package.json +0 -10
  262. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +0 -5
  263. package/components/sheet/package.json +0 -10
  264. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +0 -5
  265. package/components/sheet-dialog/package.json +0 -10
  266. package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +0 -5
  267. package/components/tab-bar/package.json +0 -10
  268. package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +0 -5
  269. package/components/taiga-ui-addon-mobile-components.d.ts +0 -5
  270. package/components/theme-android/package.json +0 -10
  271. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +0 -5
  272. package/components/theme-ios/package.json +0 -10
  273. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +0 -5
  274. package/const/package.json +0 -10
  275. package/const/taiga-ui-addon-mobile-const.d.ts +0 -5
  276. package/directives/elastic-sticky/package.json +0 -10
  277. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +0 -5
  278. package/directives/mobile-tabs/package.json +0 -10
  279. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +0 -5
  280. package/directives/package.json +0 -10
  281. package/directives/ripple/package.json +0 -10
  282. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +0 -5
  283. package/directives/sidebar/package.json +0 -10
  284. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +0 -5
  285. package/directives/taiga-ui-addon-mobile-directives.d.ts +0 -5
  286. package/directives/touchable/package.json +0 -10
  287. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +0 -5
  288. package/esm2015/components/app-bar/app-bar-back.component.js +0 -16
  289. package/esm2015/components/app-bar/app-bar.component.js +0 -43
  290. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +0 -314
  291. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +0 -30
  292. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +0 -126
  293. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -45
  294. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +0 -38
  295. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +0 -26
  296. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +0 -60
  297. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -49
  298. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +0 -75
  299. package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +0 -54
  300. package/esm2015/components/sheet/components/sheet/sheet.component.js +0 -128
  301. package/esm2015/components/sheet/components/sheet/sheet.providers.js +0 -31
  302. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +0 -68
  303. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
  304. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -47
  305. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -54
  306. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -81
  307. package/esm2015/components/sheet/ios.hacks.js +0 -29
  308. package/esm2015/components/sheet/sheet-options.js +0 -19
  309. package/esm2015/components/sheet/sheet.directive.js +0 -49
  310. package/esm2015/components/sheet/sheet.service.js +0 -51
  311. package/esm2015/components/sheet-dialog/sheet-dialog.component.js +0 -141
  312. package/esm2015/components/tab-bar/tab-bar-item.component.js +0 -35
  313. package/esm2015/components/tab-bar/tab-bar-item.directive.js +0 -44
  314. package/esm2015/components/tab-bar/tab-bar.component.js +0 -52
  315. package/esm2015/components/theme-ios/theme-ios.component.js +0 -18
  316. package/esm2015/const/mobile-alert-options.js +0 -7
  317. package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +0 -41
  318. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +0 -19
  319. package/esm2015/directives/ripple/ripple.directive.js +0 -67
  320. package/esm2015/directives/ripple/ripple.providers.js +0 -43
  321. package/esm2015/directives/sidebar/sidebar.component.js +0 -58
  322. package/esm2015/directives/sidebar/sidebar.directive.js +0 -72
  323. package/esm2015/directives/touchable/touchable.directive.js +0 -83
  324. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -40
  325. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +0 -1
  326. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  327. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  328. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  329. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  330. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +0 -1
  331. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  332. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +0 -1
  333. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  334. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  335. package/fesm2015/taiga-ui-addon-mobile-components.js.map +0 -1
  336. package/fesm2015/taiga-ui-addon-mobile-const.js.map +0 -1
  337. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  338. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -91
  339. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  340. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  341. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  342. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  343. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +0 -1
  344. package/fesm2015/taiga-ui-addon-mobile-interfaces.js +0 -4
  345. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  346. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  347. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +0 -1
  348. package/fesm2015/taiga-ui-addon-mobile-types.js +0 -4
  349. package/fesm2015/taiga-ui-addon-mobile-types.js.map +0 -1
  350. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +0 -1
  351. package/fesm2015/taiga-ui-addon-mobile.js.map +0 -1
  352. package/interfaces/package.json +0 -10
  353. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +0 -5
  354. package/internal/package.json +0 -10
  355. package/internal/primitive-calendar-mobile/package.json +0 -10
  356. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +0 -5
  357. package/internal/taiga-ui-addon-mobile-internal.d.ts +0 -5
  358. package/taiga-ui-addon-mobile.d.ts +0 -5
  359. package/types/package.json +0 -10
  360. package/types/taiga-ui-addon-mobile-types.d.ts +0 -5
  361. package/utils/package.json +0 -10
  362. package/utils/taiga-ui-addon-mobile-utils.d.ts +0 -5
  363. /package/{esm2015/components/app-bar/app-bar.providers.js → esm2020/components/app-bar/app-bar.providers.mjs} +0 -0
  364. /package/{esm2015/components/app-bar/index.js → esm2020/components/app-bar/index.mjs} +0 -0
  365. /package/{esm2015/components/app-bar/taiga-ui-addon-mobile-components-app-bar.js → esm2020/components/app-bar/taiga-ui-addon-mobile-components-app-bar.mjs} +0 -0
  366. /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
  367. /package/{esm2015/components/mobile-calendar/index.js → esm2020/components/mobile-calendar/index.mjs} +0 -0
  368. /package/{esm2015/components/mobile-calendar/mobile-calendar.const.js → esm2020/components/mobile-calendar/mobile-calendar.const.mjs} +0 -0
  369. /package/{esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js → esm2020/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +0 -0
  370. /package/{esm2015/components/mobile-calendar-dialog/index.js → esm2020/components/mobile-calendar-dialog/index.mjs} +0 -0
  371. /package/{esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → esm2020/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +0 -0
  372. /package/{esm2015/components/mobile-dialog/index.js → esm2020/components/mobile-dialog/index.mjs} +0 -0
  373. /package/{esm2015/components/mobile-dialog/mobile-dialog-options.js → esm2020/components/mobile-dialog/mobile-dialog-options.mjs} +0 -0
  374. /package/{esm2015/components/mobile-dialog/mobile-dialog.options.js → esm2020/components/mobile-dialog/mobile-dialog.options.mjs} +0 -0
  375. /package/{esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js → esm2020/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +0 -0
  376. /package/{esm2015/components/pull-to-refresh/index.js → esm2020/components/pull-to-refresh/index.mjs} +0 -0
  377. /package/{esm2015/components/pull-to-refresh/pull-to-refresh.providers.js → esm2020/components/pull-to-refresh/pull-to-refresh.providers.mjs} +0 -0
  378. /package/{esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js → esm2020/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +0 -0
  379. /package/{esm2015/components/sheet/index.js → esm2020/components/sheet/index.mjs} +0 -0
  380. /package/{esm2015/components/sheet/sheet-tokens.js → esm2020/components/sheet/sheet-tokens.mjs} +0 -0
  381. /package/{esm2015/components/sheet/sheet.js → esm2020/components/sheet/sheet.mjs} +0 -0
  382. /package/{esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js → esm2020/components/sheet/taiga-ui-addon-mobile-components-sheet.mjs} +0 -0
  383. /package/{esm2015/components/sheet-dialog/index.js → esm2020/components/sheet-dialog/index.mjs} +0 -0
  384. /package/{esm2015/components/sheet-dialog/sheet-dialog.options.js → esm2020/components/sheet-dialog/sheet-dialog.options.mjs} +0 -0
  385. /package/{esm2015/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.js → esm2020/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +0 -0
  386. /package/{esm2015/components/tab-bar/index.js → esm2020/components/tab-bar/index.mjs} +0 -0
  387. /package/{esm2015/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.js → esm2020/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.mjs} +0 -0
  388. /package/{esm2015/components/taiga-ui-addon-mobile-components.js → esm2020/components/taiga-ui-addon-mobile-components.mjs} +0 -0
  389. /package/{esm2015/components/theme-android/index.js → esm2020/components/theme-android/index.mjs} +0 -0
  390. /package/{esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js → esm2020/components/theme-android/taiga-ui-addon-mobile-components-theme-android.mjs} +0 -0
  391. /package/{esm2015/components/theme-ios/index.js → esm2020/components/theme-ios/index.mjs} +0 -0
  392. /package/{esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js → esm2020/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.mjs} +0 -0
  393. /package/{esm2015/const/index.js → esm2020/const/index.mjs} +0 -0
  394. /package/{esm2015/const/taiga-ui-addon-mobile-const.js → esm2020/const/taiga-ui-addon-mobile-const.mjs} +0 -0
  395. /package/{esm2015/directives/elastic-sticky/index.js → esm2020/directives/elastic-sticky/index.mjs} +0 -0
  396. /package/{esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js → esm2020/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +0 -0
  397. /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
  398. /package/{esm2015/directives/mobile-tabs/index.js → esm2020/directives/mobile-tabs/index.mjs} +0 -0
  399. /package/{esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js → esm2020/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.mjs} +0 -0
  400. /package/{esm2015/directives/ripple/index.js → esm2020/directives/ripple/index.mjs} +0 -0
  401. /package/{esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js → esm2020/directives/ripple/taiga-ui-addon-mobile-directives-ripple.mjs} +0 -0
  402. /package/{esm2015/directives/sidebar/index.js → esm2020/directives/sidebar/index.mjs} +0 -0
  403. /package/{esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js → esm2020/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.mjs} +0 -0
  404. /package/{esm2015/directives/taiga-ui-addon-mobile-directives.js → esm2020/directives/taiga-ui-addon-mobile-directives.mjs} +0 -0
  405. /package/{esm2015/directives/touchable/index.js → esm2020/directives/touchable/index.mjs} +0 -0
  406. /package/{esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js → esm2020/directives/touchable/taiga-ui-addon-mobile-directives-touchable.mjs} +0 -0
  407. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  408. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  409. /package/{esm2015/interfaces/mobile-alert-data.js → esm2020/interfaces/mobile-alert-data.mjs} +0 -0
  410. /package/{esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js → esm2020/interfaces/taiga-ui-addon-mobile-interfaces.mjs} +0 -0
  411. /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
  412. /package/{esm2015/internal/primitive-calendar-mobile/index.js → esm2020/internal/primitive-calendar-mobile/index.mjs} +0 -0
  413. /package/{esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → esm2020/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +0 -0
  414. /package/{esm2015/internal/taiga-ui-addon-mobile-internal.js → esm2020/internal/taiga-ui-addon-mobile-internal.mjs} +0 -0
  415. /package/{esm2015/taiga-ui-addon-mobile.js → esm2020/taiga-ui-addon-mobile.mjs} +0 -0
  416. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  417. /package/{esm2015/types/taiga-ui-addon-mobile-types.js → esm2020/types/taiga-ui-addon-mobile-types.mjs} +0 -0
  418. /package/{esm2015/types/touch-mode.js → esm2020/types/touch-mode.mjs} +0 -0
  419. /package/{esm2015/utils/find-touch-index.js → esm2020/utils/find-touch-index.mjs} +0 -0
  420. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  421. /package/{esm2015/utils/taiga-ui-addon-mobile-utils.js → esm2020/utils/taiga-ui-addon-mobile-utils.mjs} +0 -0
@@ -0,0 +1,87 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, Inject, HostBinding, NgModule } from '@angular/core';
3
+ import * as i1 from '@taiga-ui/cdk';
4
+ import { TUI_IS_IOS, TUI_IS_ANDROID, TuiDirectiveStylesService } from '@taiga-ui/cdk';
5
+ import { TUI_TAB_MARGIN } from '@taiga-ui/kit';
6
+
7
+ class TuiMobileTabsComponent {
8
+ }
9
+ TuiMobileTabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ TuiMobileTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiMobileTabsComponent, selector: "ng-component", host: { classAttribute: "tui-mobile-tabs-styles" }, ngImport: i0, template: '', isInline: true, styles: ["tui-tabs[tuiMobileTabs][data-platform=android],[tuiTabs][tuiMobileTabs][data-platform=android],[tuiMobileTabs] tui-tabs[data-platform=android],[tuiMobileTabs] [tuiTabs][data-platform=android]{height:auto}tui-tabs[tuiMobileTabs][data-platform=android] tui-underline,[tuiTabs][tuiMobileTabs][data-platform=android] tui-underline,[tuiMobileTabs] tui-tabs[data-platform=android] tui-underline,[tuiMobileTabs] [tuiTabs][data-platform=android] tui-underline{box-shadow:inset 0 -.1875rem var(--tui-link)}tui-tabs[tuiMobileTabs][data-platform=android] [tuiTab],[tuiTabs][tuiMobileTabs][data-platform=android] [tuiTab],[tuiMobileTabs] tui-tabs[data-platform=android] [tuiTab],[tuiMobileTabs] [tuiTabs][data-platform=android] [tuiTab]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:3rem;flex:1;flex-shrink:0;justify-content:center;text-transform:uppercase;color:var(--tui-base-09);opacity:.5;font-size:.875rem;font-weight:500;letter-spacing:-.008125rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}tui-tabs[tuiMobileTabs][data-platform=android] [tuiTab]:hover,[tuiTabs][tuiMobileTabs][data-platform=android] [tuiTab]:hover,[tuiMobileTabs] tui-tabs[data-platform=android] [tuiTab]:hover,[tuiMobileTabs] [tuiTabs][data-platform=android] [tuiTab]:hover{box-shadow:none}tui-tabs[tuiMobileTabs][data-platform=android] [tuiTab]._active,[tuiTabs][tuiMobileTabs][data-platform=android] [tuiTab]._active,[tuiMobileTabs] tui-tabs[data-platform=android] [tuiTab]._active,[tuiMobileTabs] [tuiTabs][data-platform=android] [tuiTab]._active{opacity:1;color:var(--tui-base-09)}tui-tabs[tuiMobileTabs][data-platform=ios],[tuiTabs][tuiMobileTabs][data-platform=ios],[tuiMobileTabs] tui-tabs[data-platform=ios],[tuiMobileTabs] [tuiTabs][data-platform=ios]{height:auto;border:2px solid transparent;border-radius:.5625rem;background:var(--tui-clear);box-shadow:none;overflow:visible}tui-tabs[tuiMobileTabs][data-platform=ios] tui-underline,[tuiTabs][tuiMobileTabs][data-platform=ios] tui-underline,[tuiMobileTabs] tui-tabs[data-platform=ios] tui-underline,[tuiMobileTabs] [tuiTabs][data-platform=ios] tui-underline{border-radius:.4375rem;background:var(--tui-base-01);box-shadow:0 .1875rem .0625rem #0000000a,0 .1875rem .5rem #0000001f}tui-tabs[tuiMobileTabs][data-platform=ios] [tuiTab],[tuiTabs][tuiMobileTabs][data-platform=ios] [tuiTab],[tuiMobileTabs] tui-tabs[data-platform=ios] [tuiTab],[tuiMobileTabs] [tuiTabs][data-platform=ios] [tuiTab]{height:1.75rem;flex:1;flex-shrink:0;justify-content:center;color:var(--tui-text-01);opacity:1;font-size:.8125rem;font-weight:600;letter-spacing:-.005rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}tui-tabs[tuiMobileTabs][data-platform=ios] [tuiTab]:hover,[tuiTabs][tuiMobileTabs][data-platform=ios] [tuiTab]:hover,[tuiMobileTabs] tui-tabs[data-platform=ios] [tuiTab]:hover,[tuiMobileTabs] [tuiTabs][data-platform=ios] [tuiTab]:hover{box-shadow:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsComponent, decorators: [{
12
+ type: Component,
13
+ args: [{ host: {
14
+ class: 'tui-mobile-tabs-styles',
15
+ }, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["tui-tabs[tuiMobileTabs][data-platform=android],[tuiTabs][tuiMobileTabs][data-platform=android],[tuiMobileTabs] tui-tabs[data-platform=android],[tuiMobileTabs] [tuiTabs][data-platform=android]{height:auto}tui-tabs[tuiMobileTabs][data-platform=android] tui-underline,[tuiTabs][tuiMobileTabs][data-platform=android] tui-underline,[tuiMobileTabs] tui-tabs[data-platform=android] tui-underline,[tuiMobileTabs] [tuiTabs][data-platform=android] tui-underline{box-shadow:inset 0 -.1875rem var(--tui-link)}tui-tabs[tuiMobileTabs][data-platform=android] [tuiTab],[tuiTabs][tuiMobileTabs][data-platform=android] [tuiTab],[tuiMobileTabs] tui-tabs[data-platform=android] [tuiTab],[tuiMobileTabs] [tuiTabs][data-platform=android] [tuiTab]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:3rem;flex:1;flex-shrink:0;justify-content:center;text-transform:uppercase;color:var(--tui-base-09);opacity:.5;font-size:.875rem;font-weight:500;letter-spacing:-.008125rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}tui-tabs[tuiMobileTabs][data-platform=android] [tuiTab]:hover,[tuiTabs][tuiMobileTabs][data-platform=android] [tuiTab]:hover,[tuiMobileTabs] tui-tabs[data-platform=android] [tuiTab]:hover,[tuiMobileTabs] [tuiTabs][data-platform=android] [tuiTab]:hover{box-shadow:none}tui-tabs[tuiMobileTabs][data-platform=android] [tuiTab]._active,[tuiTabs][tuiMobileTabs][data-platform=android] [tuiTab]._active,[tuiMobileTabs] tui-tabs[data-platform=android] [tuiTab]._active,[tuiMobileTabs] [tuiTabs][data-platform=android] [tuiTab]._active{opacity:1;color:var(--tui-base-09)}tui-tabs[tuiMobileTabs][data-platform=ios],[tuiTabs][tuiMobileTabs][data-platform=ios],[tuiMobileTabs] tui-tabs[data-platform=ios],[tuiMobileTabs] [tuiTabs][data-platform=ios]{height:auto;border:2px solid transparent;border-radius:.5625rem;background:var(--tui-clear);box-shadow:none;overflow:visible}tui-tabs[tuiMobileTabs][data-platform=ios] tui-underline,[tuiTabs][tuiMobileTabs][data-platform=ios] tui-underline,[tuiMobileTabs] tui-tabs[data-platform=ios] tui-underline,[tuiMobileTabs] [tuiTabs][data-platform=ios] tui-underline{border-radius:.4375rem;background:var(--tui-base-01);box-shadow:0 .1875rem .0625rem #0000000a,0 .1875rem .5rem #0000001f}tui-tabs[tuiMobileTabs][data-platform=ios] [tuiTab],[tuiTabs][tuiMobileTabs][data-platform=ios] [tuiTab],[tuiMobileTabs] tui-tabs[data-platform=ios] [tuiTab],[tuiMobileTabs] [tuiTabs][data-platform=ios] [tuiTab]{height:1.75rem;flex:1;flex-shrink:0;justify-content:center;color:var(--tui-text-01);opacity:1;font-size:.8125rem;font-weight:600;letter-spacing:-.005rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}tui-tabs[tuiMobileTabs][data-platform=ios] [tuiTab]:hover,[tuiTabs][tuiMobileTabs][data-platform=ios] [tuiTab]:hover,[tuiMobileTabs] tui-tabs[data-platform=ios] [tuiTab]:hover,[tuiMobileTabs] [tuiTabs][data-platform=ios] [tuiTab]:hover{box-shadow:none}\n"] }]
16
+ }] });
17
+
18
+ class TuiMobileTabsDirective {
19
+ constructor(isIos, isAndroid, directiveStyles) {
20
+ this.isIos = isIos;
21
+ this.isAndroid = isAndroid;
22
+ directiveStyles.addComponent(TuiMobileTabsComponent);
23
+ }
24
+ // TODO: Refactor with TUI_PLATFORM
25
+ get platform() {
26
+ if (this.isIos) {
27
+ return 'ios';
28
+ }
29
+ if (this.isAndroid) {
30
+ return 'android';
31
+ }
32
+ return null;
33
+ }
34
+ }
35
+ TuiMobileTabsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsDirective, deps: [{ token: TUI_IS_IOS }, { token: TUI_IS_ANDROID }, { token: TuiDirectiveStylesService }], target: i0.ɵɵFactoryTarget.Directive });
36
+ TuiMobileTabsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiMobileTabsDirective, selector: "[tuiMobileTabs]", host: { properties: { "attr.data-platform": "this.platform" } }, providers: [
37
+ {
38
+ provide: TUI_TAB_MARGIN,
39
+ useValue: 0,
40
+ },
41
+ ], ngImport: i0 });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsDirective, decorators: [{
43
+ type: Directive,
44
+ args: [{
45
+ selector: '[tuiMobileTabs]',
46
+ providers: [
47
+ {
48
+ provide: TUI_TAB_MARGIN,
49
+ useValue: 0,
50
+ },
51
+ ],
52
+ }]
53
+ }], ctorParameters: function () {
54
+ return [{ type: undefined, decorators: [{
55
+ type: Inject,
56
+ args: [TUI_IS_IOS]
57
+ }] }, { type: undefined, decorators: [{
58
+ type: Inject,
59
+ args: [TUI_IS_ANDROID]
60
+ }] }, { type: i1.TuiDirectiveStylesService, decorators: [{
61
+ type: Inject,
62
+ args: [TuiDirectiveStylesService]
63
+ }] }];
64
+ }, propDecorators: { platform: [{
65
+ type: HostBinding,
66
+ args: ['attr.data-platform']
67
+ }] } });
68
+
69
+ class TuiMobileTabsModule {
70
+ }
71
+ TuiMobileTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72
+ TuiMobileTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsModule, declarations: [TuiMobileTabsDirective, TuiMobileTabsComponent], exports: [TuiMobileTabsDirective, TuiMobileTabsComponent] });
73
+ TuiMobileTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsModule });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileTabsModule, decorators: [{
75
+ type: NgModule,
76
+ args: [{
77
+ declarations: [TuiMobileTabsDirective, TuiMobileTabsComponent],
78
+ exports: [TuiMobileTabsDirective, TuiMobileTabsComponent],
79
+ }]
80
+ }] });
81
+
82
+ /**
83
+ * Generated bundle index. Do not edit.
84
+ */
85
+
86
+ export { TuiMobileTabsComponent, TuiMobileTabsDirective, TuiMobileTabsModule };
87
+ //# sourceMappingURL=taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives-mobile-tabs.mjs","sources":["../../../projects/addon-mobile/directives/mobile-tabs/mobile-tabs.component.ts","../../../projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts","../../../projects/addon-mobile/directives/mobile-tabs/mobile-tabs.module.ts","../../../projects/addon-mobile/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n host: {\n class: 'tui-mobile-tabs-styles',\n },\n template: '',\n styleUrls: ['./mobile-tabs.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMobileTabsComponent {}\n","import {Directive, HostBinding, Inject} from '@angular/core';\nimport {\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n TuiDirectiveStylesService,\n TuiPlatform,\n} from '@taiga-ui/cdk';\nimport {TUI_TAB_MARGIN} from '@taiga-ui/kit';\n\nimport {TuiMobileTabsComponent} from './mobile-tabs.component';\n\n@Directive({\n selector: '[tuiMobileTabs]',\n providers: [\n {\n provide: TUI_TAB_MARGIN,\n useValue: 0,\n },\n ],\n})\nexport class TuiMobileTabsDirective {\n constructor(\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n @Inject(TUI_IS_ANDROID) private readonly isAndroid: boolean,\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addComponent(TuiMobileTabsComponent);\n }\n\n // TODO: Refactor with TUI_PLATFORM\n @HostBinding('attr.data-platform')\n get platform(): TuiPlatform | null {\n if (this.isIos) {\n return 'ios';\n }\n\n if (this.isAndroid) {\n return 'android';\n }\n\n return null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMobileTabsComponent} from './mobile-tabs.component';\nimport {TuiMobileTabsDirective} from './mobile-tabs.directive';\n\n@NgModule({\n declarations: [TuiMobileTabsDirective, TuiMobileTabsComponent],\n exports: [TuiMobileTabsDirective, TuiMobileTabsComponent],\n})\nexport class TuiMobileTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,wGALrB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,i8FAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4FAKH,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBATlC,SAAS;AACA,YAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,wBAAwB;qBAClC,EACS,QAAA,EAAA,EAAE,iBAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,i8FAAA,CAAA,EAAA,CAAA;;;MCWtC,sBAAsB,CAAA;AAC/B,IAAA,WAAA,CACyC,KAAc,EACV,SAAkB,EACxB,eAA0C,EAAA;AAFxC,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK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EAAE,cAAc;AACvB,4BAAA,QAAQ,EAAE,CAAC;AACd,yBAAA;AACJ,qBAAA;iBACJ,CAAA;;;8BAGQ,MAAM;+BAAC,UAAU,CAAA;;8BACjB,MAAM;+BAAC,cAAc,CAAA;;8BACrB,MAAM;+BAAC,yBAAyB,CAAA;;yBAOjC,QAAQ,EAAA,CAAA;sBADX,WAAW;uBAAC,oBAAoB,CAAA;;;MCrBxB,mBAAmB,CAAA;;iHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,iBAHb,sBAAsB,EAAE,sBAAsB,CACnD,EAAA,OAAA,EAAA,CAAA,sBAAsB,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA;kHAE/C,mBAAmB,EAAA,CAAA,CAAA;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;iBAC5D,CAAA;;;ACRD;;AAEG;;;;"}
@@ -0,0 +1,136 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, ElementRef, Renderer2, Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, Inject, Self, Input, NgModule } from '@angular/core';
3
+ import * as i1 from '@taiga-ui/cdk';
4
+ import { TuiDestroyService, TUI_TOUCH_SUPPORTED, TUI_IS_IOS, tuiTypedFromEvent, tuiPx, tuiIsPresent, ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, TuiDirectiveStylesService } from '@taiga-ui/cdk';
5
+ import * as i2 from 'rxjs';
6
+ import { EMPTY, map, filter, takeUntil, mergeMap, race, timer, take, tap, switchMap } from 'rxjs';
7
+
8
+ const RIPPLE_ON = `tuiRippleOn`;
9
+ const RIPPLE_OFF = `tuiRippleOff`;
10
+ /**
11
+ * Stream of ripple elements to add
12
+ */
13
+ const TUI_RIPPLE_START = new InjectionToken(`[TUI_RIPPLE_START]`);
14
+ /**
15
+ * Stream of ripple elements to remove
16
+ */
17
+ const TUI_RIPPLE_END = new InjectionToken(`[TUI_RIPPLE_END]`);
18
+ const TUI_RIPPLE_PROVIDERS = [
19
+ TuiDestroyService,
20
+ {
21
+ provide: TUI_RIPPLE_START,
22
+ deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, Renderer2],
23
+ useFactory: (touchSupported, isIOS, { nativeElement }, renderer) => isIOS || !touchSupported
24
+ ? EMPTY
25
+ : tuiTypedFromEvent(nativeElement, `touchstart`).pipe(map(({ touches }) => {
26
+ const { clientX, clientY } = touches[touches.length - 1];
27
+ const { width, height, top, left } = nativeElement.getBoundingClientRect();
28
+ const radius = Math.sqrt(width * width + height * height);
29
+ const dimension = radius * 2;
30
+ const x = clientX - left - radius;
31
+ const y = clientY - top - radius;
32
+ const ripple = renderer.createElement(`div`);
33
+ renderer.addClass(ripple, `tui-ripple`);
34
+ renderer.setAttribute(ripple, `style`, `width: ${tuiPx(dimension)}; height: ${tuiPx(dimension)}; left: ${tuiPx(x)}; top: ${tuiPx(y)}; animation-name: ${RIPPLE_ON};`);
35
+ return ripple;
36
+ })),
37
+ },
38
+ {
39
+ provide: TUI_RIPPLE_END,
40
+ deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, TuiDestroyService],
41
+ useFactory: (touchSupported, isIOS, { nativeElement }, destroy$) => isIOS || !touchSupported
42
+ ? EMPTY
43
+ : tuiTypedFromEvent(nativeElement, `animationend`).pipe(filter(({ animationName }) => animationName === RIPPLE_OFF), map(({ target }) => target), filter(tuiIsPresent), takeUntil(destroy$)),
44
+ },
45
+ ];
46
+
47
+ class TuiRippleStylesComponent {
48
+ }
49
+ TuiRippleStylesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleStylesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
+ TuiRippleStylesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiRippleStylesComponent, selector: "ng-component", host: { classAttribute: "tui-ripple-styles" }, ngImport: i0, template: '', isInline: true, styles: ["@keyframes tuiRippleOn{0%{transform:scale(0);opacity:.12}to{transform:none;opacity:.12}}@keyframes tuiRippleOff{0%{transform:none;opacity:.12}to{transform:none;opacity:0}}*[tuiRipple]{position:relative;overflow:hidden}.tui-ripple{position:absolute;z-index:100;border-radius:100%;background:currentColor;transform:scale(0);animation-duration:.45s;animation-fill-mode:forwards;pointer-events:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleStylesComponent, decorators: [{
52
+ type: Component,
53
+ args: [{ host: {
54
+ class: 'tui-ripple-styles',
55
+ }, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@keyframes tuiRippleOn{0%{transform:scale(0);opacity:.12}to{transform:none;opacity:.12}}@keyframes tuiRippleOff{0%{transform:none;opacity:.12}to{transform:none;opacity:0}}*[tuiRipple]{position:relative;overflow:hidden}.tui-ripple{position:absolute;z-index:100;border-radius:100%;background:currentColor;transform:scale(0);animation-duration:.45s;animation-fill-mode:forwards;pointer-events:none}\n"] }]
56
+ }] });
57
+
58
+ const TOUCH_MOVE_DELAY = 100;
59
+ class TuiRippleDirective {
60
+ constructor({ nativeElement }, directiveStyles, renderer, destroy$, start$, end$) {
61
+ directiveStyles.addComponent(TuiRippleStylesComponent);
62
+ const touchEnd$ = tuiTypedFromEvent(nativeElement, 'touchend');
63
+ const touchMove$ = tuiTypedFromEvent(nativeElement, 'touchmove');
64
+ end$.subscribe(element => {
65
+ renderer.removeChild(nativeElement, element);
66
+ });
67
+ start$
68
+ .pipe(mergeMap(ripple => {
69
+ const animationEndOn$ = tuiTypedFromEvent(ripple, 'animationend');
70
+ return race(timer(TOUCH_MOVE_DELAY).pipe(map(ALWAYS_FALSE_HANDLER)), touchEnd$.pipe(map(ALWAYS_TRUE_HANDLER))).pipe(take(1),
71
+ // eslint-disable-next-line rxjs/no-unsafe-takeuntil
72
+ takeUntil(touchMove$), tap(() => {
73
+ renderer.setStyle(ripple, 'background', this.tuiRipple || null);
74
+ renderer.appendChild(nativeElement, ripple);
75
+ }), switchMap(isTap => isTap
76
+ ? animationEndOn$
77
+ : race(touchEnd$.pipe(switchMap(() => animationEndOn$)), animationEndOn$.pipe(switchMap(() => touchEnd$)))), map(() => ripple));
78
+ }), takeUntil(destroy$))
79
+ .subscribe(element => {
80
+ renderer.setStyle(element, 'animationName', RIPPLE_OFF);
81
+ });
82
+ }
83
+ }
84
+ TuiRippleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleDirective, deps: [{ token: ElementRef }, { token: TuiDirectiveStylesService }, { token: Renderer2 }, { token: TuiDestroyService, self: true }, { token: TUI_RIPPLE_START }, { token: TUI_RIPPLE_END }], target: i0.ɵɵFactoryTarget.Directive });
85
+ TuiRippleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiRippleDirective, selector: "[tuiRipple]", inputs: { tuiRipple: "tuiRipple" }, providers: TUI_RIPPLE_PROVIDERS, ngImport: i0 });
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleDirective, decorators: [{
87
+ type: Directive,
88
+ args: [{
89
+ selector: '[tuiRipple]',
90
+ providers: TUI_RIPPLE_PROVIDERS,
91
+ }]
92
+ }], ctorParameters: function () {
93
+ return [{ type: i0.ElementRef, decorators: [{
94
+ type: Inject,
95
+ args: [ElementRef]
96
+ }] }, { type: i1.TuiDirectiveStylesService, decorators: [{
97
+ type: Inject,
98
+ args: [TuiDirectiveStylesService]
99
+ }] }, { type: i0.Renderer2, decorators: [{
100
+ type: Inject,
101
+ args: [Renderer2]
102
+ }] }, { type: i1.TuiDestroyService, decorators: [{
103
+ type: Self
104
+ }, {
105
+ type: Inject,
106
+ args: [TuiDestroyService]
107
+ }] }, { type: i2.Observable, decorators: [{
108
+ type: Inject,
109
+ args: [TUI_RIPPLE_START]
110
+ }] }, { type: i2.Observable, decorators: [{
111
+ type: Inject,
112
+ args: [TUI_RIPPLE_END]
113
+ }] }];
114
+ }, propDecorators: { tuiRipple: [{
115
+ type: Input
116
+ }] } });
117
+
118
+ class TuiRippleModule {
119
+ }
120
+ TuiRippleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
121
+ TuiRippleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleModule, declarations: [TuiRippleDirective, TuiRippleStylesComponent], exports: [TuiRippleDirective] });
122
+ TuiRippleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleModule });
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRippleModule, decorators: [{
124
+ type: NgModule,
125
+ args: [{
126
+ declarations: [TuiRippleDirective, TuiRippleStylesComponent],
127
+ exports: [TuiRippleDirective],
128
+ }]
129
+ }] });
130
+
131
+ /**
132
+ * Generated bundle index. Do not edit.
133
+ */
134
+
135
+ export { RIPPLE_OFF, RIPPLE_ON, TUI_RIPPLE_END, TUI_RIPPLE_PROVIDERS, TUI_RIPPLE_START, TuiRippleDirective, TuiRippleModule };
136
+ //# sourceMappingURL=taiga-ui-addon-mobile-directives-ripple.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives-ripple.mjs","sources":["../../../projects/addon-mobile/directives/ripple/ripple.providers.ts","../../../projects/addon-mobile/directives/ripple/ripple-styles.component.ts","../../../projects/addon-mobile/directives/ripple/ripple.directive.ts","../../../projects/addon-mobile/directives/ripple/ripple.module.ts","../../../projects/addon-mobile/directives/ripple/taiga-ui-addon-mobile-directives-ripple.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider, Renderer2} from '@angular/core';\nimport {\n TUI_IS_IOS,\n TUI_TOUCH_SUPPORTED,\n TuiDestroyService,\n tuiIsPresent,\n tuiPx,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk';\nimport {EMPTY, filter, map, Observable, takeUntil} from 'rxjs';\n\nexport const RIPPLE_ON = `tuiRippleOn`;\nexport const RIPPLE_OFF = `tuiRippleOff`;\n\n/**\n * Stream of ripple elements to add\n */\nexport const TUI_RIPPLE_START = new InjectionToken<Observable<HTMLElement>>(\n `[TUI_RIPPLE_START]`,\n);\n\n/**\n * Stream of ripple elements to remove\n */\nexport const TUI_RIPPLE_END = new InjectionToken<Observable<HTMLElement>>(\n `[TUI_RIPPLE_END]`,\n);\n\nexport const TUI_RIPPLE_PROVIDERS: Provider[] = [\n TuiDestroyService,\n {\n provide: TUI_RIPPLE_START,\n deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, Renderer2],\n useFactory: (\n touchSupported: boolean,\n isIOS: boolean,\n {nativeElement}: ElementRef<HTMLElement>,\n renderer: Renderer2,\n ): Observable<HTMLElement> =>\n isIOS || !touchSupported\n ? EMPTY\n : tuiTypedFromEvent(nativeElement, `touchstart`).pipe(\n map(({touches}) => {\n const {clientX, clientY} = touches[touches.length - 1];\n const {width, height, top, left} =\n nativeElement.getBoundingClientRect();\n const radius = Math.sqrt(width * width + height * height);\n const dimension = radius * 2;\n const x = clientX - left - radius;\n const y = clientY - top - radius;\n const ripple = renderer.createElement(`div`);\n\n renderer.addClass(ripple, `tui-ripple`);\n renderer.setAttribute(\n ripple,\n `style`,\n `width: ${tuiPx(dimension)}; height: ${tuiPx(\n dimension,\n )}; left: ${tuiPx(x)}; top: ${tuiPx(\n y,\n )}; animation-name: ${RIPPLE_ON};`,\n );\n\n return ripple;\n }),\n ),\n },\n {\n provide: TUI_RIPPLE_END,\n deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, TuiDestroyService],\n useFactory: (\n touchSupported: boolean,\n isIOS: boolean,\n {nativeElement}: ElementRef<HTMLElement>,\n destroy$: Observable<void>,\n ): Observable<EventTarget> =>\n isIOS || !touchSupported\n ? EMPTY\n : tuiTypedFromEvent(nativeElement, `animationend`).pipe(\n filter(({animationName}) => animationName === RIPPLE_OFF),\n map(({target}) => target),\n filter(tuiIsPresent),\n takeUntil(destroy$),\n ),\n },\n];\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n host: {\n class: 'tui-ripple-styles',\n },\n template: '',\n styleUrls: ['./ripple.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRippleStylesComponent {}\n","import {Directive, ElementRef, Inject, Input, Renderer2, Self} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n ALWAYS_TRUE_HANDLER,\n TuiDestroyService,\n TuiDirectiveStylesService,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk';\nimport {\n map,\n mergeMap,\n Observable,\n race,\n switchMap,\n take,\n takeUntil,\n tap,\n timer,\n} from 'rxjs';\n\nimport {\n RIPPLE_OFF,\n TUI_RIPPLE_END,\n TUI_RIPPLE_PROVIDERS,\n TUI_RIPPLE_START,\n} from './ripple.providers';\nimport {TuiRippleStylesComponent} from './ripple-styles.component';\n\nconst TOUCH_MOVE_DELAY = 100;\n\n@Directive({\n selector: '[tuiRipple]',\n providers: TUI_RIPPLE_PROVIDERS,\n})\nexport class TuiRippleDirective {\n @Input()\n tuiRipple?: string | '';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n @Inject(Renderer2) renderer: Renderer2,\n @Self() @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n @Inject(TUI_RIPPLE_START) start$: Observable<HTMLElement>,\n @Inject(TUI_RIPPLE_END) end$: Observable<EventTarget>,\n ) {\n directiveStyles.addComponent(TuiRippleStylesComponent);\n\n const touchEnd$ = tuiTypedFromEvent(nativeElement, 'touchend');\n const touchMove$ = tuiTypedFromEvent(nativeElement, 'touchmove');\n\n end$.subscribe(element => {\n renderer.removeChild(nativeElement, element);\n });\n start$\n .pipe(\n mergeMap(ripple => {\n const animationEndOn$ = tuiTypedFromEvent(ripple, 'animationend');\n\n return race(\n timer(TOUCH_MOVE_DELAY).pipe(map(ALWAYS_FALSE_HANDLER)),\n touchEnd$.pipe(map(ALWAYS_TRUE_HANDLER)),\n ).pipe(\n take(1),\n // eslint-disable-next-line rxjs/no-unsafe-takeuntil\n takeUntil(touchMove$),\n tap(() => {\n renderer.setStyle(\n ripple,\n 'background',\n this.tuiRipple || null,\n );\n renderer.appendChild(nativeElement, ripple);\n }),\n switchMap(isTap =>\n isTap\n ? animationEndOn$\n : race(\n touchEnd$.pipe(switchMap(() => animationEndOn$)),\n animationEndOn$.pipe(switchMap(() => touchEnd$)),\n ),\n ),\n map(() => ripple),\n );\n }),\n takeUntil(destroy$),\n )\n .subscribe(element => {\n renderer.setStyle(element, 'animationName', RIPPLE_OFF);\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRippleDirective} from './ripple.directive';\nimport {TuiRippleStylesComponent} from './ripple-styles.component';\n\n@NgModule({\n declarations: [TuiRippleDirective, TuiRippleStylesComponent],\n exports: [TuiRippleDirective],\n})\nexport class TuiRippleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAWO,MAAM,SAAS,GAAG,cAAc;AAChC,MAAM,UAAU,GAAG,eAAe;AAEzC;;AAEG;MACU,gBAAgB,GAAG,IAAI,cAAc,CAC9C,CAAoB,kBAAA,CAAA,EACtB;AAEF;;AAEG;MACU,cAAc,GAAG,IAAI,cAAc,CAC5C,CAAkB,gBAAA,CAAA,EACpB;AAEW,MAAA,oBAAoB,GAAe;IAC5C,iBAAiB;AACjB,IAAA;AACI,QAAA,OAAO,EAAE,gBAAgB;QACzB,IAAI,EAAE,CAAC,mBAAmB,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;AAC9D,QAAA,UAAU,EAAE,CACR,cAAuB,EACvB,KAAc,EACd,EAAC,aAAa,EAA0B,EACxC,QAAmB,KAEnB,KAAK,IAAI,CAAC,cAAc;AACpB,cAAE,KAAK;AACP,cAAE,iBAAiB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,IAAI,CAC/C,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAI;AACd,gBAAA,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACvD,gBAAA,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAC,GAC5B,aAAa,CAAC,qBAAqB,EAAE,CAAC;AAC1C,gBAAA,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAC1D,gBAAA,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,CAAC;AAC7B,gBAAA,MAAM,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,MA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C5D,OAAO,EAAE,CAAC,kBAAkB,CAAC;iBAChC,CAAA;;;ACRD;;AAEG;;;;"}
@@ -0,0 +1,143 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, Injector, ChangeDetectorRef, Directive, Inject, Input, Component, ChangeDetectionStrategy, HostBinding, NgModule } from '@angular/core';
3
+ import { TUI_ANIMATION_OPTIONS, tuiSlideIn } from '@taiga-ui/core';
4
+ import * as i1 from '@taiga-ui/cdk';
5
+ import { TuiDropdownPortalService, TuiActiveZoneModule } from '@taiga-ui/cdk';
6
+ import * as i2 from '@tinkoff/ng-polymorpheus';
7
+ import { PolymorpheusTemplate, PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
8
+
9
+ class TuiSidebarDirective extends PolymorpheusTemplate {
10
+ set tuiSidebar(open) {
11
+ if (open) {
12
+ this.show();
13
+ }
14
+ else {
15
+ this.hide();
16
+ }
17
+ }
18
+ constructor(content, injector, portalService, cdr) {
19
+ super(content, cdr);
20
+ this.content = content;
21
+ this.injector = injector;
22
+ this.portalService = portalService;
23
+ this.component = new PolymorpheusComponent(TuiSidebarComponent, this.injector);
24
+ this.sidebarRef = null;
25
+ this.direction = 'left';
26
+ this.autoWidth = false;
27
+ }
28
+ ngOnDestroy() {
29
+ this.hide();
30
+ }
31
+ show() {
32
+ if (this.sidebarRef !== null) {
33
+ return;
34
+ }
35
+ this.sidebarRef = this.portalService.add(this.component);
36
+ this.sidebarRef.changeDetectorRef.detectChanges();
37
+ }
38
+ hide() {
39
+ if (this.sidebarRef === null) {
40
+ return;
41
+ }
42
+ this.portalService.remove(this.sidebarRef);
43
+ this.sidebarRef = null;
44
+ }
45
+ }
46
+ TuiSidebarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarDirective, deps: [{ token: TemplateRef }, { token: Injector }, { token: TuiDropdownPortalService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
47
+ TuiSidebarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSidebarDirective, selector: "[tuiSidebar]", inputs: { direction: ["tuiSidebarDirection", "direction"], autoWidth: ["tuiSidebarAutoWidth", "autoWidth"], tuiSidebar: "tuiSidebar" }, usesInheritance: true, ngImport: i0 });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarDirective, decorators: [{
49
+ type: Directive,
50
+ args: [{
51
+ selector: '[tuiSidebar]',
52
+ }]
53
+ }], ctorParameters: function () {
54
+ return [{ type: i0.TemplateRef, decorators: [{
55
+ type: Inject,
56
+ args: [TemplateRef]
57
+ }] }, { type: i0.Injector, decorators: [{
58
+ type: Inject,
59
+ args: [Injector]
60
+ }] }, { type: i1.TuiDropdownPortalService, decorators: [{
61
+ type: Inject,
62
+ args: [TuiDropdownPortalService]
63
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
64
+ type: Inject,
65
+ args: [ChangeDetectorRef]
66
+ }] }];
67
+ }, propDecorators: { direction: [{
68
+ type: Input,
69
+ args: ['tuiSidebarDirection']
70
+ }], autoWidth: [{
71
+ type: Input,
72
+ args: ['tuiSidebarAutoWidth']
73
+ }], tuiSidebar: [{
74
+ type: Input
75
+ }] } });
76
+
77
+ class TuiSidebarComponent {
78
+ constructor(options, directive) {
79
+ this.options = options;
80
+ this.directive = directive;
81
+ this.left = Object.assign(Object.assign({}, this.options), { value: 'left' });
82
+ this.right = Object.assign(Object.assign({}, this.options), { value: 'right' });
83
+ }
84
+ get animation() {
85
+ return this.direction === 'left' ? this.left : this.right;
86
+ }
87
+ get directionHostClass() {
88
+ return `t-${this.directive.direction}`;
89
+ }
90
+ get direction() {
91
+ return this.directive.direction;
92
+ }
93
+ get content() {
94
+ return this.directive.content;
95
+ }
96
+ get autoWidth() {
97
+ return this.directive.autoWidth;
98
+ }
99
+ ngDoCheck() {
100
+ this.directive.check();
101
+ }
102
+ }
103
+ TuiSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarComponent, deps: [{ token: TUI_ANIMATION_OPTIONS }, { token: TuiSidebarDirective }], target: i0.ɵɵFactoryTarget.Component });
104
+ TuiSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiSidebarComponent, selector: "aside[tuiSidebar]", host: { properties: { "@tuiSlideIn": "this.animation", "class": "this.directionHostClass" } }, ngImport: i0, template: "<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n", styles: [":host{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}:host:before,:host:after{position:absolute;top:0;left:0;width:100%;content:\"\";height:100%;background:rgba(0,0,0,.38);animation:tuiFadeIn var(--tui-duration)}:host:before{left:-100%;width:200%}:host:after{left:100%}:host.ng-animating:before,:host.ng-animating:after{opacity:0;transition:opacity var(--tui-duration)}:host.t-right{justify-content:flex-end}:host.t-left{justify-content:flex-start}.t-wrapper{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width{width:auto}\n"], dependencies: [{ kind: "directive", type: i1.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { kind: "directive", type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [tuiSlideIn], changeDetection: i0.ChangeDetectionStrategy.OnPush });
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarComponent, decorators: [{
106
+ type: Component,
107
+ args: [{ selector: 'aside[tuiSidebar]', changeDetection: ChangeDetectionStrategy.OnPush, animations: [tuiSlideIn], template: "<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n", styles: [":host{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}:host:before,:host:after{position:absolute;top:0;left:0;width:100%;content:\"\";height:100%;background:rgba(0,0,0,.38);animation:tuiFadeIn var(--tui-duration)}:host:before{left:-100%;width:200%}:host:after{left:100%}:host.ng-animating:before,:host.ng-animating:after{opacity:0;transition:opacity var(--tui-duration)}:host.t-right{justify-content:flex-end}:host.t-left{justify-content:flex-start}.t-wrapper{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width{width:auto}\n"] }]
108
+ }], ctorParameters: function () {
109
+ return [{ type: undefined, decorators: [{
110
+ type: Inject,
111
+ args: [TUI_ANIMATION_OPTIONS]
112
+ }] }, { type: TuiSidebarDirective, decorators: [{
113
+ type: Inject,
114
+ args: [TuiSidebarDirective]
115
+ }] }];
116
+ }, propDecorators: { animation: [{
117
+ type: HostBinding,
118
+ args: ['@tuiSlideIn']
119
+ }], directionHostClass: [{
120
+ type: HostBinding,
121
+ args: ['class']
122
+ }] } });
123
+
124
+ class TuiSidebarModule {
125
+ }
126
+ TuiSidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
127
+ TuiSidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarModule, declarations: [TuiSidebarDirective, TuiSidebarComponent], imports: [TuiActiveZoneModule, PolymorpheusModule], exports: [TuiSidebarDirective] });
128
+ TuiSidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarModule, imports: [TuiActiveZoneModule, PolymorpheusModule] });
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSidebarModule, decorators: [{
130
+ type: NgModule,
131
+ args: [{
132
+ imports: [TuiActiveZoneModule, PolymorpheusModule],
133
+ declarations: [TuiSidebarDirective, TuiSidebarComponent],
134
+ exports: [TuiSidebarDirective],
135
+ }]
136
+ }] });
137
+
138
+ /**
139
+ * Generated bundle index. Do not edit.
140
+ */
141
+
142
+ export { TuiSidebarComponent, TuiSidebarDirective, TuiSidebarModule };
143
+ //# sourceMappingURL=taiga-ui-addon-mobile-directives-sidebar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives-sidebar.mjs","sources":["../../../projects/addon-mobile/directives/sidebar/sidebar.directive.ts","../../../projects/addon-mobile/directives/sidebar/sidebar.component.ts","../../../projects/addon-mobile/directives/sidebar/sidebar.template.html","../../../projects/addon-mobile/directives/sidebar/sidebar.module.ts","../../../projects/addon-mobile/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n ComponentRef,\n Directive,\n Inject,\n Injector,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDropdownPortalService} from '@taiga-ui/cdk';\nimport {TuiHorizontalDirection} from '@taiga-ui/core';\nimport {PolymorpheusComponent, PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\n\n@Directive({\n selector: '[tuiSidebar]',\n})\nexport class TuiSidebarDirective<T = Record<string, unknown>>\n extends PolymorpheusTemplate<T>\n implements OnDestroy\n{\n private readonly component = new PolymorpheusComponent(\n TuiSidebarComponent,\n this.injector,\n );\n\n private sidebarRef: ComponentRef<TuiSidebarComponent> | null = null;\n\n @Input('tuiSidebarDirection')\n direction: TuiHorizontalDirection = 'left';\n\n @Input('tuiSidebarAutoWidth')\n autoWidth = false;\n\n @Input()\n set tuiSidebar(open: boolean) {\n if (open) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n constructor(\n @Inject(TemplateRef) readonly content: TemplateRef<T>,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(TuiDropdownPortalService)\n private readonly portalService: TuiDropdownPortalService,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n ) {\n super(content, cdr);\n }\n\n ngOnDestroy(): void {\n this.hide();\n }\n\n private show(): void {\n if (this.sidebarRef !== null) {\n return;\n }\n\n this.sidebarRef = this.portalService.add(this.component);\n this.sidebarRef.changeDetectorRef.detectChanges();\n }\n\n private hide(): void {\n if (this.sidebarRef === null) {\n return;\n }\n\n this.portalService.remove(this.sidebarRef);\n this.sidebarRef = null;\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {\n TUI_ANIMATION_OPTIONS,\n TuiAnimationOptions,\n TuiHorizontalDirection,\n tuiSlideIn,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n@Component({\n selector: 'aside[tuiSidebar]',\n templateUrl: './sidebar.template.html',\n styleUrls: ['./sidebar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideIn],\n})\nexport class TuiSidebarComponent implements DoCheck {\n private readonly left = {\n ...this.options,\n value: 'left',\n } as const;\n\n private readonly right = {\n ...this.options,\n value: 'right',\n } as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiSidebarDirective) private readonly directive: TuiSidebarDirective,\n ) {}\n\n @HostBinding('@tuiSlideIn')\n get animation(): TuiAnimationOptions {\n return this.direction === 'left' ? this.left : this.right;\n }\n\n @HostBinding('class')\n get directionHostClass(): string {\n return `t-${this.directive.direction}`;\n }\n\n get direction(): TuiHorizontalDirection {\n return this.directive.direction;\n }\n\n get content(): PolymorpheusContent {\n return this.directive.content;\n }\n\n get autoWidth(): boolean {\n return this.directive.autoWidth;\n }\n\n ngDoCheck(): void {\n this.directive.check();\n }\n}\n","<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n@NgModule({\n imports: [TuiActiveZoneModule, PolymorpheusModule],\n declarations: [TuiSidebarDirective, TuiSidebarComponent],\n exports: [TuiSidebarDirective],\n})\nexport class TuiSidebarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAmBM,MAAO,mBACT,SAAQ,oBAAuB,CAAA;IAgB/B,IACI,UAAU,CAAC,IAAa,EAAA;AACxB,QAAA,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,IAAI,EAAE,CAAC;AACf,SAAA;AAAM,aAAA;YACH,IAAI,CAAC,IAAI,EAAE,CAAC;AACf,SAAA;KACJ;AAED,IAAA,WAAA,CACkC,OAAuB,EAClB,QAAkB,EAEpC,aAAuC,EAC7B,GAAsB,EAAA;AAEjD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AANU,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgB;AAClB,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;AAEpC,QAAA,IAAa,CA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kBAAkB,CAAC;AAClD,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;oBACxD,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBACjC,CAAA;;;ACXD;;AAEG;;;;"}
@@ -0,0 +1,104 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ElementRef, Renderer2, Directive, Optional, Inject, Self, Input, NgModule } from '@angular/core';
3
+ import { tuiFindTouchIndex } from '@taiga-ui/addon-mobile/utils';
4
+ import * as i1 from '@taiga-ui/cdk';
5
+ import { tuiTypedFromEvent, TUI_IS_IOS, TuiDestroyService } from '@taiga-ui/cdk';
6
+ import { TUI_ELEMENT_REF } from '@taiga-ui/core';
7
+ import { tap, map, switchMap, race, filter, take, takeUntil } from 'rxjs';
8
+
9
+ const STYLE = {
10
+ transform: 'scale(0.95)',
11
+ opacity: '0.6',
12
+ background: 'rgba(146, 153, 162, 0.12)',
13
+ };
14
+ class TuiTouchableDirective {
15
+ constructor(el, isIos, { nativeElement }, renderer, destroy$) {
16
+ this.tuiTouchable = '';
17
+ if (!isIos) {
18
+ return;
19
+ }
20
+ const element = (el === null || el === void 0 ? void 0 : el.nativeElement) || nativeElement;
21
+ tuiTypedFromEvent(element, 'touchstart', { passive: true })
22
+ .pipe(tap(() => {
23
+ this.onTouchStart(renderer, element);
24
+ }), map(({ touches }) => touches[touches.length - 1].identifier), switchMap(identifier => race(tuiTypedFromEvent(element, 'touchmove', { passive: true }).pipe(filter(({ touches }) => this.hasTouchLeft(element, touches, identifier))), tuiTypedFromEvent(element, 'touchend')).pipe(take(1))), takeUntil(destroy$))
25
+ .subscribe(() => {
26
+ renderer.removeStyle(element, 'transform');
27
+ renderer.removeStyle(element, 'opacity');
28
+ renderer.removeStyle(element, 'background');
29
+ });
30
+ }
31
+ get style() {
32
+ return this.tuiTouchable || 'transform';
33
+ }
34
+ hasTouchLeft(element, touches, identifier) {
35
+ const { ownerDocument } = element;
36
+ const id = tuiFindTouchIndex(touches, identifier);
37
+ if (!ownerDocument || id === -1) {
38
+ return true;
39
+ }
40
+ const { clientX, clientY } = touches[id];
41
+ return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));
42
+ }
43
+ onTouchStart(renderer, element) {
44
+ if (this.style !== 'transform') {
45
+ renderer.removeStyle(element, 'transition');
46
+ }
47
+ else {
48
+ renderer.setStyle(element, 'transition', 'transform 0.2s');
49
+ }
50
+ renderer.setStyle(element, this.style, STYLE[this.style]);
51
+ }
52
+ }
53
+ TuiTouchableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTouchableDirective, deps: [{ token: TUI_ELEMENT_REF, optional: true }, { token: TUI_IS_IOS }, { token: ElementRef }, { token: Renderer2 }, { token: TuiDestroyService, self: true }], target: i0.ɵɵFactoryTarget.Directive });
54
+ TuiTouchableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiTouchableDirective, selector: "[tuiTouchable]", inputs: { tuiTouchable: "tuiTouchable" }, providers: [TuiDestroyService], ngImport: i0 });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTouchableDirective, decorators: [{
56
+ type: Directive,
57
+ args: [{
58
+ selector: '[tuiTouchable]',
59
+ providers: [TuiDestroyService],
60
+ }]
61
+ }], ctorParameters: function () {
62
+ return [{ type: i0.ElementRef, decorators: [{
63
+ type: Optional
64
+ }, {
65
+ type: Inject,
66
+ args: [TUI_ELEMENT_REF]
67
+ }] }, { type: undefined, decorators: [{
68
+ type: Inject,
69
+ args: [TUI_IS_IOS]
70
+ }] }, { type: i0.ElementRef, decorators: [{
71
+ type: Inject,
72
+ args: [ElementRef]
73
+ }] }, { type: i0.Renderer2, decorators: [{
74
+ type: Inject,
75
+ args: [Renderer2]
76
+ }] }, { type: i1.TuiDestroyService, decorators: [{
77
+ type: Self
78
+ }, {
79
+ type: Inject,
80
+ args: [TuiDestroyService]
81
+ }] }];
82
+ }, propDecorators: { tuiTouchable: [{
83
+ type: Input
84
+ }] } });
85
+
86
+ class TuiTouchableModule {
87
+ }
88
+ TuiTouchableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTouchableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
89
+ TuiTouchableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiTouchableModule, declarations: [TuiTouchableDirective], exports: [TuiTouchableDirective] });
90
+ TuiTouchableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTouchableModule });
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiTouchableModule, decorators: [{
92
+ type: NgModule,
93
+ args: [{
94
+ declarations: [TuiTouchableDirective],
95
+ exports: [TuiTouchableDirective],
96
+ }]
97
+ }] });
98
+
99
+ /**
100
+ * Generated bundle index. Do not edit.
101
+ */
102
+
103
+ export { TuiTouchableDirective, TuiTouchableModule };
104
+ //# sourceMappingURL=taiga-ui-addon-mobile-directives-touchable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives-touchable.mjs","sources":["../../../projects/addon-mobile/directives/touchable/touchable.directive.ts","../../../projects/addon-mobile/directives/touchable/touchable.module.ts","../../../projects/addon-mobile/directives/touchable/taiga-ui-addon-mobile-directives-touchable.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {TuiTouchMode} from '@taiga-ui/addon-mobile/types';\nimport {tuiFindTouchIndex} from '@taiga-ui/addon-mobile/utils';\nimport {TUI_IS_IOS, TuiDestroyService, tuiTypedFromEvent} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {filter, map, race, switchMap, take, takeUntil, tap} from 'rxjs';\n\nconst STYLE = {\n transform: 'scale(0.95)',\n opacity: '0.6',\n background: 'rgba(146, 153, 162, 0.12)',\n} as const;\n\n@Directive({\n selector: '[tuiTouchable]',\n providers: [TuiDestroyService],\n})\nexport class TuiTouchableDirective {\n @Input()\n tuiTouchable: TuiTouchMode | '' = '';\n\n constructor(\n @Optional() @Inject(TUI_ELEMENT_REF) el: ElementRef<HTMLElement> | null,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(Renderer2) renderer: Renderer2,\n @Self() @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!isIos) {\n return;\n }\n\n const element = el?.nativeElement || nativeElement;\n\n tuiTypedFromEvent(element, 'touchstart', {passive: true})\n .pipe(\n tap(() => {\n this.onTouchStart(renderer, element);\n }),\n map(({touches}) => touches[touches.length - 1].identifier),\n switchMap(identifier =>\n race(\n tuiTypedFromEvent(element, 'touchmove', {passive: true}).pipe(\n filter(({touches}) =>\n this.hasTouchLeft(element, touches, identifier),\n ),\n ),\n tuiTypedFromEvent(element, 'touchend'),\n ).pipe(take(1)),\n ),\n takeUntil(destroy$),\n )\n .subscribe(() => {\n renderer.removeStyle(element, 'transform');\n renderer.removeStyle(element, 'opacity');\n renderer.removeStyle(element, 'background');\n });\n }\n\n get style(): TuiTouchMode {\n return this.tuiTouchable || 'transform';\n }\n\n private hasTouchLeft(\n element: HTMLElement,\n touches: TouchList,\n identifier: number,\n ): boolean {\n const {ownerDocument} = element;\n const id = tuiFindTouchIndex(touches, identifier);\n\n if (!ownerDocument || id === -1) {\n return true;\n }\n\n const {clientX, clientY} = touches[id];\n\n return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));\n }\n\n private onTouchStart(renderer: Renderer2, element: HTMLElement): void {\n if (this.style !== 'transform') {\n renderer.removeStyle(element, 'transition');\n } else {\n renderer.setStyle(element, 'transition', 'transform 0.2s');\n }\n\n renderer.setStyle(element, this.style, STYLE[this.style]);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTouchableDirective} from './touchable.directive';\n\n@NgModule({\n declarations: [TuiTouchableDirective],\n exports: [TuiTouchableDirective],\n})\nexport class TuiTouchableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA,MAAM,KAAK,GAAG;AACV,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,UAAU,EAAE,2BAA2B;CACjC,CAAC;MAME,qBAAqB,CAAA;IAI9B,WACyC,CAAA,EAAkC,EACnD,KAAc,EACd,EAAC,aAAa,EAA0B,EACzC,QAAmB,EACH,QAA2B,EAAA;AAPlE,QAAA,IAAY,CAAA,YAAA,GAAsB,EAAE,CAAC;QASjC,IAAI,CAAC,KAAK,EAAE;YACR,OAAO;AACV,SAAA;AAED,QAAA,MAAM,OAAO,GAAG,CAAA,EAAE,KAAF,IAAA,IAAA,EAAE,KAAF,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAE,CAAE,aAAa,KAAI,aAAa,CAAC;QAEnD,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;AACpD,aAAA,IAAI,CACD,GAAG,CAAC,MAAK;AACL,YAAA,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzC,SAAC,CAAC,EACF,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,EAC1D,SAAS,CAAC,UAAU,IAChB,IAAI,CACA,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACzD,MAAM,CAAC,CAAC,EAAC,OAAO,EAAC,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A,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;iHAEtB,kBAAkB,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;iBACnC,CAAA;;;ACPD;;AAEG;;;;"}
@@ -7,4 +7,4 @@ export * from '@taiga-ui/addon-mobile/directives/touchable';
7
7
  /**
8
8
  * Generated bundle index. Do not edit.
9
9
  */
10
- //# sourceMappingURL=taiga-ui-addon-mobile-directives.js.map
10
+ //# sourceMappingURL=taiga-ui-addon-mobile-directives.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives.mjs","sources":["../../../projects/addon-mobile/directives/taiga-ui-addon-mobile-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ //# sourceMappingURL=taiga-ui-addon-mobile-interfaces.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-addon-mobile-interfaces.mjs","sources":["../../../projects/addon-mobile/interfaces/taiga-ui-addon-mobile-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}