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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/components/app-bar/app-bar-back.component.d.ts +1 -1
  2. package/components/app-bar/app-bar.component.d.ts +1 -1
  3. package/components/app-bar/app-bar.directive.d.ts +1 -1
  4. package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
  5. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +1 -1
  6. package/components/mobile-dialog/mobile-dialog.component.d.ts +1 -1
  7. package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -1
  8. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +1 -1
  9. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +1 -1
  10. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +1 -1
  11. package/components/sheet/components/sheet/sheet.component.d.ts +1 -1
  12. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +1 -1
  13. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +1 -1
  14. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +1 -1
  15. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +1 -1
  16. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +1 -1
  17. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +1 -1
  18. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
  19. package/components/sheet/sheet.directive.d.ts +1 -1
  20. package/components/sheet-dialog/sheet-dialog.component.d.ts +1 -1
  21. package/components/sheet-dialog/sheet-dialog.directive.d.ts +1 -1
  22. package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
  23. package/components/tab-bar/tab-bar-item.component.d.ts +1 -1
  24. package/components/tab-bar/tab-bar-item.directive.d.ts +1 -1
  25. package/components/tab-bar/tab-bar.component.d.ts +1 -1
  26. package/components/theme-android/theme-android.component.d.ts +1 -1
  27. package/components/theme-ios/theme-ios.component.d.ts +1 -1
  28. package/const/mobile-alert-options.d.ts +3 -3
  29. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -1
  30. package/directives/mobile-tabs/mobile-tabs.component.d.ts +1 -1
  31. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +1 -1
  32. package/directives/ripple/ripple-styles.component.d.ts +1 -1
  33. package/directives/ripple/ripple.directive.d.ts +1 -1
  34. package/directives/sidebar/sidebar.component.d.ts +1 -1
  35. package/directives/sidebar/sidebar.directive.d.ts +1 -1
  36. package/directives/touchable/touchable.directive.d.ts +1 -1
  37. package/esm2020/components/app-bar/app-bar-back.component.mjs +11 -0
  38. package/esm2020/components/app-bar/app-bar.component.mjs +34 -0
  39. package/{esm2015/components/app-bar/app-bar.directive.js → esm2020/components/app-bar/app-bar.directive.mjs} +3 -3
  40. package/{esm2015/components/app-bar/app-bar.module.js → esm2020/components/app-bar/app-bar.module.mjs} +5 -5
  41. package/esm2020/components/mobile-calendar/mobile-calendar.component.mjs +302 -0
  42. package/{esm2015/components/mobile-calendar/mobile-calendar.module.js → esm2020/components/mobile-calendar/mobile-calendar.module.mjs} +14 -16
  43. package/esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.component.mjs +35 -0
  44. package/{esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js → esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.module.mjs} +6 -6
  45. package/esm2020/components/mobile-dialog/mobile-dialog.component.mjs +32 -0
  46. package/{esm2015/components/mobile-dialog/mobile-dialog.module.js → esm2020/components/mobile-dialog/mobile-dialog.module.mjs} +5 -5
  47. package/esm2020/components/mobile-dialog/mobile-dialog.service.mjs +29 -0
  48. package/esm2020/components/pull-to-refresh/loader-android/loader-android.component.mjs +55 -0
  49. package/esm2020/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +44 -0
  50. package/{esm2015/components/pull-to-refresh/pull-to-refresh.component.js → esm2020/components/pull-to-refresh/pull-to-refresh.component.mjs} +7 -13
  51. package/{esm2015/components/pull-to-refresh/pull-to-refresh.module.js → esm2020/components/pull-to-refresh/pull-to-refresh.module.mjs} +5 -5
  52. package/esm2020/components/pull-to-refresh/pull-to-refresh.service.mjs +54 -0
  53. package/esm2020/components/sheet/components/sheet/sheet.component.mjs +121 -0
  54. package/{esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js → esm2020/components/sheet/components/sheet-bar/sheet-bar.component.mjs} +7 -12
  55. package/{esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js → esm2020/components/sheet/components/sheet-heading/sheet-heading.component.mjs} +5 -10
  56. package/esm2020/components/sheet/components/sheets-host/sheets-host.component.mjs +61 -0
  57. package/{esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js → esm2020/components/sheet/directives/sheet-close/sheet-close.directive.mjs} +5 -5
  58. package/{esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js → esm2020/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs} +3 -3
  59. package/{esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js → esm2020/components/sheet/directives/sheet-top/sheet-top.directive.mjs} +4 -4
  60. package/{esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js → esm2020/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs} +6 -8
  61. package/esm2020/components/sheet/sheet-options.mjs +21 -0
  62. package/esm2020/components/sheet/sheet.directive.mjs +49 -0
  63. package/{esm2015/components/sheet/sheet.module.js → esm2020/components/sheet/sheet.module.mjs} +10 -12
  64. package/esm2020/components/sheet/sheet.service.mjs +56 -0
  65. package/esm2020/components/sheet-dialog/sheet-dialog.component.mjs +132 -0
  66. package/{esm2015/components/sheet-dialog/sheet-dialog.directive.js → esm2020/components/sheet-dialog/sheet-dialog.directive.mjs} +3 -3
  67. package/{esm2015/components/sheet-dialog/sheet-dialog.module.js → esm2020/components/sheet-dialog/sheet-dialog.module.mjs} +5 -5
  68. package/{esm2015/components/sheet-dialog/sheet-dialog.service.js → esm2020/components/sheet-dialog/sheet-dialog.service.mjs} +8 -5
  69. package/esm2020/components/tab-bar/tab-bar-item.component.mjs +29 -0
  70. package/{esm2015/components/tab-bar/tab-bar-item.directive.js → esm2020/components/tab-bar/tab-bar-item.directive.mjs} +3 -3
  71. package/esm2020/components/tab-bar/tab-bar.component.mjs +47 -0
  72. package/{esm2015/components/tab-bar/tab-bar.module.js → esm2020/components/tab-bar/tab-bar.module.mjs} +5 -5
  73. package/{esm2015/components/theme-android/theme-android.component.js → esm2020/components/theme-android/theme-android.component.mjs} +5 -11
  74. package/{esm2015/components/theme-android/theme-android.module.js → esm2020/components/theme-android/theme-android.module.mjs} +4 -4
  75. package/esm2020/components/theme-ios/theme-ios.component.mjs +12 -0
  76. package/{esm2015/components/theme-ios/theme-ios.module.js → esm2020/components/theme-ios/theme-ios.module.mjs} +4 -4
  77. package/esm2020/const/mobile-alert-options.mjs +13 -0
  78. package/{esm2015/directives/elastic-sticky/elastic-sticky.directive.js → esm2020/directives/elastic-sticky/elastic-sticky.directive.mjs} +3 -3
  79. package/{esm2015/directives/elastic-sticky/elastic-sticky.module.js → esm2020/directives/elastic-sticky/elastic-sticky.module.mjs} +4 -4
  80. package/{esm2015/directives/elastic-sticky/elastic-sticky.service.js → esm2020/directives/elastic-sticky/elastic-sticky.service.mjs} +3 -3
  81. package/esm2020/directives/mobile-tabs/mobile-tabs.component.mjs +13 -0
  82. package/{esm2015/directives/mobile-tabs/mobile-tabs.directive.js → esm2020/directives/mobile-tabs/mobile-tabs.directive.mjs} +3 -3
  83. package/{esm2015/directives/mobile-tabs/mobile-tabs.module.js → esm2020/directives/mobile-tabs/mobile-tabs.module.mjs} +4 -4
  84. package/{esm2015/directives/ripple/ripple-styles.component.js → esm2020/directives/ripple/ripple-styles.component.mjs} +6 -12
  85. package/{esm2015/directives/ripple/ripple.directive.js → esm2020/directives/ripple/ripple.directive.mjs} +3 -3
  86. package/{esm2015/directives/ripple/ripple.module.js → esm2020/directives/ripple/ripple.module.mjs} +4 -4
  87. package/esm2020/directives/sidebar/sidebar.component.mjs +58 -0
  88. package/esm2020/directives/sidebar/sidebar.directive.mjs +72 -0
  89. package/{esm2015/directives/sidebar/sidebar.module.js → esm2020/directives/sidebar/sidebar.module.mjs} +5 -5
  90. package/esm2020/directives/touchable/touchable.directive.mjs +83 -0
  91. package/{esm2015/directives/touchable/touchable.module.js → esm2020/directives/touchable/touchable.module.mjs} +4 -4
  92. package/esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.mjs +34 -0
  93. package/{esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js → esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.mjs} +8 -10
  94. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs +104 -0
  95. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  96. package/fesm2015/{taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +16 -19
  97. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  98. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs +540 -0
  99. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  100. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs +91 -0
  101. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  102. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +258 -0
  103. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  104. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs +215 -0
  105. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  106. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs +688 -0
  107. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  108. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs +137 -0
  109. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  110. package/fesm2015/{taiga-ui-addon-mobile-components-theme-android.js → taiga-ui-addon-mobile-components-theme-android.mjs} +9 -15
  111. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  112. package/fesm2015/{taiga-ui-addon-mobile-components-theme-ios.js → taiga-ui-addon-mobile-components-theme-ios.mjs} +9 -15
  113. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  114. package/fesm2015/{taiga-ui-addon-mobile-components.js → taiga-ui-addon-mobile-components.mjs} +1 -1
  115. package/fesm2015/taiga-ui-addon-mobile-components.mjs.map +1 -0
  116. package/fesm2015/{taiga-ui-addon-mobile-const.js → taiga-ui-addon-mobile-const.mjs} +1 -1
  117. package/fesm2015/taiga-ui-addon-mobile-const.mjs.map +1 -0
  118. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +86 -0
  119. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  120. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +87 -0
  121. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  122. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs +137 -0
  123. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  124. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs +143 -0
  125. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  126. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs +105 -0
  127. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  128. package/fesm2015/{taiga-ui-addon-mobile-directives.js → taiga-ui-addon-mobile-directives.mjs} +1 -1
  129. package/fesm2015/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  130. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  131. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  132. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs +72 -0
  133. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  134. package/fesm2015/{taiga-ui-addon-mobile-internal.js → taiga-ui-addon-mobile-internal.mjs} +1 -1
  135. package/fesm2015/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  136. package/fesm2015/taiga-ui-addon-mobile-types.mjs +4 -0
  137. package/fesm2015/taiga-ui-addon-mobile-types.mjs.map +1 -0
  138. package/fesm2015/{taiga-ui-addon-mobile-utils.js → taiga-ui-addon-mobile-utils.mjs} +1 -1
  139. package/fesm2015/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  140. package/fesm2015/{taiga-ui-addon-mobile.js → taiga-ui-addon-mobile.mjs} +1 -1
  141. package/fesm2015/taiga-ui-addon-mobile.mjs.map +1 -0
  142. package/{fesm2015/taiga-ui-addon-mobile-components-app-bar.js → fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs} +18 -32
  143. package/fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  144. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs +69 -0
  145. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  146. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js → fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +35 -49
  147. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  148. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js → fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +22 -25
  149. package/fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  150. package/{fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js → fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +24 -40
  151. package/fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  152. package/{fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js → fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +25 -31
  153. package/fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  154. package/{fesm2015/taiga-ui-addon-mobile-components-sheet.js → fesm2020/taiga-ui-addon-mobile-components-sheet.mjs} +85 -106
  155. package/fesm2020/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  156. package/{fesm2015/taiga-ui-addon-mobile-components-tab-bar.js → fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs} +18 -29
  157. package/fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  158. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs +32 -0
  159. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  160. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs +32 -0
  161. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  162. package/fesm2020/taiga-ui-addon-mobile-components.mjs +15 -0
  163. package/fesm2020/taiga-ui-addon-mobile-components.mjs.map +1 -0
  164. package/fesm2020/taiga-ui-addon-mobile-const.mjs +19 -0
  165. package/fesm2020/taiga-ui-addon-mobile-const.mjs.map +1 -0
  166. package/{fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js → fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +11 -11
  167. package/fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  168. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +85 -0
  169. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  170. package/{fesm2015/taiga-ui-addon-mobile-directives-ripple.js → fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs} +13 -19
  171. package/fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  172. package/{fesm2015/taiga-ui-addon-mobile-directives-sidebar.js → fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs} +28 -28
  173. package/fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  174. package/{fesm2015/taiga-ui-addon-mobile-directives-touchable.js → fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs} +9 -9
  175. package/fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  176. package/fesm2020/taiga-ui-addon-mobile-directives.mjs +10 -0
  177. package/fesm2020/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  178. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  179. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  180. package/{fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +13 -21
  181. package/fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  182. package/fesm2020/taiga-ui-addon-mobile-internal.mjs +6 -0
  183. package/fesm2020/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  184. package/fesm2020/taiga-ui-addon-mobile-types.mjs +4 -0
  185. package/fesm2020/taiga-ui-addon-mobile-types.mjs.map +1 -0
  186. package/fesm2020/taiga-ui-addon-mobile-utils.mjs +16 -0
  187. package/fesm2020/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  188. package/fesm2020/taiga-ui-addon-mobile.mjs +11 -0
  189. package/fesm2020/taiga-ui-addon-mobile.mjs.map +1 -0
  190. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +1 -1
  191. package/package.json +229 -32
  192. package/styles/android/checkbox.less +1 -2
  193. package/styles/android/radio.less +2 -2
  194. package/styles/common/badge.less +3 -3
  195. package/styles/ios/checkbox.less +2 -2
  196. package/types/touch-mode.d.ts +1 -1
  197. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +0 -149
  198. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +0 -1
  199. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +0 -129
  200. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +0 -1
  201. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +0 -929
  202. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +0 -1
  203. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +0 -450
  204. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +0 -1
  205. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +0 -677
  206. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +0 -1
  207. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +0 -596
  208. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +0 -1
  209. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +0 -1153
  210. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +0 -1
  211. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +0 -188
  212. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +0 -1
  213. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +0 -391
  214. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +0 -1
  215. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +0 -391
  216. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +0 -1
  217. package/bundles/taiga-ui-addon-mobile-components.umd.js +0 -75
  218. package/bundles/taiga-ui-addon-mobile-components.umd.js.map +0 -1
  219. package/bundles/taiga-ui-addon-mobile-const.umd.js +0 -24
  220. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +0 -1
  221. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +0 -437
  222. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +0 -1
  223. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +0 -131
  224. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +0 -1
  225. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +0 -195
  226. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +0 -1
  227. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +0 -524
  228. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +0 -1
  229. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +0 -144
  230. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +0 -1
  231. package/bundles/taiga-ui-addon-mobile-directives.umd.js +0 -45
  232. package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +0 -1
  233. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +0 -11
  234. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +0 -1
  235. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +0 -429
  236. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +0 -1
  237. package/bundles/taiga-ui-addon-mobile-internal.umd.js +0 -21
  238. package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +0 -1
  239. package/bundles/taiga-ui-addon-mobile-types.umd.js +0 -11
  240. package/bundles/taiga-ui-addon-mobile-types.umd.js.map +0 -1
  241. package/bundles/taiga-ui-addon-mobile-utils.umd.js +0 -26
  242. package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +0 -1
  243. package/bundles/taiga-ui-addon-mobile.umd.js +0 -51
  244. package/bundles/taiga-ui-addon-mobile.umd.js.map +0 -1
  245. package/components/app-bar/package.json +0 -10
  246. package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +0 -5
  247. package/components/mobile-calendar/package.json +0 -10
  248. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +0 -5
  249. package/components/mobile-calendar-dialog/package.json +0 -10
  250. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +0 -5
  251. package/components/mobile-dialog/package.json +0 -10
  252. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +0 -5
  253. package/components/package.json +0 -10
  254. package/components/pull-to-refresh/package.json +0 -10
  255. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +0 -5
  256. package/components/sheet/package.json +0 -10
  257. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +0 -5
  258. package/components/sheet-dialog/package.json +0 -10
  259. package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +0 -5
  260. package/components/tab-bar/package.json +0 -10
  261. package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +0 -5
  262. package/components/taiga-ui-addon-mobile-components.d.ts +0 -5
  263. package/components/theme-android/package.json +0 -10
  264. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +0 -5
  265. package/components/theme-ios/package.json +0 -10
  266. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +0 -5
  267. package/const/package.json +0 -10
  268. package/const/taiga-ui-addon-mobile-const.d.ts +0 -5
  269. package/directives/elastic-sticky/package.json +0 -10
  270. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +0 -5
  271. package/directives/mobile-tabs/package.json +0 -10
  272. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +0 -5
  273. package/directives/package.json +0 -10
  274. package/directives/ripple/package.json +0 -10
  275. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +0 -5
  276. package/directives/sidebar/package.json +0 -10
  277. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +0 -5
  278. package/directives/taiga-ui-addon-mobile-directives.d.ts +0 -5
  279. package/directives/touchable/package.json +0 -10
  280. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +0 -5
  281. package/esm2015/components/app-bar/app-bar-back.component.js +0 -16
  282. package/esm2015/components/app-bar/app-bar.component.js +0 -43
  283. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +0 -314
  284. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -45
  285. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +0 -38
  286. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +0 -26
  287. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +0 -60
  288. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -49
  289. package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +0 -54
  290. package/esm2015/components/sheet/components/sheet/sheet.component.js +0 -128
  291. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +0 -68
  292. package/esm2015/components/sheet/sheet-options.js +0 -19
  293. package/esm2015/components/sheet/sheet.directive.js +0 -49
  294. package/esm2015/components/sheet/sheet.service.js +0 -51
  295. package/esm2015/components/sheet-dialog/sheet-dialog.component.js +0 -141
  296. package/esm2015/components/tab-bar/tab-bar-item.component.js +0 -35
  297. package/esm2015/components/tab-bar/tab-bar.component.js +0 -52
  298. package/esm2015/components/theme-ios/theme-ios.component.js +0 -18
  299. package/esm2015/const/mobile-alert-options.js +0 -7
  300. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +0 -19
  301. package/esm2015/directives/sidebar/sidebar.component.js +0 -58
  302. package/esm2015/directives/sidebar/sidebar.directive.js +0 -72
  303. package/esm2015/directives/touchable/touchable.directive.js +0 -83
  304. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -40
  305. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +0 -1
  306. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  307. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  308. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  309. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  310. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +0 -1
  311. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  312. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +0 -1
  313. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  314. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  315. package/fesm2015/taiga-ui-addon-mobile-components.js.map +0 -1
  316. package/fesm2015/taiga-ui-addon-mobile-const.js.map +0 -1
  317. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  318. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -91
  319. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  320. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  321. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  322. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  323. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +0 -1
  324. package/fesm2015/taiga-ui-addon-mobile-interfaces.js +0 -4
  325. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  326. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  327. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +0 -1
  328. package/fesm2015/taiga-ui-addon-mobile-types.js +0 -4
  329. package/fesm2015/taiga-ui-addon-mobile-types.js.map +0 -1
  330. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +0 -1
  331. package/fesm2015/taiga-ui-addon-mobile.js.map +0 -1
  332. package/interfaces/package.json +0 -10
  333. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +0 -5
  334. package/internal/package.json +0 -10
  335. package/internal/primitive-calendar-mobile/package.json +0 -10
  336. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +0 -5
  337. package/internal/taiga-ui-addon-mobile-internal.d.ts +0 -5
  338. package/taiga-ui-addon-mobile.d.ts +0 -5
  339. package/types/package.json +0 -10
  340. package/types/taiga-ui-addon-mobile-types.d.ts +0 -5
  341. package/utils/package.json +0 -10
  342. package/utils/taiga-ui-addon-mobile-utils.d.ts +0 -5
  343. /package/{esm2015/components/app-bar/app-bar.providers.js → esm2020/components/app-bar/app-bar.providers.mjs} +0 -0
  344. /package/{esm2015/components/app-bar/index.js → esm2020/components/app-bar/index.mjs} +0 -0
  345. /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
  346. /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
  347. /package/{esm2015/components/mobile-calendar/index.js → esm2020/components/mobile-calendar/index.mjs} +0 -0
  348. /package/{esm2015/components/mobile-calendar/mobile-calendar.const.js → esm2020/components/mobile-calendar/mobile-calendar.const.mjs} +0 -0
  349. /package/{esm2015/components/mobile-calendar/mobile-calendar.providers.js → esm2020/components/mobile-calendar/mobile-calendar.providers.mjs} +0 -0
  350. /package/{esm2015/components/mobile-calendar/mobile-calendar.strategy.js → esm2020/components/mobile-calendar/mobile-calendar.strategy.mjs} +0 -0
  351. /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
  352. /package/{esm2015/components/mobile-calendar-dialog/index.js → esm2020/components/mobile-calendar-dialog/index.mjs} +0 -0
  353. /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
  354. /package/{esm2015/components/mobile-dialog/index.js → esm2020/components/mobile-dialog/index.mjs} +0 -0
  355. /package/{esm2015/components/mobile-dialog/mobile-dialog-options.js → esm2020/components/mobile-dialog/mobile-dialog-options.mjs} +0 -0
  356. /package/{esm2015/components/mobile-dialog/mobile-dialog.options.js → esm2020/components/mobile-dialog/mobile-dialog.options.mjs} +0 -0
  357. /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
  358. /package/{esm2015/components/pull-to-refresh/index.js → esm2020/components/pull-to-refresh/index.mjs} +0 -0
  359. /package/{esm2015/components/pull-to-refresh/pull-to-refresh.providers.js → esm2020/components/pull-to-refresh/pull-to-refresh.providers.mjs} +0 -0
  360. /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
  361. /package/{esm2015/components/sheet/components/sheet/sheet.providers.js → esm2020/components/sheet/components/sheet/sheet.providers.mjs} +0 -0
  362. /package/{esm2015/components/sheet/index.js → esm2020/components/sheet/index.mjs} +0 -0
  363. /package/{esm2015/components/sheet/ios.hacks.js → esm2020/components/sheet/ios.hacks.mjs} +0 -0
  364. /package/{esm2015/components/sheet/sheet-tokens.js → esm2020/components/sheet/sheet-tokens.mjs} +0 -0
  365. /package/{esm2015/components/sheet/sheet.js → esm2020/components/sheet/sheet.mjs} +0 -0
  366. /package/{esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js → esm2020/components/sheet/taiga-ui-addon-mobile-components-sheet.mjs} +0 -0
  367. /package/{esm2015/components/sheet-dialog/index.js → esm2020/components/sheet-dialog/index.mjs} +0 -0
  368. /package/{esm2015/components/sheet-dialog/sheet-dialog.options.js → esm2020/components/sheet-dialog/sheet-dialog.options.mjs} +0 -0
  369. /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
  370. /package/{esm2015/components/tab-bar/index.js → esm2020/components/tab-bar/index.mjs} +0 -0
  371. /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
  372. /package/{esm2015/components/taiga-ui-addon-mobile-components.js → esm2020/components/taiga-ui-addon-mobile-components.mjs} +0 -0
  373. /package/{esm2015/components/theme-android/index.js → esm2020/components/theme-android/index.mjs} +0 -0
  374. /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
  375. /package/{esm2015/components/theme-ios/index.js → esm2020/components/theme-ios/index.mjs} +0 -0
  376. /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
  377. /package/{esm2015/const/index.js → esm2020/const/index.mjs} +0 -0
  378. /package/{esm2015/const/taiga-ui-addon-mobile-const.js → esm2020/const/taiga-ui-addon-mobile-const.mjs} +0 -0
  379. /package/{esm2015/directives/elastic-sticky/index.js → esm2020/directives/elastic-sticky/index.mjs} +0 -0
  380. /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
  381. /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
  382. /package/{esm2015/directives/mobile-tabs/index.js → esm2020/directives/mobile-tabs/index.mjs} +0 -0
  383. /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
  384. /package/{esm2015/directives/ripple/index.js → esm2020/directives/ripple/index.mjs} +0 -0
  385. /package/{esm2015/directives/ripple/ripple.providers.js → esm2020/directives/ripple/ripple.providers.mjs} +0 -0
  386. /package/{esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js → esm2020/directives/ripple/taiga-ui-addon-mobile-directives-ripple.mjs} +0 -0
  387. /package/{esm2015/directives/sidebar/index.js → esm2020/directives/sidebar/index.mjs} +0 -0
  388. /package/{esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js → esm2020/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.mjs} +0 -0
  389. /package/{esm2015/directives/taiga-ui-addon-mobile-directives.js → esm2020/directives/taiga-ui-addon-mobile-directives.mjs} +0 -0
  390. /package/{esm2015/directives/touchable/index.js → esm2020/directives/touchable/index.mjs} +0 -0
  391. /package/{esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js → esm2020/directives/touchable/taiga-ui-addon-mobile-directives-touchable.mjs} +0 -0
  392. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  393. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  394. /package/{esm2015/interfaces/mobile-alert-data.js → esm2020/interfaces/mobile-alert-data.mjs} +0 -0
  395. /package/{esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js → esm2020/interfaces/taiga-ui-addon-mobile-interfaces.mjs} +0 -0
  396. /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
  397. /package/{esm2015/internal/primitive-calendar-mobile/index.js → esm2020/internal/primitive-calendar-mobile/index.mjs} +0 -0
  398. /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
  399. /package/{esm2015/internal/taiga-ui-addon-mobile-internal.js → esm2020/internal/taiga-ui-addon-mobile-internal.mjs} +0 -0
  400. /package/{esm2015/taiga-ui-addon-mobile.js → esm2020/taiga-ui-addon-mobile.mjs} +0 -0
  401. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  402. /package/{esm2015/types/taiga-ui-addon-mobile-types.js → esm2020/types/taiga-ui-addon-mobile-types.mjs} +0 -0
  403. /package/{esm2015/types/touch-mode.js → esm2020/types/touch-mode.mjs} +0 -0
  404. /package/{esm2015/utils/find-touch-index.js → esm2020/utils/find-touch-index.mjs} +0 -0
  405. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  406. /package/{esm2015/utils/taiga-ui-addon-mobile-utils.js → esm2020/utils/taiga-ui-addon-mobile-utils.mjs} +0 -0
@@ -0,0 +1,540 @@
1
+ import * as i1 from '@angular/common';
2
+ import { DOCUMENT, CommonModule } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { InjectionToken, Optional, ChangeDetectorRef, EventEmitter, NgZone, Component, ChangeDetectionStrategy, Inject, Self, ViewChild, Input, Output, NgModule } from '@angular/core';
5
+ import * as i7 from '@taiga-ui/cdk';
6
+ import { MONTHS_IN_YEAR, tuiPure, TuiDestroyService, TuiScrollService, TUI_IS_IOS, tuiWatch, TuiDay, TUI_FIRST_DAY, TUI_LAST_DAY, ALWAYS_FALSE_HANDLER, TuiMonth, TuiDayRange, tuiTypedFromEvent, TUI_IS_E2E, TuiMapperPipeModule } from '@taiga-ui/cdk';
7
+ import * as i5 from '@taiga-ui/core';
8
+ import { TUI_COMMON_ICONS, TUI_CLOSE_WORD, TUI_SHORT_WEEK_DAYS, TUI_ANIMATIONS_DURATION, TuiLinkModule, TuiButtonModule, TuiMonthPipeModule, TuiOrderWeekDaysPipeModule } from '@taiga-ui/core';
9
+ import { TUI_CALENDAR_DATE_STREAM, tuiImmutableUpdateInputDateMulti, TUI_CANCEL_WORD, TUI_DONE_WORD, TUI_CHOOSE_DAY_OR_RANGE_TEXTS } from '@taiga-ui/kit';
10
+ import * as i8 from 'rxjs';
11
+ import { Subject, EMPTY, identity, race, timer } from 'rxjs';
12
+ import { distinctUntilChanged, takeUntil, delay, take, windowToggle, mergeMap, map, filter, switchMap, debounceTime } from 'rxjs/operators';
13
+ import * as i2 from '@angular/cdk/scrolling';
14
+ import { VIRTUAL_SCROLL_STRATEGY, ScrollingModule } from '@angular/cdk/scrolling';
15
+ import { __decorate } from 'tslib';
16
+ import * as i3 from '@taiga-ui/addon-mobile/directives/touchable';
17
+ import { TuiTouchableModule } from '@taiga-ui/addon-mobile/directives/touchable';
18
+ import * as i4 from '@taiga-ui/addon-mobile/directives/ripple';
19
+ import { TuiRippleModule } from '@taiga-ui/addon-mobile/directives/ripple';
20
+ import * as i6 from '@taiga-ui/addon-mobile/internal/primitive-calendar-mobile';
21
+ import { TuiPrimitiveCalendarMobileModule } from '@taiga-ui/addon-mobile/internal/primitive-calendar-mobile';
22
+
23
+ function getCycle(options) {
24
+ return Array.from({ length: options.yearCycle }, (_, i) => Array.from({ length: MONTHS_IN_YEAR }, (_, month) => options.label +
25
+ weekCount({ year: i, month, startingYear: options.startingYear }) *
26
+ options.week));
27
+ }
28
+ function weekCount(options) {
29
+ const firstOfMonth = new Date(options.year + options.startingYear, options.month, 1);
30
+ const lastOfMonth = new Date(options.year + options.startingYear, options.month + 1, 0);
31
+ const days = lastOfMonth.getDate() + (firstOfMonth.getDay() || 7) - 1;
32
+ return Math.ceil(days / 7);
33
+ }
34
+ const SCROLL_DEBOUNCE_TIME = 80;
35
+ const YEARS_IN_ROW = 5;
36
+ const STARTING_YEAR = 1900;
37
+ const RANGE = 196;
38
+ const BUFFER = 500;
39
+ const ANDROID_LABEL = 64;
40
+ const ANDROID_WEEK = 48;
41
+ const IOS_LABEL = 50;
42
+ const IOS_WEEK = 50;
43
+ const YEARLY_CYCLE = 28;
44
+ const ANDROID_CYCLE = getCycle({
45
+ label: ANDROID_LABEL,
46
+ week: ANDROID_WEEK,
47
+ yearCycle: YEARLY_CYCLE,
48
+ startingYear: STARTING_YEAR,
49
+ });
50
+ const IOS_CYCLE = getCycle({
51
+ label: IOS_LABEL,
52
+ week: IOS_WEEK,
53
+ yearCycle: YEARLY_CYCLE,
54
+ startingYear: STARTING_YEAR,
55
+ });
56
+
57
+ const ANDROID_CYCLE_HEIGHT = reduceCycle(ANDROID_CYCLE);
58
+ const IOS_CYCLE_HEIGHT = reduceCycle(IOS_CYCLE);
59
+ function reduceCycle(cycle, lastYear = 28, lastMonth = 12) {
60
+ return cycle.reduce((total, year, yearIndex) => yearIndex <= lastYear
61
+ ? total +
62
+ year.reduce((sum, month, monthIndex) => yearIndex < lastYear ||
63
+ (yearIndex === lastYear && monthIndex < lastMonth)
64
+ ? sum + month
65
+ : sum, 0)
66
+ : total, 0);
67
+ }
68
+ /**
69
+ * This scroll strategy is hard wired with styles for iOS and Android.
70
+ * It is dependent on month height on those platforms and is designed to
71
+ * work for {@link TuiMobileCalendarComponent} with years 1906 to 2102
72
+ */
73
+ class TuiMobileCalendarStrategy {
74
+ constructor(isIos, scrollService) {
75
+ this.isIos = isIos;
76
+ this.scrollService = scrollService;
77
+ this.index$ = new Subject();
78
+ this.viewport = null;
79
+ this.destroy$ = new Subject();
80
+ }
81
+ get scrolledIndexChange() {
82
+ return this.index$.pipe(distinctUntilChanged());
83
+ }
84
+ attach(viewport) {
85
+ const cycle = this.isIos ? IOS_CYCLE_HEIGHT : ANDROID_CYCLE_HEIGHT;
86
+ this.viewport = viewport;
87
+ this.viewport.setTotalContentSize(cycle * 7);
88
+ this.updateRenderedRange(this.viewport);
89
+ }
90
+ detach() {
91
+ this.index$.complete();
92
+ this.viewport = null;
93
+ this.destroy$.next();
94
+ this.destroy$.complete();
95
+ }
96
+ onContentScrolled() {
97
+ if (this.viewport) {
98
+ this.updateRenderedRange(this.viewport);
99
+ }
100
+ }
101
+ /** These do not matter for this case */
102
+ onDataLengthChanged() { }
103
+ onContentRendered() { }
104
+ onRenderedOffsetChanged() { }
105
+ scrollToIndex(index, behavior) {
106
+ if (!this.viewport) {
107
+ return;
108
+ }
109
+ const scrollTop = this.getOffsetForIndex(index);
110
+ if (behavior !== `smooth`) {
111
+ this.viewport.scrollToOffset(scrollTop, behavior);
112
+ return;
113
+ }
114
+ this.scrollService
115
+ .scroll$(this.viewport.elementRef.nativeElement, scrollTop)
116
+ .pipe(takeUntil(this.destroy$))
117
+ .subscribe();
118
+ }
119
+ getOffsetForIndex(index) {
120
+ const month = index % MONTHS_IN_YEAR;
121
+ const year = (index - month) / MONTHS_IN_YEAR;
122
+ return this.computeHeight(year, month);
123
+ }
124
+ getIndexForOffset(offset) {
125
+ const cycle = this.isIos ? IOS_CYCLE : ANDROID_CYCLE;
126
+ const cycleHeight = this.isIos ? IOS_CYCLE_HEIGHT : ANDROID_CYCLE_HEIGHT;
127
+ const remainder = offset % cycleHeight;
128
+ const years = ((offset - remainder) / cycleHeight) * YEARLY_CYCLE;
129
+ let accumulator = 0;
130
+ for (let year = 0; year < cycle.length; year++) {
131
+ for (let month = 0; month < cycle[year].length; month++) {
132
+ accumulator += cycle[year][month];
133
+ if (accumulator - cycle[year][month] / 2 > remainder) {
134
+ return Math.max((years + year) * MONTHS_IN_YEAR + month, 0);
135
+ }
136
+ }
137
+ }
138
+ return RANGE;
139
+ }
140
+ computeHeight(year, month) {
141
+ const cycle = this.isIos ? IOS_CYCLE : ANDROID_CYCLE;
142
+ const remainder = year % YEARLY_CYCLE;
143
+ const remainderHeight = reduceCycle(cycle, remainder, month);
144
+ const fullCycles = (year - remainder) / YEARLY_CYCLE;
145
+ const fullCyclesHeight = this.isIos
146
+ ? fullCycles * IOS_CYCLE_HEIGHT
147
+ : fullCycles * ANDROID_CYCLE_HEIGHT;
148
+ return fullCyclesHeight + remainderHeight;
149
+ }
150
+ updateRenderedRange(viewport) {
151
+ const offset = viewport.measureScrollOffset();
152
+ const { start, end } = viewport.getRenderedRange();
153
+ const viewportSize = viewport.getViewportSize();
154
+ const dataLength = viewport.getDataLength();
155
+ const newRange = { start, end };
156
+ const firstVisibleIndex = this.getIndexForOffset(offset);
157
+ const startBuffer = offset - this.getOffsetForIndex(start);
158
+ if (startBuffer < BUFFER && start !== 0) {
159
+ newRange.start = Math.max(0, this.getIndexForOffset(offset - BUFFER * 2));
160
+ newRange.end = Math.min(dataLength, this.getIndexForOffset(offset + viewportSize + BUFFER));
161
+ }
162
+ else {
163
+ const endBuffer = this.getOffsetForIndex(end) - offset - viewportSize;
164
+ if (endBuffer < BUFFER && end !== dataLength) {
165
+ newRange.start = Math.max(0, this.getIndexForOffset(offset - BUFFER));
166
+ newRange.end = Math.min(dataLength, this.getIndexForOffset(offset + viewportSize + BUFFER * 2));
167
+ }
168
+ }
169
+ viewport.setRenderedRange(newRange);
170
+ viewport.setRenderedContentOffset(this.getOffsetForIndex(newRange.start));
171
+ this.index$.next(firstVisibleIndex);
172
+ }
173
+ }
174
+ __decorate([
175
+ tuiPure
176
+ ], TuiMobileCalendarStrategy.prototype, "scrolledIndexChange", null);
177
+
178
+ /**
179
+ * Stream for updating value
180
+ */
181
+ const TUI_VALUE_STREAM = new InjectionToken(`[TUI_VALUE_STREAM]`);
182
+ const TUI_MOBILE_CALENDAR_PROVIDERS = [
183
+ TuiDestroyService,
184
+ TuiScrollService,
185
+ {
186
+ provide: VIRTUAL_SCROLL_STRATEGY,
187
+ deps: [TUI_IS_IOS, TuiScrollService],
188
+ useClass: TuiMobileCalendarStrategy,
189
+ },
190
+ {
191
+ provide: TUI_VALUE_STREAM,
192
+ deps: [
193
+ [new Optional(), TUI_CALENDAR_DATE_STREAM],
194
+ TuiDestroyService,
195
+ ChangeDetectorRef,
196
+ ],
197
+ useFactory: (value$, destroy$, cdr) => (value$ || EMPTY).pipe(tuiWatch(cdr), takeUntil(destroy$)),
198
+ },
199
+ ];
200
+
201
+ class TuiMobileCalendarComponent {
202
+ constructor(isIOS, isE2E, doc, destroy$, valueChanges, icons, closeWord$, cancelWord$, doneWord$, unorderedWeekDays$, chooseDayOrRangeTexts$, duration, ngZone) {
203
+ this.isIOS = isIOS;
204
+ this.isE2E = isE2E;
205
+ this.doc = doc;
206
+ this.destroy$ = destroy$;
207
+ this.icons = icons;
208
+ this.closeWord$ = closeWord$;
209
+ this.cancelWord$ = cancelWord$;
210
+ this.doneWord$ = doneWord$;
211
+ this.unorderedWeekDays$ = unorderedWeekDays$;
212
+ this.chooseDayOrRangeTexts$ = chooseDayOrRangeTexts$;
213
+ this.duration = duration;
214
+ this.ngZone = ngZone;
215
+ this.today = TuiDay.currentLocal();
216
+ this.activeYear = 0;
217
+ this.activeMonth = 0;
218
+ this.single = true;
219
+ this.multi = false;
220
+ this.min = TUI_FIRST_DAY;
221
+ this.max = TUI_LAST_DAY;
222
+ this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
223
+ this.cancel = new EventEmitter();
224
+ this.confirm = new EventEmitter();
225
+ this.value = null;
226
+ this.years = Array.from({ length: RANGE }, (_, i) => i + STARTING_YEAR);
227
+ this.months = Array.from({ length: RANGE * 12 }, (_, i) => new TuiMonth(Math.floor(i / MONTHS_IN_YEAR) + STARTING_YEAR, i % MONTHS_IN_YEAR));
228
+ this.disabledItemHandlerMapper = (disabledItemHandler, min, max) => item => item.dayBefore(min) ||
229
+ (max !== null && item.dayAfter(max)) ||
230
+ disabledItemHandler(item);
231
+ valueChanges.pipe(takeUntil(this.destroy$)).subscribe(value => {
232
+ this.value = value;
233
+ });
234
+ }
235
+ get yearWidth() {
236
+ return this.doc.documentElement.clientWidth / YEARS_IN_ROW;
237
+ }
238
+ ngAfterViewInit() {
239
+ this.activeYear = this.initialYear;
240
+ this.activeMonth = this.initialMonth;
241
+ // Virtual scroll has not yet rendered items even in ngAfterViewInit
242
+ this.waitScrolledChange();
243
+ }
244
+ onClose() {
245
+ this.cancel.emit();
246
+ }
247
+ onConfirm() {
248
+ if (this.value) {
249
+ this.confirm.emit(this.value);
250
+ }
251
+ else {
252
+ this.cancel.emit();
253
+ }
254
+ }
255
+ onDayClick(day) {
256
+ if (this.single) {
257
+ this.value = day;
258
+ }
259
+ else if (this.isMultiValue(this.value)) {
260
+ this.value = tuiImmutableUpdateInputDateMulti(this.value, day);
261
+ }
262
+ else if (this.isSingleValue(this.value)) {
263
+ this.value = new TuiDayRange(day, day);
264
+ }
265
+ else if (this.value instanceof TuiDayRange) {
266
+ this.value = TuiDayRange.sort(this.value.from, day);
267
+ }
268
+ else if (!this.value) {
269
+ this.value = new TuiDayRange(day, day);
270
+ }
271
+ }
272
+ getState(index) {
273
+ if (this.isYearActive(index)) {
274
+ return 'active';
275
+ }
276
+ if (this.isYearActive(index - 1) || this.isYearActive(index + 1)) {
277
+ return 'adjacent';
278
+ }
279
+ return null;
280
+ }
281
+ onMonthChange(month) {
282
+ // Skipping initial callback where index === 0
283
+ if (!month || this.activeMonth === month) {
284
+ return;
285
+ }
286
+ this.activeMonth = month;
287
+ const activeYear = this.monthToYear(month);
288
+ if (activeYear === this.activeYear) {
289
+ return;
290
+ }
291
+ this.activeYear = activeYear;
292
+ this.scrollToActiveYear();
293
+ }
294
+ setYear(year) {
295
+ if (this.activeYear === year) {
296
+ return;
297
+ }
298
+ this.activeMonth += this.getMonthOffset(year);
299
+ this.activeYear = year;
300
+ this.scrollToActiveYear('smooth');
301
+ this.ngZone.runOutsideAngular(() => {
302
+ // Delay is required to run months scroll in the next frame to prevent flicker
303
+ setTimeout(() => this.scrollToActiveMonth());
304
+ });
305
+ }
306
+ isMultiValue(day) {
307
+ return !(day instanceof TuiDay) && !(day instanceof TuiDayRange) && this.multi;
308
+ }
309
+ isSingleValue(day) {
310
+ return day instanceof TuiDay || (day instanceof TuiDayRange && !day.isSingleDay);
311
+ }
312
+ get initialYear() {
313
+ var _a, _b, _c;
314
+ if (!this.value) {
315
+ return this.today.year;
316
+ }
317
+ if (this.value instanceof TuiDay) {
318
+ return this.value.year;
319
+ }
320
+ if (!(this.value instanceof TuiDayRange)) {
321
+ return (_c = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.year) !== null && _c !== void 0 ? _c : this.today.year;
322
+ }
323
+ return this.value.from.year;
324
+ }
325
+ get initialMonth() {
326
+ var _a, _b, _c, _d, _e, _f;
327
+ if (!this.value) {
328
+ return this.today.month + (this.today.year - STARTING_YEAR) * MONTHS_IN_YEAR;
329
+ }
330
+ if (this.value instanceof TuiDay) {
331
+ return this.value.month + (this.value.year - STARTING_YEAR) * MONTHS_IN_YEAR;
332
+ }
333
+ if (!(this.value instanceof TuiDayRange)) {
334
+ return (((_c = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.month) !== null && _c !== void 0 ? _c : this.today.month) +
335
+ (((_f = (_e = (_d = this.value) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.year) !== null && _f !== void 0 ? _f : this.today.year) - STARTING_YEAR) *
336
+ MONTHS_IN_YEAR);
337
+ }
338
+ return (this.value.from.month +
339
+ (this.value.from.year - STARTING_YEAR) * MONTHS_IN_YEAR);
340
+ }
341
+ getYearsViewportSize() {
342
+ var _a;
343
+ return ((_a = this.yearsScrollRef) === null || _a === void 0 ? void 0 : _a.getViewportSize()) || 0;
344
+ }
345
+ updateViewportDimension() {
346
+ var _a, _b;
347
+ (_a = this.yearsScrollRef) === null || _a === void 0 ? void 0 : _a.checkViewportSize();
348
+ (_b = this.monthsScrollRef) === null || _b === void 0 ? void 0 : _b.checkViewportSize();
349
+ }
350
+ lateInit() {
351
+ return this.getYearsViewportSize() > 0 ? identity : delay(200);
352
+ }
353
+ waitScrolledChange() {
354
+ var _a;
355
+ this.updateViewportDimension();
356
+ (_a = this.monthsScrollRef) === null || _a === void 0 ? void 0 : _a.scrolledIndexChange.pipe(delay(this.duration), this.lateInit(), take(1), takeUntil(this.destroy$)).subscribe(() => {
357
+ this.updateViewportDimension();
358
+ this.initYearScroll();
359
+ this.initMonthScroll();
360
+ this.scrollToActiveYear();
361
+ this.scrollToActiveMonth();
362
+ });
363
+ }
364
+ initYearScroll() {
365
+ const { yearsScrollRef } = this;
366
+ if (!yearsScrollRef) {
367
+ return;
368
+ }
369
+ const touchstart$ = tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'touchstart', { passive: true });
370
+ const touchend$ = tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'touchend', { passive: true });
371
+ const click$ = tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'click');
372
+ // Refresh activeYear
373
+ yearsScrollRef
374
+ .elementScrolled()
375
+ .pipe(
376
+ // Ignore smooth scroll resulting from click on the exact year
377
+ windowToggle(touchstart$, () => click$), mergeMap(x => x),
378
+ // Delay is required to run months scroll in the next frame to prevent flicker
379
+ delay(0), map(() => Math.round(yearsScrollRef.measureScrollOffset() / this.yearWidth) +
380
+ Math.floor(YEARS_IN_ROW / 2) +
381
+ STARTING_YEAR), filter(activeYear => activeYear !== this.activeYear), takeUntil(this.destroy$))
382
+ .subscribe(activeYear => {
383
+ this.activeMonth += this.getMonthOffset(activeYear);
384
+ this.activeYear = activeYear;
385
+ this.scrollToActiveMonth();
386
+ });
387
+ // Smooth scroll to activeYear after scrolling is done
388
+ touchstart$
389
+ .pipe(switchMap(() => touchend$), switchMap(() => race(yearsScrollRef.elementScrolled(), timer(SCROLL_DEBOUNCE_TIME)).pipe(debounceTime(SCROLL_DEBOUNCE_TIME * 2), take(1), takeUntil(touchstart$))), takeUntil(this.destroy$))
390
+ .subscribe(() => this.scrollToActiveYear('smooth'));
391
+ }
392
+ initMonthScroll() {
393
+ const { monthsScrollRef } = this;
394
+ if (!monthsScrollRef) {
395
+ return;
396
+ }
397
+ const touchstart$ = tuiTypedFromEvent(monthsScrollRef.elementRef.nativeElement, 'touchstart', { passive: true });
398
+ const touchend$ = tuiTypedFromEvent(monthsScrollRef.elementRef.nativeElement, 'touchend', { passive: true });
399
+ // Smooth scroll to the closest month after scrolling is done
400
+ touchstart$
401
+ .pipe(switchMap(() => touchend$), switchMap(() => race(monthsScrollRef.elementScrolled(), timer(SCROLL_DEBOUNCE_TIME)).pipe(debounceTime(SCROLL_DEBOUNCE_TIME * 2), take(1), takeUntil(touchstart$))), takeUntil(this.destroy$))
402
+ .subscribe(() => this.scrollToActiveMonth('smooth'));
403
+ }
404
+ scrollToActiveYear(behavior = 'auto') {
405
+ var _a;
406
+ (_a = this.yearsScrollRef) === null || _a === void 0 ? void 0 : _a.scrollToIndex(Math.max(this.activeYear - STARTING_YEAR - 2, 0), this.isE2E ? 'auto' : behavior);
407
+ }
408
+ scrollToActiveMonth(behavior = 'auto') {
409
+ var _a;
410
+ (_a = this.monthsScrollRef) === null || _a === void 0 ? void 0 : _a.scrollToIndex(this.activeMonth, this.isE2E ? 'auto' : behavior);
411
+ }
412
+ isYearActive(index) {
413
+ return index === this.activeYear;
414
+ }
415
+ monthToYear(month) {
416
+ return Math.ceil((month + 1) / MONTHS_IN_YEAR) + STARTING_YEAR - 1;
417
+ }
418
+ getMonthOffset(year) {
419
+ return (year - this.activeYear) * MONTHS_IN_YEAR;
420
+ }
421
+ }
422
+ TuiMobileCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileCalendarComponent, deps: [{ token: TUI_IS_IOS }, { token: TUI_IS_E2E }, { token: DOCUMENT }, { token: TuiDestroyService, self: true }, { token: TUI_VALUE_STREAM }, { token: TUI_COMMON_ICONS }, { token: TUI_CLOSE_WORD }, { token: TUI_CANCEL_WORD }, { token: TUI_DONE_WORD }, { token: TUI_SHORT_WEEK_DAYS }, { token: TUI_CHOOSE_DAY_OR_RANGE_TEXTS }, { token: TUI_ANIMATIONS_DURATION }, { token: NgZone }], target: i0.ɵɵFactoryTarget.Component });
423
+ TuiMobileCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiMobileCalendarComponent, selector: "tui-mobile-calendar", inputs: { single: "single", multi: "multi", min: "min", max: "max", disabledItemHandler: "disabledItemHandler" }, outputs: { cancel: "cancel", confirm: "confirm" }, host: { properties: { "class._ios": "isIOS" } }, providers: TUI_MOBILE_CALENDAR_PROVIDERS, viewQueries: [{ propertyName: "yearsScrollRef", first: true, predicate: ["yearsScrollRef"], descendants: true }, { propertyName: "monthsScrollRef", first: true, predicate: ["monthsScrollRef"], descendants: true }], ngImport: i0, template: "<header class=\"t-header\">\n <button\n appearance=\"\"\n automation-id=\"tui-mobile-calendar__cancel\"\n shape=\"rounded\"\n tuiIconButton\n tuiRipple\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{ cancelWord$ | async }}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n automation-id=\"tui-mobile-calendar__label\"\n class=\"t-label\"\n >\n {{ single ? texts?.[0] : multi ? texts?.[2] : texts?.[1] }}\n </h2>\n <button\n automation-id=\"tui-mobile-calendar__confirm\"\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{ doneWord$ | async }}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n orientation=\"horizontal\"\n class=\"t-years\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n type=\"button\"\n class=\"t-year\"\n [attr.data-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{ index }}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div\n *ngFor=\"let day of unorderedWeekDays$ | tuiOrderWeekDays | async\"\n class=\"t-day\"\n >\n {{ day }}\n </div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{ month | tuiMonth | async }}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper : min : max\"\n [month]=\"month\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n", styles: [":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--tui-text-01);-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:var(--tui-link)}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-label+.t-link{padding-left:1rem}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:var(--tui-base-01);box-shadow:0 .5px var(--tui-base-03)}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;outline:none;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-state=active]{color:var(--tui-link);opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:var(--tui-text-02)}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px var(--tui-base-03);overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i3.TuiTouchableDirective, selector: "[tuiTouchable]", inputs: ["tuiTouchable"] }, { kind: "directive", type: i4.TuiRippleDirective, selector: "[tuiRipple]", inputs: ["tuiRipple"] }, { kind: "component", type: i5.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { kind: "component", type: i6.TuiPrimitiveCalendarMobileComponent, selector: "tui-primitive-calendar-mobile" }, { kind: "component", type: i5.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TuiMapperPipe, name: "tuiMapper" }, { kind: "pipe", type: i5.TuiMonthPipe, name: "tuiMonth" }, { kind: "pipe", type: i5.TuiOrderWeekDaysPipe, name: "tuiOrderWeekDays" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileCalendarComponent, decorators: [{
425
+ type: Component,
426
+ args: [{ selector: 'tui-mobile-calendar', changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_MOBILE_CALENDAR_PROVIDERS, host: { '[class._ios]': 'isIOS' }, template: "<header class=\"t-header\">\n <button\n appearance=\"\"\n automation-id=\"tui-mobile-calendar__cancel\"\n shape=\"rounded\"\n tuiIconButton\n tuiRipple\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{ cancelWord$ | async }}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n automation-id=\"tui-mobile-calendar__label\"\n class=\"t-label\"\n >\n {{ single ? texts?.[0] : multi ? texts?.[2] : texts?.[1] }}\n </h2>\n <button\n automation-id=\"tui-mobile-calendar__confirm\"\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{ doneWord$ | async }}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n orientation=\"horizontal\"\n class=\"t-years\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n type=\"button\"\n class=\"t-year\"\n [attr.data-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{ index }}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div\n *ngFor=\"let day of unorderedWeekDays$ | tuiOrderWeekDays | async\"\n class=\"t-day\"\n >\n {{ day }}\n </div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{ month | tuiMonth | async }}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper : min : max\"\n [month]=\"month\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n", styles: [":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--tui-text-01);-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:var(--tui-link)}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-label+.t-link{padding-left:1rem}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:var(--tui-base-01);box-shadow:0 .5px var(--tui-base-03)}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;outline:none;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-state=active]{color:var(--tui-link);opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:var(--tui-text-02)}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px var(--tui-base-03);overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}\n"] }]
427
+ }], ctorParameters: function () {
428
+ return [{ type: undefined, decorators: [{
429
+ type: Inject,
430
+ args: [TUI_IS_IOS]
431
+ }] }, { type: undefined, decorators: [{
432
+ type: Inject,
433
+ args: [TUI_IS_E2E]
434
+ }] }, { type: Document, decorators: [{
435
+ type: Inject,
436
+ args: [DOCUMENT]
437
+ }] }, { type: i7.TuiDestroyService, decorators: [{
438
+ type: Self
439
+ }, {
440
+ type: Inject,
441
+ args: [TuiDestroyService]
442
+ }] }, { type: i8.Observable, decorators: [{
443
+ type: Inject,
444
+ args: [TUI_VALUE_STREAM]
445
+ }] }, { type: undefined, decorators: [{
446
+ type: Inject,
447
+ args: [TUI_COMMON_ICONS]
448
+ }] }, { type: i8.Observable, decorators: [{
449
+ type: Inject,
450
+ args: [TUI_CLOSE_WORD]
451
+ }] }, { type: i8.Observable, decorators: [{
452
+ type: Inject,
453
+ args: [TUI_CANCEL_WORD]
454
+ }] }, { type: i8.Observable, decorators: [{
455
+ type: Inject,
456
+ args: [TUI_DONE_WORD]
457
+ }] }, { type: undefined, decorators: [{
458
+ type: Inject,
459
+ args: [TUI_SHORT_WEEK_DAYS]
460
+ }] }, { type: i8.Observable, decorators: [{
461
+ type: Inject,
462
+ args: [TUI_CHOOSE_DAY_OR_RANGE_TEXTS]
463
+ }] }, { type: undefined, decorators: [{
464
+ type: Inject,
465
+ args: [TUI_ANIMATIONS_DURATION]
466
+ }] }, { type: i0.NgZone, decorators: [{
467
+ type: Inject,
468
+ args: [NgZone]
469
+ }] }];
470
+ }, propDecorators: { yearsScrollRef: [{
471
+ type: ViewChild,
472
+ args: ['yearsScrollRef']
473
+ }], monthsScrollRef: [{
474
+ type: ViewChild,
475
+ args: ['monthsScrollRef']
476
+ }], single: [{
477
+ type: Input
478
+ }], multi: [{
479
+ type: Input
480
+ }], min: [{
481
+ type: Input
482
+ }], max: [{
483
+ type: Input
484
+ }], disabledItemHandler: [{
485
+ type: Input
486
+ }], cancel: [{
487
+ type: Output
488
+ }], confirm: [{
489
+ type: Output
490
+ }] } });
491
+
492
+ class TuiMobileCalendarModule {
493
+ }
494
+ TuiMobileCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
495
+ TuiMobileCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileCalendarModule, declarations: [TuiMobileCalendarComponent], imports: [CommonModule,
496
+ ScrollingModule,
497
+ TuiTouchableModule,
498
+ TuiRippleModule,
499
+ TuiMapperPipeModule,
500
+ TuiLinkModule,
501
+ TuiPrimitiveCalendarMobileModule,
502
+ TuiButtonModule,
503
+ TuiMonthPipeModule,
504
+ TuiOrderWeekDaysPipeModule], exports: [TuiMobileCalendarComponent] });
505
+ TuiMobileCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileCalendarModule, imports: [CommonModule,
506
+ ScrollingModule,
507
+ TuiTouchableModule,
508
+ TuiRippleModule,
509
+ TuiMapperPipeModule,
510
+ TuiLinkModule,
511
+ TuiPrimitiveCalendarMobileModule,
512
+ TuiButtonModule,
513
+ TuiMonthPipeModule,
514
+ TuiOrderWeekDaysPipeModule] });
515
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiMobileCalendarModule, decorators: [{
516
+ type: NgModule,
517
+ args: [{
518
+ imports: [
519
+ CommonModule,
520
+ ScrollingModule,
521
+ TuiTouchableModule,
522
+ TuiRippleModule,
523
+ TuiMapperPipeModule,
524
+ TuiLinkModule,
525
+ TuiPrimitiveCalendarMobileModule,
526
+ TuiButtonModule,
527
+ TuiMonthPipeModule,
528
+ TuiOrderWeekDaysPipeModule,
529
+ ],
530
+ declarations: [TuiMobileCalendarComponent],
531
+ exports: [TuiMobileCalendarComponent],
532
+ }]
533
+ }] });
534
+
535
+ /**
536
+ * Generated bundle index. Do not edit.
537
+ */
538
+
539
+ export { ANDROID_CYCLE, ANDROID_LABEL, ANDROID_WEEK, BUFFER, IOS_CYCLE, IOS_LABEL, IOS_WEEK, RANGE, SCROLL_DEBOUNCE_TIME, STARTING_YEAR, TUI_MOBILE_CALENDAR_PROVIDERS, TUI_VALUE_STREAM, TuiMobileCalendarComponent, TuiMobileCalendarModule, TuiMobileCalendarStrategy, YEARLY_CYCLE, YEARS_IN_ROW };
540
+ //# sourceMappingURL=taiga-ui-addon-mobile-components-mobile-calendar.mjs.map