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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (508) hide show
  1. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +69 -283
  2. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +538 -406
  4. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +417 -294
  6. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +437 -324
  8. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +878 -688
  10. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +374 -265
  12. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +374 -265
  14. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-mobile-components.umd.js +17 -31
  16. package/bundles/taiga-ui-addon-mobile-components.umd.js.map +1 -1
  17. package/bundles/taiga-ui-addon-mobile-const.umd.js +10 -255
  18. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +1 -1
  19. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +418 -305
  20. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +1 -1
  21. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +119 -325
  22. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +1 -1
  23. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +103 -314
  24. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +1 -1
  25. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +435 -315
  26. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +1 -1
  27. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +414 -298
  28. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +1 -1
  29. package/bundles/taiga-ui-addon-mobile-directives.umd.js +13 -23
  30. package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +1 -1
  31. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +2 -2
  32. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +1 -1
  33. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +405 -282
  34. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
  35. package/bundles/taiga-ui-addon-mobile-internal.umd.js +5 -7
  36. package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +1 -1
  37. package/bundles/taiga-ui-addon-mobile-tokens.umd.js +8 -4
  38. package/bundles/taiga-ui-addon-mobile-tokens.umd.js.map +1 -1
  39. package/bundles/taiga-ui-addon-mobile-types.umd.js +2 -2
  40. package/bundles/taiga-ui-addon-mobile-types.umd.js.map +1 -1
  41. package/bundles/taiga-ui-addon-mobile-utils.umd.js +8 -10
  42. package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +1 -1
  43. package/bundles/taiga-ui-addon-mobile.umd.js +24 -30
  44. package/bundles/taiga-ui-addon-mobile.umd.js.map +1 -1
  45. package/components/mobile-calendar/mobile-calendar.component.d.ts +21 -2
  46. package/components/mobile-calendar/mobile-calendar.module.d.ts +12 -0
  47. package/components/mobile-calendar/package.json +2 -5
  48. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +1 -0
  49. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +3 -0
  50. package/components/mobile-calendar-dialog/mobile-calendar-dialog.module.d.ts +6 -2
  51. package/components/mobile-calendar-dialog/package.json +2 -5
  52. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +1 -0
  53. package/components/mobile-dialog/mobile-dialog.component.d.ts +3 -0
  54. package/components/mobile-dialog/mobile-dialog.module.d.ts +9 -0
  55. package/components/mobile-dialog/mobile-dialog.service.d.ts +4 -1
  56. package/components/mobile-dialog/package.json +2 -5
  57. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +1 -0
  58. package/components/package.json +2 -5
  59. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +3 -0
  60. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +3 -0
  61. package/components/pull-to-refresh/package.json +2 -5
  62. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +3 -0
  63. package/components/pull-to-refresh/pull-to-refresh.module.d.ts +10 -0
  64. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +1 -0
  65. package/components/sheet/components/sheet/sheet.component.d.ts +5 -2
  66. package/components/sheet/components/sheet/sheet.providers.d.ts +1 -5
  67. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +5 -2
  68. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +3 -0
  69. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +3 -0
  70. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +3 -0
  71. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +3 -0
  72. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +5 -2
  73. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +3 -0
  74. package/components/sheet/package.json +2 -5
  75. package/components/sheet/sheet-options.d.ts +1 -1
  76. package/components/sheet/sheet-tokens.d.ts +5 -0
  77. package/components/sheet/sheet.d.ts +4 -0
  78. package/components/sheet/sheet.directive.d.ts +3 -0
  79. package/components/sheet/sheet.module.d.ts +17 -0
  80. package/components/sheet/sheet.service.d.ts +3 -0
  81. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +1 -0
  82. package/components/taiga-ui-addon-mobile-components.d.ts +1 -0
  83. package/components/theme-android/package.json +2 -5
  84. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +1 -0
  85. package/components/theme-android/theme-android.component.d.ts +3 -0
  86. package/components/theme-android/theme-android.module.d.ts +5 -0
  87. package/components/theme-ios/package.json +2 -5
  88. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +1 -0
  89. package/components/theme-ios/theme-ios.component.d.ts +3 -0
  90. package/components/theme-ios/theme-ios.module.d.ts +5 -0
  91. package/const/package.json +2 -5
  92. package/const/taiga-ui-addon-mobile-const.d.ts +1 -0
  93. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +3 -0
  94. package/directives/elastic-sticky/elastic-sticky.module.d.ts +5 -0
  95. package/directives/elastic-sticky/elastic-sticky.service.d.ts +3 -0
  96. package/directives/elastic-sticky/package.json +2 -5
  97. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +1 -0
  98. package/directives/mobile-tabs/mobile-tabs.component.d.ts +3 -0
  99. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +3 -0
  100. package/directives/mobile-tabs/mobile-tabs.module.d.ts +6 -0
  101. package/directives/mobile-tabs/package.json +2 -5
  102. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +1 -0
  103. package/directives/package.json +2 -5
  104. package/directives/ripple/package.json +2 -5
  105. package/directives/ripple/ripple-styles.component.d.ts +3 -0
  106. package/directives/ripple/ripple.directive.d.ts +3 -0
  107. package/directives/ripple/ripple.module.d.ts +6 -0
  108. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +1 -1
  109. package/directives/sidebar/package.json +2 -5
  110. package/directives/sidebar/sidebar.component.d.ts +3 -0
  111. package/directives/sidebar/sidebar.directive.d.ts +5 -2
  112. package/directives/sidebar/sidebar.module.d.ts +8 -0
  113. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +1 -0
  114. package/directives/taiga-ui-addon-mobile-directives.d.ts +1 -0
  115. package/directives/touchable/package.json +2 -5
  116. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +1 -0
  117. package/directives/touchable/touchable.directive.d.ts +6 -3
  118. package/directives/touchable/touchable.module.d.ts +5 -0
  119. package/esm2015/components/index.js +1 -1
  120. package/esm2015/components/mobile-calendar/index.js +1 -1
  121. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +83 -63
  122. package/esm2015/components/mobile-calendar/mobile-calendar.const.js +1 -1
  123. package/esm2015/components/mobile-calendar/mobile-calendar.module.js +34 -13
  124. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +2 -2
  125. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +2 -2
  126. package/esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +1 -1
  127. package/esm2015/components/mobile-calendar-dialog/index.js +1 -1
  128. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +19 -17
  129. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +27 -21
  130. package/esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +1 -1
  131. package/esm2015/components/mobile-dialog/index.js +2 -1
  132. package/esm2015/components/mobile-dialog/mobile-dialog-options.js +2 -1
  133. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +28 -22
  134. package/esm2015/components/mobile-dialog/mobile-dialog.module.js +29 -20
  135. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +13 -14
  136. package/esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  137. package/esm2015/components/pull-to-refresh/index.js +1 -1
  138. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +21 -19
  139. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +19 -16
  140. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +31 -24
  141. package/esm2015/components/pull-to-refresh/pull-to-refresh.module.js +21 -16
  142. package/esm2015/components/pull-to-refresh/pull-to-refresh.providers.js +3 -3
  143. package/esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -1
  144. package/esm2015/components/sheet/components/sheet/sheet.component.js +67 -55
  145. package/esm2015/components/sheet/components/sheet/sheet.providers.js +10 -10
  146. package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +29 -26
  147. package/esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js +31 -25
  148. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +33 -23
  149. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +36 -29
  150. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +33 -28
  151. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +36 -31
  152. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +38 -36
  153. package/esm2015/components/sheet/index.js +2 -1
  154. package/esm2015/components/sheet/ios.hacks.js +9 -9
  155. package/esm2015/components/sheet/sheet-options.js +5 -6
  156. package/esm2015/components/sheet/sheet-tokens.js +5 -0
  157. package/esm2015/components/sheet/sheet.directive.js +30 -23
  158. package/esm2015/components/sheet/sheet.js +2 -1
  159. package/esm2015/components/sheet/sheet.module.js +55 -29
  160. package/esm2015/components/sheet/sheet.service.js +14 -16
  161. package/esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js +1 -1
  162. package/esm2015/components/taiga-ui-addon-mobile-components.js +1 -1
  163. package/esm2015/components/theme-android/index.js +1 -1
  164. package/esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +1 -1
  165. package/esm2015/components/theme-android/theme-android.component.js +16 -14
  166. package/esm2015/components/theme-android/theme-android.module.js +14 -11
  167. package/esm2015/components/theme-ios/index.js +1 -1
  168. package/esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +1 -1
  169. package/esm2015/components/theme-ios/theme-ios.component.js +16 -14
  170. package/esm2015/components/theme-ios/theme-ios.module.js +14 -11
  171. package/esm2015/const/index.js +1 -1
  172. package/esm2015/const/mobile-alert-options.js +2 -2
  173. package/esm2015/const/taiga-ui-addon-mobile-const.js +1 -1
  174. package/esm2015/directives/elastic-sticky/elastic-sticky.directive.js +20 -19
  175. package/esm2015/directives/elastic-sticky/elastic-sticky.module.js +14 -11
  176. package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +29 -24
  177. package/esm2015/directives/elastic-sticky/index.js +1 -1
  178. package/esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +1 -1
  179. package/esm2015/directives/index.js +1 -1
  180. package/esm2015/directives/mobile-tabs/index.js +1 -1
  181. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +14 -12
  182. package/esm2015/directives/mobile-tabs/mobile-tabs.directive.js +38 -29
  183. package/esm2015/directives/mobile-tabs/mobile-tabs.module.js +15 -12
  184. package/esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +1 -1
  185. package/esm2015/directives/ripple/index.js +1 -1
  186. package/esm2015/directives/ripple/ripple-styles.component.js +14 -12
  187. package/esm2015/directives/ripple/ripple.directive.js +41 -34
  188. package/esm2015/directives/ripple/ripple.module.js +15 -12
  189. package/esm2015/directives/ripple/ripple.providers.js +10 -10
  190. package/esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +1 -2
  191. package/esm2015/directives/sidebar/index.js +1 -1
  192. package/esm2015/directives/sidebar/sidebar.component.js +34 -29
  193. package/esm2015/directives/sidebar/sidebar.directive.js +39 -34
  194. package/esm2015/directives/sidebar/sidebar.module.js +16 -13
  195. package/esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +1 -1
  196. package/esm2015/directives/taiga-ui-addon-mobile-directives.js +1 -1
  197. package/esm2015/directives/touchable/index.js +1 -1
  198. package/esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +1 -1
  199. package/esm2015/directives/touchable/touchable.directive.js +49 -39
  200. package/esm2015/directives/touchable/touchable.module.js +14 -11
  201. package/esm2015/index.js +3 -2
  202. package/esm2015/interfaces/index.js +2 -1
  203. package/esm2015/interfaces/mobile-alert-data.js +2 -1
  204. package/esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js +2 -1
  205. package/esm2015/internal/index.js +1 -1
  206. package/esm2015/internal/primitive-calendar-mobile/index.js +1 -1
  207. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +28 -23
  208. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +24 -13
  209. package/esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +1 -1
  210. package/esm2015/internal/taiga-ui-addon-mobile-internal.js +1 -1
  211. package/esm2015/taiga-ui-addon-mobile.js +1 -1
  212. package/esm2015/tokens/index.js +1 -1
  213. package/esm2015/tokens/loaded.js +2 -2
  214. package/esm2015/tokens/taiga-ui-addon-mobile-tokens.js +1 -1
  215. package/esm2015/types/index.js +2 -1
  216. package/esm2015/types/taiga-ui-addon-mobile-types.js +2 -1
  217. package/esm2015/types/touch-mode.js +2 -1
  218. package/esm2015/utils/find-touch-index.js +2 -7
  219. package/esm2015/utils/index.js +1 -1
  220. package/esm2015/utils/taiga-ui-addon-mobile-utils.js +1 -1
  221. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +45 -35
  222. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
  223. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +117 -74
  224. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  225. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +68 -50
  226. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  227. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +84 -68
  228. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
  229. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +444 -366
  230. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  231. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js +27 -20
  232. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  233. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js +27 -20
  234. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  235. package/fesm2015/taiga-ui-addon-mobile-components.js.map +1 -1
  236. package/fesm2015/taiga-ui-addon-mobile-const.js +1 -1
  237. package/fesm2015/taiga-ui-addon-mobile-const.js.map +1 -1
  238. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js +58 -47
  239. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
  240. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +63 -46
  241. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +1 -1
  242. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js +76 -61
  243. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
  244. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +82 -68
  245. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
  246. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js +61 -46
  247. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
  248. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +1 -1
  249. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +1 -1
  250. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +50 -32
  251. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  252. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +1 -1
  253. package/fesm2015/taiga-ui-addon-mobile-tokens.js +1 -1
  254. package/fesm2015/taiga-ui-addon-mobile-tokens.js.map +1 -1
  255. package/fesm2015/taiga-ui-addon-mobile-types.js.map +1 -1
  256. package/fesm2015/taiga-ui-addon-mobile-utils.js +2 -7
  257. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +1 -1
  258. package/fesm2015/taiga-ui-addon-mobile.js +2 -1
  259. package/fesm2015/taiga-ui-addon-mobile.js.map +1 -1
  260. package/index.d.ts +0 -1
  261. package/interfaces/package.json +2 -5
  262. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +1 -0
  263. package/internal/package.json +2 -5
  264. package/internal/primitive-calendar-mobile/package.json +2 -5
  265. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +3 -0
  266. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.d.ts +8 -0
  267. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +1 -0
  268. package/internal/taiga-ui-addon-mobile-internal.d.ts +1 -0
  269. package/package.json +12 -15
  270. package/taiga-ui-addon-mobile.d.ts +1 -0
  271. package/tokens/package.json +2 -5
  272. package/tokens/taiga-ui-addon-mobile-tokens.d.ts +1 -0
  273. package/types/package.json +2 -5
  274. package/types/taiga-ui-addon-mobile-types.d.ts +1 -0
  275. package/types/touch-mode.d.ts +1 -1
  276. package/utils/find-touch-index.d.ts +1 -5
  277. package/utils/package.json +2 -5
  278. package/utils/taiga-ui-addon-mobile-utils.d.ts +1 -0
  279. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js +0 -2
  280. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js.map +0 -1
  281. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js +0 -2
  282. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +0 -1
  283. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js +0 -2
  284. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js.map +0 -1
  285. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js +0 -2
  286. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js.map +0 -1
  287. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js +0 -2
  288. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +0 -1
  289. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js +0 -2
  290. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js.map +0 -1
  291. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js +0 -2
  292. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js.map +0 -1
  293. package/bundles/taiga-ui-addon-mobile-components.umd.min.js +0 -2
  294. package/bundles/taiga-ui-addon-mobile-components.umd.min.js.map +0 -1
  295. package/bundles/taiga-ui-addon-mobile-const.umd.min.js +0 -2
  296. package/bundles/taiga-ui-addon-mobile-const.umd.min.js.map +0 -1
  297. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js +0 -2
  298. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js.map +0 -1
  299. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js +0 -2
  300. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js.map +0 -1
  301. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js +0 -2
  302. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js.map +0 -1
  303. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js +0 -2
  304. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js.map +0 -1
  305. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js +0 -2
  306. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js.map +0 -1
  307. package/bundles/taiga-ui-addon-mobile-directives.umd.min.js +0 -2
  308. package/bundles/taiga-ui-addon-mobile-directives.umd.min.js.map +0 -1
  309. package/bundles/taiga-ui-addon-mobile-enums.umd.js +0 -20
  310. package/bundles/taiga-ui-addon-mobile-enums.umd.js.map +0 -1
  311. package/bundles/taiga-ui-addon-mobile-enums.umd.min.js +0 -2
  312. package/bundles/taiga-ui-addon-mobile-enums.umd.min.js.map +0 -1
  313. package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js +0 -2
  314. package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js.map +0 -1
  315. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js +0 -2
  316. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js.map +0 -1
  317. package/bundles/taiga-ui-addon-mobile-internal.umd.min.js +0 -2
  318. package/bundles/taiga-ui-addon-mobile-internal.umd.min.js.map +0 -1
  319. package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js +0 -2
  320. package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js.map +0 -1
  321. package/bundles/taiga-ui-addon-mobile-types.umd.min.js +0 -2
  322. package/bundles/taiga-ui-addon-mobile-types.umd.min.js.map +0 -1
  323. package/bundles/taiga-ui-addon-mobile-utils.umd.min.js +0 -2
  324. package/bundles/taiga-ui-addon-mobile-utils.umd.min.js.map +0 -1
  325. package/bundles/taiga-ui-addon-mobile.umd.min.js +0 -2
  326. package/bundles/taiga-ui-addon-mobile.umd.min.js.map +0 -1
  327. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +0 -1
  328. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.metadata.json +0 -1
  329. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.metadata.json +0 -1
  330. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +0 -1
  331. package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +0 -1
  332. package/components/taiga-ui-addon-mobile-components.metadata.json +0 -1
  333. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.metadata.json +0 -1
  334. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.metadata.json +0 -1
  335. package/const/taiga-ui-addon-mobile-const.metadata.json +0 -1
  336. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.metadata.json +0 -1
  337. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.metadata.json +0 -1
  338. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.metadata.json +0 -1
  339. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.metadata.json +0 -1
  340. package/directives/taiga-ui-addon-mobile-directives.metadata.json +0 -1
  341. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.metadata.json +0 -1
  342. package/enums/index.d.ts +0 -1
  343. package/enums/package.json +0 -13
  344. package/enums/taiga-ui-addon-mobile-enums.d.ts +0 -4
  345. package/enums/taiga-ui-addon-mobile-enums.metadata.json +0 -1
  346. package/enums/touch-mode.d.ts +0 -8
  347. package/esm2015/enums/index.js +0 -2
  348. package/esm2015/enums/taiga-ui-addon-mobile-enums.js +0 -5
  349. package/esm2015/enums/touch-mode.js +0 -10
  350. package/esm5/components/index.js +0 -8
  351. package/esm5/components/mobile-calendar/index.js +0 -6
  352. package/esm5/components/mobile-calendar/mobile-calendar.component.js +0 -295
  353. package/esm5/components/mobile-calendar/mobile-calendar.const.js +0 -25
  354. package/esm5/components/mobile-calendar/mobile-calendar.module.js +0 -34
  355. package/esm5/components/mobile-calendar/mobile-calendar.providers.js +0 -31
  356. package/esm5/components/mobile-calendar/mobile-calendar.strategy.js +0 -134
  357. package/esm5/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -5
  358. package/esm5/components/mobile-calendar-dialog/index.js +0 -3
  359. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -57
  360. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +0 -28
  361. package/esm5/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -5
  362. package/esm5/components/mobile-dialog/index.js +0 -4
  363. package/esm5/components/mobile-dialog/mobile-dialog-options.js +0 -1
  364. package/esm5/components/mobile-dialog/mobile-dialog.component.js +0 -34
  365. package/esm5/components/mobile-dialog/mobile-dialog.module.js +0 -31
  366. package/esm5/components/mobile-dialog/mobile-dialog.service.js +0 -34
  367. package/esm5/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -5
  368. package/esm5/components/pull-to-refresh/index.js +0 -6
  369. package/esm5/components/pull-to-refresh/loader-android/loader-android.component.js +0 -43
  370. package/esm5/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -41
  371. package/esm5/components/pull-to-refresh/pull-to-refresh.component.js +0 -56
  372. package/esm5/components/pull-to-refresh/pull-to-refresh.module.js +0 -26
  373. package/esm5/components/pull-to-refresh/pull-to-refresh.providers.js +0 -32
  374. package/esm5/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -5
  375. package/esm5/components/sheet/components/sheet/sheet.component.js +0 -150
  376. package/esm5/components/sheet/components/sheet/sheet.providers.js +0 -42
  377. package/esm5/components/sheet/components/sheet-bar/sheet-bar.component.js +0 -43
  378. package/esm5/components/sheet/components/sheet-heading/sheet-heading.component.js +0 -40
  379. package/esm5/components/sheet/components/sheets-host/sheets-host.component.js +0 -40
  380. package/esm5/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
  381. package/esm5/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -46
  382. package/esm5/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -56
  383. package/esm5/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -93
  384. package/esm5/components/sheet/index.js +0 -15
  385. package/esm5/components/sheet/ios.hacks.js +0 -42
  386. package/esm5/components/sheet/sheet-options.js +0 -16
  387. package/esm5/components/sheet/sheet.directive.js +0 -58
  388. package/esm5/components/sheet/sheet.js +0 -1
  389. package/esm5/components/sheet/sheet.module.js +0 -52
  390. package/esm5/components/sheet/sheet.service.js +0 -42
  391. package/esm5/components/sheet/taiga-ui-addon-mobile-components-sheet.js +0 -5
  392. package/esm5/components/taiga-ui-addon-mobile-components.js +0 -5
  393. package/esm5/components/theme-android/index.js +0 -3
  394. package/esm5/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +0 -5
  395. package/esm5/components/theme-android/theme-android.component.js +0 -22
  396. package/esm5/components/theme-android/theme-android.module.js +0 -16
  397. package/esm5/components/theme-ios/index.js +0 -3
  398. package/esm5/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +0 -5
  399. package/esm5/components/theme-ios/theme-ios.component.js +0 -22
  400. package/esm5/components/theme-ios/theme-ios.module.js +0 -16
  401. package/esm5/const/index.js +0 -2
  402. package/esm5/const/mobile-alert-options.js +0 -8
  403. package/esm5/const/taiga-ui-addon-mobile-const.js +0 -5
  404. package/esm5/directives/elastic-sticky/elastic-sticky.directive.js +0 -26
  405. package/esm5/directives/elastic-sticky/elastic-sticky.module.js +0 -16
  406. package/esm5/directives/elastic-sticky/elastic-sticky.service.js +0 -58
  407. package/esm5/directives/elastic-sticky/index.js +0 -4
  408. package/esm5/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -5
  409. package/esm5/directives/index.js +0 -6
  410. package/esm5/directives/mobile-tabs/index.js +0 -4
  411. package/esm5/directives/mobile-tabs/mobile-tabs.component.js +0 -16
  412. package/esm5/directives/mobile-tabs/mobile-tabs.directive.js +0 -51
  413. package/esm5/directives/mobile-tabs/mobile-tabs.module.js +0 -18
  414. package/esm5/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -5
  415. package/esm5/directives/ripple/index.js +0 -4
  416. package/esm5/directives/ripple/ripple-styles.component.js +0 -16
  417. package/esm5/directives/ripple/ripple.directive.js +0 -63
  418. package/esm5/directives/ripple/ripple.module.js +0 -18
  419. package/esm5/directives/ripple/ripple.providers.js +0 -54
  420. package/esm5/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +0 -6
  421. package/esm5/directives/sidebar/index.js +0 -4
  422. package/esm5/directives/sidebar/sidebar.component.js +0 -68
  423. package/esm5/directives/sidebar/sidebar.directive.js +0 -78
  424. package/esm5/directives/sidebar/sidebar.module.js +0 -21
  425. package/esm5/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +0 -5
  426. package/esm5/directives/taiga-ui-addon-mobile-directives.js +0 -5
  427. package/esm5/directives/touchable/index.js +0 -3
  428. package/esm5/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +0 -5
  429. package/esm5/directives/touchable/touchable.directive.js +0 -90
  430. package/esm5/directives/touchable/touchable.module.js +0 -16
  431. package/esm5/enums/index.js +0 -2
  432. package/esm5/enums/taiga-ui-addon-mobile-enums.js +0 -5
  433. package/esm5/enums/touch-mode.js +0 -10
  434. package/esm5/index.js +0 -7
  435. package/esm5/interfaces/index.js +0 -1
  436. package/esm5/interfaces/mobile-alert-data.js +0 -1
  437. package/esm5/interfaces/taiga-ui-addon-mobile-interfaces.js +0 -4
  438. package/esm5/internal/index.js +0 -2
  439. package/esm5/internal/primitive-calendar-mobile/index.js +0 -3
  440. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -37
  441. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +0 -28
  442. package/esm5/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -5
  443. package/esm5/internal/taiga-ui-addon-mobile-internal.js +0 -5
  444. package/esm5/taiga-ui-addon-mobile.js +0 -5
  445. package/esm5/tokens/index.js +0 -2
  446. package/esm5/tokens/loaded.js +0 -6
  447. package/esm5/tokens/taiga-ui-addon-mobile-tokens.js +0 -5
  448. package/esm5/types/index.js +0 -1
  449. package/esm5/types/taiga-ui-addon-mobile-types.js +0 -4
  450. package/esm5/types/touch-mode.js +0 -1
  451. package/esm5/utils/find-touch-index.js +0 -15
  452. package/esm5/utils/index.js +0 -2
  453. package/esm5/utils/taiga-ui-addon-mobile-utils.js +0 -5
  454. package/fesm2015/taiga-ui-addon-mobile-enums.js +0 -16
  455. package/fesm2015/taiga-ui-addon-mobile-enums.js.map +0 -1
  456. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -87
  457. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  458. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -502
  459. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  460. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -91
  461. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  462. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -185
  463. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  464. package/fesm5/taiga-ui-addon-mobile-components-sheet.js +0 -680
  465. package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  466. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js +0 -40
  467. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  468. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js +0 -40
  469. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  470. package/fesm5/taiga-ui-addon-mobile-components.js +0 -12
  471. package/fesm5/taiga-ui-addon-mobile-components.js.map +0 -1
  472. package/fesm5/taiga-ui-addon-mobile-const.js +0 -15
  473. package/fesm5/taiga-ui-addon-mobile-const.js.map +0 -1
  474. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -97
  475. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  476. package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -82
  477. package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  478. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js +0 -143
  479. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  480. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js +0 -161
  481. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  482. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js +0 -108
  483. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  484. package/fesm5/taiga-ui-addon-mobile-directives.js +0 -10
  485. package/fesm5/taiga-ui-addon-mobile-directives.js.map +0 -1
  486. package/fesm5/taiga-ui-addon-mobile-enums.js +0 -16
  487. package/fesm5/taiga-ui-addon-mobile-enums.js.map +0 -1
  488. package/fesm5/taiga-ui-addon-mobile-interfaces.js +0 -4
  489. package/fesm5/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  490. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -65
  491. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  492. package/fesm5/taiga-ui-addon-mobile-internal.js +0 -6
  493. package/fesm5/taiga-ui-addon-mobile-internal.js.map +0 -1
  494. package/fesm5/taiga-ui-addon-mobile-tokens.js +0 -13
  495. package/fesm5/taiga-ui-addon-mobile-tokens.js.map +0 -1
  496. package/fesm5/taiga-ui-addon-mobile-types.js +0 -4
  497. package/fesm5/taiga-ui-addon-mobile-types.js.map +0 -1
  498. package/fesm5/taiga-ui-addon-mobile-utils.js +0 -21
  499. package/fesm5/taiga-ui-addon-mobile-utils.js.map +0 -1
  500. package/fesm5/taiga-ui-addon-mobile.js +0 -11
  501. package/fesm5/taiga-ui-addon-mobile.js.map +0 -1
  502. package/interfaces/taiga-ui-addon-mobile-interfaces.metadata.json +0 -1
  503. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json +0 -1
  504. package/internal/taiga-ui-addon-mobile-internal.metadata.json +0 -1
  505. package/taiga-ui-addon-mobile.metadata.json +0 -1
  506. package/tokens/taiga-ui-addon-mobile-tokens.metadata.json +0 -1
  507. package/types/taiga-ui-addon-mobile-types.metadata.json +0 -1
  508. package/utils/taiga-ui-addon-mobile-utils.metadata.json +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js","sources":["ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk';\nimport {TUI_ORDERED_SHORT_WEEK_DAYS, TuiPrimitiveCalendarComponent} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n/**\n * @internal\n * @dynamic\n */\n@Component({\n selector: 'tui-primitive-calendar-mobile',\n templateUrl: './primitive-calendar-mobile.template.html',\n styleUrls: ['./primitive-calendar-mobile.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n weekDays$: Observable<[string, string, string, string, string, string, string]>,\n ) {\n super(weekDays$);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiLetModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiCalendarSheetPipeModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarMobileComponent} from './primitive-calendar-mobile.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [\n TuiRepeatTimesModule,\n TuiCalendarSheetPipeModule,\n TuiRippleModule,\n TuiLetModule,\n ],\n declarations: [TuiPrimitiveCalendarMobileComponent],\n exports: [TuiPrimitiveCalendarMobileComponent],\n})\nexport class TuiPrimitiveCalendarMobileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAKA;;;;IAaa,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,6BAA6B;IAClF,YACiC,KAAc,EAE3C,SAA+E;QAE/E,KAAK,CAAC,SAAS,CAAC,CAAC;QAJY,UAAK,GAAL,KAAK,CAAS;KAK9C;EACJ;;0CANQ,MAAM,SAAC,UAAU;YAEP,UAAU,uBADpB,MAAM,SAAC,2BAA2B;;AAH9B,mCAAmC;IAT/C,SAAS,CAAC;QACP,QAAQ,EAAE,+BAA+B;QACzC,y5BAAwD;QAExD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,IAAI,EAAE;YACF,cAAc,EAAE,OAAO;SAC1B;;KACJ,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAH/B,mCAAmC,CAQ/C;;ACnBD;;;IAaa,gCAAgC,GAA7C,MAAa,gCAAgC;EAAG;AAAnC,gCAAgC;IAV5C,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,oBAAoB;YACpB,0BAA0B;YAC1B,eAAe;YACf,YAAY;SACf;QACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;QACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;KACjD,CAAC;GACW,gCAAgC,CAAG;;ACpBhD;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js","sources":["../../../projects/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.ts","../../../projects/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.template.html","../../../projects/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.ts","../../../projects/addon-mobile/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk';\nimport {TUI_ORDERED_SHORT_WEEK_DAYS, TuiPrimitiveCalendarComponent} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n/**\n * @internal\n * @dynamic\n */\n@Component({\n selector: `tui-primitive-calendar-mobile`,\n templateUrl: `./primitive-calendar-mobile.template.html`,\n styleUrls: [`./primitive-calendar-mobile.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': `isIOS`,\n },\n})\nexport class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n weekDays$: Observable<[string, string, string, string, string, string, string]>,\n ) {\n super(weekDays$);\n }\n}\n","<ng-container *tuiLet=\"month | tuiCalendarSheet as sheet\">\n <div\n *tuiRepeatTimes=\"let rowIndex of sheet.length\"\n automation-id=\"tui-primitive-calendar-mobile__row\"\n class=\"t-row\"\n >\n <div\n *tuiRepeatTimes=\"let colIndex of sheet[rowIndex].length\"\n automation-id=\"tui-primitive-calendar-mobile__cell\"\n tuiRipple\n class=\"t-cell\"\n [class.t-cell_today]=\"itemIsToday(sheet[rowIndex][colIndex])\"\n [class.t-cell_interval]=\"itemIsInterval(sheet[rowIndex][colIndex])\"\n [attr.data-state]=\"getItemState(sheet[rowIndex][colIndex])\"\n [attr.data-range]=\"getItemRange(sheet[rowIndex][colIndex])\"\n (click)=\"onItemClick(sheet[rowIndex][colIndex])\"\n >\n {{ sheet[rowIndex][colIndex].day }}\n </div>\n </div>\n</ng-container>\n","import {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiLetModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiCalendarSheetPipeModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarMobileComponent} from './primitive-calendar-mobile.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [\n TuiRepeatTimesModule,\n TuiCalendarSheetPipeModule,\n TuiRippleModule,\n TuiLetModule,\n ],\n declarations: [TuiPrimitiveCalendarMobileComponent],\n exports: [TuiPrimitiveCalendarMobileComponent],\n})\nexport class TuiPrimitiveCalendarMobileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAKA;;;AAGG;AAUG,MAAO,mCAAoC,SAAQ,6BAA6B,CAAA;IAClF,WACiC,CAAA,KAAc,EAE3C,SAA+E,EAAA;QAE/E,KAAK,CAAC,SAAS,CAAC,CAAC;QAJY,IAAK,CAAA,KAAA,GAAL,KAAK,CAAS;KAK9C;;iIAPQ,mCAAmC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAEhC,UAAU,EAAA,EAAA,EAAA,KAAA,EACV,2BAA2B,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAH9B,mCAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mCAAmC,6IClBhD,+4BAqBA,EAAA,MAAA,EAAA,CAAA,soIAAA,CAAA,EAAA,UAAA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AAEpC,gCAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gCAAgC,EAThC,OAAA,EAAA,CAAA;YACL,oBAAoB;YACpB,0BAA0B;YAC1B,eAAe;YACf,YAAY;AACf,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAV5C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,oBAAoB;wBACpB,0BAA0B;wBAC1B,eAAe;wBACf,YAAY;AACf,qBAAA;oBACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;oBACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;AACjD,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-internal.js","sources":["ng://@taiga-ui/addon-mobile/internal/taiga-ui-addon-mobile-internal.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-internal.js","sources":["../../../projects/addon-mobile/internal/taiga-ui-addon-mobile-internal.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -1,7 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { EMPTY } from 'rxjs';
3
3
 
4
- const TUI_LOADED = new InjectionToken('Stream that emits when loading is over', {
4
+ const TUI_LOADED = new InjectionToken(`Stream that emits when loading is over`, {
5
5
  factory: () => EMPTY,
6
6
  });
7
7
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-tokens.js","sources":["ng://@taiga-ui/addon-mobile/tokens/loaded.ts","ng://@taiga-ui/addon-mobile/tokens/taiga-ui-addon-mobile-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {EMPTY, Observable} from 'rxjs';\n\nexport const TUI_LOADED = new InjectionToken<Observable<unknown>>(\n 'Stream that emits when loading is over',\n {\n factory: () => EMPTY,\n },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAGa,UAAU,GAAG,IAAI,cAAc,CACxC,wCAAwC,EACxC;IACI,OAAO,EAAE,MAAM,KAAK;CACvB;;ACPL;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-tokens.js","sources":["../../../projects/addon-mobile/tokens/loaded.ts","../../../projects/addon-mobile/tokens/taiga-ui-addon-mobile-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {EMPTY, Observable} from 'rxjs';\n\nexport const TUI_LOADED = new InjectionToken<Observable<unknown>>(\n `Stream that emits when loading is over`,\n {\n factory: () => EMPTY,\n },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAGa,UAAU,GAAG,IAAI,cAAc,CACxC,wCAAwC,EACxC;AACI,IAAA,OAAO,EAAE,MAAM,KAAK;AACvB,CAAA;;ACPL;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-types.js","sources":["ng://@taiga-ui/addon-mobile/types/taiga-ui-addon-mobile-types.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-types.js","sources":["../../../projects/addon-mobile/types/taiga-ui-addon-mobile-types.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
@@ -1,8 +1,4 @@
1
- /**
2
- * @deprecated: use {@link tuiFindTouchIndex} instead
3
- */
4
- // eslint-disable-next-line @typescript-eslint/naming-convention
5
- function findTouchIndex(touches, id) {
1
+ function tuiFindTouchIndex(touches, id) {
6
2
  for (let i = 0; i < touches.length; i++) {
7
3
  const { identifier } = touches[i];
8
4
  if (identifier === id) {
@@ -11,11 +7,10 @@ function findTouchIndex(touches, id) {
11
7
  }
12
8
  return -1;
13
9
  }
14
- const tuiFindTouchIndex = findTouchIndex;
15
10
 
16
11
  /**
17
12
  * Generated bundle index. Do not edit.
18
13
  */
19
14
 
20
- export { findTouchIndex, tuiFindTouchIndex };
15
+ export { tuiFindTouchIndex };
21
16
  //# sourceMappingURL=taiga-ui-addon-mobile-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-utils.js","sources":["ng://@taiga-ui/addon-mobile/utils/find-touch-index.ts","ng://@taiga-ui/addon-mobile/utils/taiga-ui-addon-mobile-utils.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiFindTouchIndex} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function findTouchIndex(touches: TouchList, id: number): number {\n for (let i = 0; i < touches.length; i++) {\n const {identifier} = touches[i];\n\n if (identifier === id) {\n return i;\n }\n }\n\n return -1;\n}\n\nexport const tuiFindTouchIndex = findTouchIndex;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;AAGA;SACgB,cAAc,CAAC,OAAkB,EAAE,EAAU;IACzD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,EAAC,UAAU,EAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,UAAU,KAAK,EAAE,EAAE;YACnB,OAAO,CAAC,CAAC;SACZ;KACJ;IAED,OAAO,CAAC,CAAC,CAAC;AACd,CAAC;MAEY,iBAAiB,GAAG;;AChBjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-utils.js","sources":["../../../projects/addon-mobile/utils/find-touch-index.ts","../../../projects/addon-mobile/utils/taiga-ui-addon-mobile-utils.ts"],"sourcesContent":["export function tuiFindTouchIndex(touches: TouchList, id: number): number {\n for (let i = 0; i < touches.length; i++) {\n const {identifier} = touches[i];\n\n if (identifier === id) {\n return i;\n }\n }\n\n return -1;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAgB,SAAA,iBAAiB,CAAC,OAAkB,EAAE,EAAU,EAAA;AAC5D,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,EAAC,UAAU,EAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,UAAU,KAAK,EAAE,EAAE;AACnB,YAAA,OAAO,CAAC,CAAC;AACZ,SAAA;AACJ,KAAA;IAED,OAAO,CAAC,CAAC,CAAC;AACd;;ACVA;;AAEG;;;;"}
@@ -1,8 +1,9 @@
1
1
  export * from '@taiga-ui/addon-mobile/components';
2
2
  export * from '@taiga-ui/addon-mobile/const';
3
3
  export * from '@taiga-ui/addon-mobile/directives';
4
- export * from '@taiga-ui/addon-mobile/enums';
4
+ export * from '@taiga-ui/addon-mobile/interfaces';
5
5
  export * from '@taiga-ui/addon-mobile/tokens';
6
+ export * from '@taiga-ui/addon-mobile/types';
6
7
  export * from '@taiga-ui/addon-mobile/utils';
7
8
 
8
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile.js","sources":["ng://@taiga-ui/addon-mobile/taiga-ui-addon-mobile.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile.js","sources":["../../../projects/addon-mobile/taiga-ui-addon-mobile.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
package/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from '@taiga-ui/addon-mobile/components';
2
2
  export * from '@taiga-ui/addon-mobile/const';
3
3
  export * from '@taiga-ui/addon-mobile/directives';
4
- export * from '@taiga-ui/addon-mobile/enums';
5
4
  export * from '@taiga-ui/addon-mobile/interfaces';
6
5
  export * from '@taiga-ui/addon-mobile/tokens';
7
6
  export * from '@taiga-ui/addon-mobile/types';
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "main": "../bundles/taiga-ui-addon-mobile-interfaces.umd.js",
3
- "module": "../fesm5/taiga-ui-addon-mobile-interfaces.js",
3
+ "module": "../fesm2015/taiga-ui-addon-mobile-interfaces.js",
4
4
  "es2015": "../fesm2015/taiga-ui-addon-mobile-interfaces.js",
5
- "esm5": "../esm5/interfaces/taiga-ui-addon-mobile-interfaces.js",
6
5
  "esm2015": "../esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js",
7
- "fesm5": "../fesm5/taiga-ui-addon-mobile-interfaces.js",
8
6
  "fesm2015": "../fesm2015/taiga-ui-addon-mobile-interfaces.js",
9
7
  "typings": "taiga-ui-addon-mobile-interfaces.d.ts",
10
- "metadata": "taiga-ui-addon-mobile-interfaces.metadata.json",
11
8
  "sideEffects": false,
12
9
  "name": "@taiga-ui/addon-mobile/interfaces"
13
- }
10
+ }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile/interfaces" />
4
5
  export * from './index';
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "main": "../bundles/taiga-ui-addon-mobile-internal.umd.js",
3
- "module": "../fesm5/taiga-ui-addon-mobile-internal.js",
3
+ "module": "../fesm2015/taiga-ui-addon-mobile-internal.js",
4
4
  "es2015": "../fesm2015/taiga-ui-addon-mobile-internal.js",
5
- "esm5": "../esm5/internal/taiga-ui-addon-mobile-internal.js",
6
5
  "esm2015": "../esm2015/internal/taiga-ui-addon-mobile-internal.js",
7
- "fesm5": "../fesm5/taiga-ui-addon-mobile-internal.js",
8
6
  "fesm2015": "../fesm2015/taiga-ui-addon-mobile-internal.js",
9
7
  "typings": "taiga-ui-addon-mobile-internal.d.ts",
10
- "metadata": "taiga-ui-addon-mobile-internal.metadata.json",
11
8
  "sideEffects": false,
12
9
  "name": "@taiga-ui/addon-mobile/internal"
13
- }
10
+ }
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "main": "../../bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js",
3
- "module": "../../fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
3
+ "module": "../../fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
4
4
  "es2015": "../../fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
5
- "esm5": "../../esm5/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
6
5
  "esm2015": "../../esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
7
- "fesm5": "../../fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
8
6
  "fesm2015": "../../fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js",
9
7
  "typings": "taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts",
10
- "metadata": "taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json",
11
8
  "sideEffects": false,
12
9
  "name": "@taiga-ui/addon-mobile/internal/primitive-calendar-mobile"
13
- }
10
+ }
@@ -1,5 +1,6 @@
1
1
  import { TuiPrimitiveCalendarComponent } from '@taiga-ui/core';
2
2
  import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
3
4
  /**
4
5
  * @internal
5
6
  * @dynamic
@@ -7,4 +8,6 @@ import { Observable } from 'rxjs';
7
8
  export declare class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {
8
9
  readonly isIOS: boolean;
9
10
  constructor(isIOS: boolean, weekDays$: Observable<[string, string, string, string, string, string, string]>);
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiPrimitiveCalendarMobileComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiPrimitiveCalendarMobileComponent, "tui-primitive-calendar-mobile", never, {}, {}, never, never>;
10
13
  }
@@ -1,5 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./primitive-calendar-mobile.component";
3
+ import * as i2 from "@taiga-ui/cdk";
4
+ import * as i3 from "@taiga-ui/core";
5
+ import * as i4 from "@taiga-ui/addon-mobile/directives/ripple";
1
6
  /**
2
7
  * @internal
3
8
  */
4
9
  export declare class TuiPrimitiveCalendarMobileModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiPrimitiveCalendarMobileModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TuiPrimitiveCalendarMobileModule, [typeof i1.TuiPrimitiveCalendarMobileComponent], [typeof i2.TuiRepeatTimesModule, typeof i3.TuiCalendarSheetPipeModule, typeof i4.TuiRippleModule, typeof i2.TuiLetModule], [typeof i1.TuiPrimitiveCalendarMobileComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<TuiPrimitiveCalendarMobileModule>;
5
13
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile/internal/primitive-calendar-mobile" />
4
5
  export * from './index';
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile/internal" />
4
5
  export * from './index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-mobile",
3
- "version": "2.54.0",
3
+ "version": "3.0.0-rc.0",
4
4
  "description": "Extension package for Taiga UI that adds support for mobile specific behaviors such as custom data pickers, dropdowns, etc.",
5
5
  "keywords": [
6
6
  "angular",
@@ -10,28 +10,25 @@
10
10
  "homepage": "https://github.com/tinkoff/taiga-ui",
11
11
  "repository": "https://github.com/tinkoff/taiga-ui",
12
12
  "license": "Apache-2.0",
13
+ "dependencies": {
14
+ "tslib": "^2.0.0"
15
+ },
13
16
  "peerDependencies": {
14
17
  "@angular/cdk": ">=9.0.0",
15
18
  "@angular/common": ">=9.0.0",
16
19
  "@angular/core": ">=9.0.0",
17
- "@ng-web-apis/common": ">=1.12.1 < 2",
18
- "@taiga-ui/cdk": ">=2.54.0",
19
- "@taiga-ui/core": ">=2.54.0",
20
- "@taiga-ui/kit": ">=2.54.0",
21
- "@tinkoff/ng-polymorpheus": ">=3.1.12 < 4",
20
+ "@ng-web-apis/common": ">=2.0.0",
21
+ "@taiga-ui/cdk": ">=3.0.0-rc.0",
22
+ "@taiga-ui/core": ">=3.0.0-rc.0",
23
+ "@taiga-ui/kit": ">=3.0.0-rc.0",
24
+ "@tinkoff/ng-polymorpheus": ">=4.0.0",
22
25
  "rxjs": ">=6.0.0"
23
26
  },
24
27
  "main": "bundles/taiga-ui-addon-mobile.umd.js",
25
- "module": "fesm5/taiga-ui-addon-mobile.js",
28
+ "module": "fesm2015/taiga-ui-addon-mobile.js",
26
29
  "es2015": "fesm2015/taiga-ui-addon-mobile.js",
27
- "esm5": "esm5/taiga-ui-addon-mobile.js",
28
30
  "esm2015": "esm2015/taiga-ui-addon-mobile.js",
29
- "fesm5": "fesm5/taiga-ui-addon-mobile.js",
30
31
  "fesm2015": "fesm2015/taiga-ui-addon-mobile.js",
31
32
  "typings": "taiga-ui-addon-mobile.d.ts",
32
- "metadata": "taiga-ui-addon-mobile.metadata.json",
33
- "sideEffects": false,
34
- "dependencies": {
35
- "tslib": "^1.10.0"
36
- }
37
- }
33
+ "sideEffects": false
34
+ }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile" />
4
5
  export * from './index';
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "main": "../bundles/taiga-ui-addon-mobile-tokens.umd.js",
3
- "module": "../fesm5/taiga-ui-addon-mobile-tokens.js",
3
+ "module": "../fesm2015/taiga-ui-addon-mobile-tokens.js",
4
4
  "es2015": "../fesm2015/taiga-ui-addon-mobile-tokens.js",
5
- "esm5": "../esm5/tokens/taiga-ui-addon-mobile-tokens.js",
6
5
  "esm2015": "../esm2015/tokens/taiga-ui-addon-mobile-tokens.js",
7
- "fesm5": "../fesm5/taiga-ui-addon-mobile-tokens.js",
8
6
  "fesm2015": "../fesm2015/taiga-ui-addon-mobile-tokens.js",
9
7
  "typings": "taiga-ui-addon-mobile-tokens.d.ts",
10
- "metadata": "taiga-ui-addon-mobile-tokens.metadata.json",
11
8
  "sideEffects": false,
12
9
  "name": "@taiga-ui/addon-mobile/tokens"
13
- }
10
+ }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile/tokens" />
4
5
  export * from './index';
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "main": "../bundles/taiga-ui-addon-mobile-types.umd.js",
3
- "module": "../fesm5/taiga-ui-addon-mobile-types.js",
3
+ "module": "../fesm2015/taiga-ui-addon-mobile-types.js",
4
4
  "es2015": "../fesm2015/taiga-ui-addon-mobile-types.js",
5
- "esm5": "../esm5/types/taiga-ui-addon-mobile-types.js",
6
5
  "esm2015": "../esm2015/types/taiga-ui-addon-mobile-types.js",
7
- "fesm5": "../fesm5/taiga-ui-addon-mobile-types.js",
8
6
  "fesm2015": "../fesm2015/taiga-ui-addon-mobile-types.js",
9
7
  "typings": "taiga-ui-addon-mobile-types.d.ts",
10
- "metadata": "taiga-ui-addon-mobile-types.metadata.json",
11
8
  "sideEffects": false,
12
9
  "name": "@taiga-ui/addon-mobile/types"
13
- }
10
+ }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile/types" />
4
5
  export * from './index';
@@ -1 +1 @@
1
- export declare type TuiTouchModeT = 'transform' | 'opacity' | 'background';
1
+ export declare type TuiTouchMode = 'transform' | 'opacity' | 'background';
@@ -1,5 +1 @@
1
- /**
2
- * @deprecated: use {@link tuiFindTouchIndex} instead
3
- */
4
- export declare function findTouchIndex(touches: TouchList, id: number): number;
5
- export declare const tuiFindTouchIndex: typeof findTouchIndex;
1
+ export declare function tuiFindTouchIndex(touches: TouchList, id: number): number;
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "main": "../bundles/taiga-ui-addon-mobile-utils.umd.js",
3
- "module": "../fesm5/taiga-ui-addon-mobile-utils.js",
3
+ "module": "../fesm2015/taiga-ui-addon-mobile-utils.js",
4
4
  "es2015": "../fesm2015/taiga-ui-addon-mobile-utils.js",
5
- "esm5": "../esm5/utils/taiga-ui-addon-mobile-utils.js",
6
5
  "esm2015": "../esm2015/utils/taiga-ui-addon-mobile-utils.js",
7
- "fesm5": "../fesm5/taiga-ui-addon-mobile-utils.js",
8
6
  "fesm2015": "../fesm2015/taiga-ui-addon-mobile-utils.js",
9
7
  "typings": "taiga-ui-addon-mobile-utils.d.ts",
10
- "metadata": "taiga-ui-addon-mobile-utils.metadata.json",
11
8
  "sideEffects": false,
12
9
  "name": "@taiga-ui/addon-mobile/utils"
13
- }
10
+ }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@taiga-ui/addon-mobile/utils" />
4
5
  export * from './index';
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@taiga-ui/cdk"),require("@tinkoff/ng-polymorpheus"),require("@taiga-ui/addon-mobile/components/mobile-calendar"),require("@taiga-ui/kit")):"function"==typeof define&&define.amd?define("@taiga-ui/addon-mobile/components/mobile-calendar-dialog",["exports","@angular/core","@taiga-ui/cdk","@tinkoff/ng-polymorpheus","@taiga-ui/addon-mobile/components/mobile-calendar","@taiga-ui/kit"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"]["addon-mobile"]=e["taiga-ui"]["addon-mobile"]||{},e["taiga-ui"]["addon-mobile"].components=e["taiga-ui"]["addon-mobile"].components||{},e["taiga-ui"]["addon-mobile"].components["mobile-calendar-dialog"]={}),e.ng.core,e.cdk,e.ngPolymorpheus,e["taiga-ui"]["addon-mobile"].components["mobile-calendar"],e.kit)}(this,(function(e,t,n,o,i,a){"use strict";function r(e,t,n,o){var i,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(a<3?i(r):a>3?i(t,n,r):i(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}Object.create;Object.create;var l=function(){function e(e){this.context=e}var i,a;return Object.defineProperty(e.prototype,"single",{get:function(){return!this.context.data||void 0===this.context.data.single||this.context.data.single},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){var e;return(null===(e=this.context.data)||void 0===e?void 0:e.min)||n.TUI_FIRST_DAY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var e;return(null===(e=this.context.data)||void 0===e?void 0:e.max)||n.TUI_LAST_DAY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledItemHandler",{get:function(){var e;return(null===(e=this.context.data)||void 0===e?void 0:e.disabledItemHandler)||n.ALWAYS_FALSE_HANDLER},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[o.POLYMORPHEUS_CONTEXT]}]}]},e=r([t.Component({selector:"tui-mobile-calendar-dialog",template:'<tui-mobile-calendar\n [single]="single"\n [min]="min"\n [max]="max"\n [disabledItemHandler]="disabledItemHandler"\n (cancel)="context.$implicit.complete()"\n (confirm)="context.completeWith($event)"\n></tui-mobile-calendar>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;height:100vh;margin:-1.5rem -1.5rem -2rem}"]}),(i=0,a=t.Inject(o.POLYMORPHEUS_CONTEXT),function(e,t){a(e,t,i)})],e)}(),c=l,d=function(){function e(){}return e=r([t.NgModule({imports:[i.TuiMobileCalendarModule],declarations:[l],exports:[l],entryComponents:[l],providers:[{provide:a.TUI_MOBILE_CALENDAR,useValue:c}]})],e)}();e.MOBILE_CALENDAR_COMPONENT=c,e.TuiMobileCalendarDialogComponent=l,e.TuiMobileCalendarDialogModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts","ng://@taiga-ui/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","create","TuiMobileCalendarDialogComponent","context","this","paramIndex","decorator","prototype","data","undefined","single","_a","min","TUI_FIRST_DAY","max","TUI_LAST_DAY","disabledItemHandler","ALWAYS_FALSE_HANDLER","Inject","args","POLYMORPHEUS_CONTEXT","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","MOBILE_CALENDAR_COMPONENT","TuiMobileCalendarDialogModule","NgModule","imports","TuiMobileCalendarModule","declarations","exports","entryComponents","providers","provide","TUI_MOBILE_CALENDAR","useValue"],"mappings":"y4BAsDO,SAASA,EAAWC,EAAYC,EAAQC,E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,EAAA,CAN5CoC,EAAAA,UAAU,CACPC,SAAU,6BACVC,SAAA,uPAEAC,gBAAiBC,EAAAA,wBAAwBC,oFD4CrBrB,ECxCf,EDwC2BC,ECxC3BY,EAAAA,OAAOE,EAAAA,sBDyCL,SAAUjC,EAAQC,GAAOkB,EAAUnB,EAAQC,EAAKiB,MC3C9CH,MCZAyB,EAA4BzB,eAczC,SAAA0B,KAA4C,OAA/BA,EAA6B3C,EAAA,CAZzC4C,EAAAA,SAAS,CACNC,QAAS,CAACC,EAAAA,yBACVC,aAAc,CAAC9B,GACf+B,QAAS,CAAC/B,GACVgC,gBAAiB,CAAChC,GAClBiC,UAAW,CACP,CACIC,QAASC,EAAAA,oBACTC,SAAUX,OAITC","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiDialogContext} from '@taiga-ui/core';\nimport {TuiMobileCalendarData} from '@taiga-ui/kit';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-mobile-calendar-dialog',\n templateUrl: './mobile-calendar-dialog.template.html',\n styleUrls: ['./mobile-calendar-dialog.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMobileCalendarDialogComponent {\n constructor(\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialogContext<\n TuiDay | TuiDayRange,\n TuiMobileCalendarData | undefined\n >,\n ) {}\n\n get single(): boolean {\n return !this.context.data || this.context.data.single === undefined\n ? true\n : this.context.data.single;\n }\n\n get min(): TuiDay {\n return this.context.data?.min || TUI_FIRST_DAY;\n }\n\n get max(): TuiDay {\n return this.context.data?.max || TUI_LAST_DAY;\n }\n\n get disabledItemHandler(): TuiBooleanHandler<TuiDay> {\n return this.context.data?.disabledItemHandler || ALWAYS_FALSE_HANDLER;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMobileCalendarModule} from '@taiga-ui/addon-mobile/components/mobile-calendar';\nimport {TUI_MOBILE_CALENDAR} from '@taiga-ui/kit';\n\nimport {TuiMobileCalendarDialogComponent} from './mobile-calendar-dialog.component';\n\n// TODO: 3.0 remove in ivy compilation\nexport const MOBILE_CALENDAR_COMPONENT = TuiMobileCalendarDialogComponent;\n\n@NgModule({\n imports: [TuiMobileCalendarModule],\n declarations: [TuiMobileCalendarDialogComponent],\n exports: [TuiMobileCalendarDialogComponent],\n entryComponents: [TuiMobileCalendarDialogComponent],\n providers: [\n {\n provide: TUI_MOBILE_CALENDAR,\n useValue: MOBILE_CALENDAR_COMPONENT,\n },\n ],\n})\nexport class TuiMobileCalendarDialogModule {}\n"]}
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit"),require("rxjs"),require("rxjs/operators"),require("@angular/cdk/scrolling"),require("@taiga-ui/addon-mobile/directives/ripple"),require("@taiga-ui/addon-mobile/directives/touchable"),require("@taiga-ui/addon-mobile/internal/primitive-calendar-mobile")):"function"==typeof define&&define.amd?define("@taiga-ui/addon-mobile/components/mobile-calendar",["exports","@angular/common","@angular/core","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit","rxjs","rxjs/operators","@angular/cdk/scrolling","@taiga-ui/addon-mobile/directives/ripple","@taiga-ui/addon-mobile/directives/touchable","@taiga-ui/addon-mobile/internal/primitive-calendar-mobile"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"]["addon-mobile"]=e["taiga-ui"]["addon-mobile"]||{},e["taiga-ui"]["addon-mobile"].components=e["taiga-ui"]["addon-mobile"].components||{},e["taiga-ui"]["addon-mobile"].components["mobile-calendar"]={}),e.ng.common,e.ng.core,e.cdk,e.core$1,e.kit,e.rxjs,e.rxjs.operators,e.ng.cdk.scrolling,e["taiga-ui"]["addon-mobile"].directives.ripple,e["taiga-ui"]["addon-mobile"].directives.touchable,e["taiga-ui"]["addon-mobile"].internal["primitive-calendar-mobile"])}(this,(function(e,t,i,n,o,r,a,s,l,c,u,h){"use strict";function d(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function p(e,t){return function(i,n){t(i,n,e)}}Object.create;Object.create;var m=g(64,48),f=g(50,50);function g(e,t){return Array.from({length:28},(function(i,o){return Array.from({length:n.MONTHS_IN_YEAR},(function(i,n){return e+function(e,t){var i=new Date(e+1900,t,1),n=new Date(e+1900,t+1,0).getDate()+(i.getDay()||7)-1;return Math.ceil(n/7)}(o,n)*t}))}))}var v=b(m),y=b(f);function b(e,t,i){return void 0===t&&(t=28),void 0===i&&(i=12),e.reduce((function(e,n,o){return o<=t?e+n.reduce((function(e,n,r){return o<t||o===t&&r<i?e+n:e}),0):e}),0)}var I=function(){function e(e,t){this.isIos=e,this.scrollService=t,this.index$=new a.Subject,this.viewport=null}return Object.defineProperty(e.prototype,"scrolledIndexChange",{get:function(){return this.index$.pipe(s.distinctUntilChanged())},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this.isIos?y:v;this.viewport=e,this.viewport.setTotalContentSize(7*t),this.updateRenderedRange(this.viewport)},e.prototype.detach=function(){this.index$.complete(),this.viewport=null},e.prototype.onContentScrolled=function(){this.viewport&&this.updateRenderedRange(this.viewport)},e.prototype.onDataLengthChanged=function(){},e.prototype.onContentRendered=function(){},e.prototype.onRenderedOffsetChanged=function(){},e.prototype.scrollToIndex=function(e,t){if(this.viewport){var i=this.getOffsetForIndex(e);"smooth"===t?this.scrollService.scroll$(this.viewport.elementRef.nativeElement,i).subscribe():this.viewport.scrollToOffset(i,t)}},e.prototype.getOffsetForIndex=function(e){var t=e%n.MONTHS_IN_YEAR,i=(e-t)/n.MONTHS_IN_YEAR;return this.computeHeight(i,t)},e.prototype.getIndexForOffset=function(e){for(var t=this.isIos?f:m,i=this.isIos?y:v,o=e%i,r=(e-o)/i*28,a=0,s=0;s<t.length;s++)for(var l=0;l<t[s].length;l++)if((a+=t[s][l])-t[s][l]/2>o)return Math.max((r+s)*n.MONTHS_IN_YEAR+l,0);return 196},e.prototype.computeHeight=function(e,t){var i=e%28,n=b(this.isIos?f:m,i,t),o=(e-i)/28;return(this.isIos?o*y:o*v)+n},e.prototype.updateRenderedRange=function(e){var t=e.measureScrollOffset(),i=e.getRenderedRange(),n=i.start,o=i.end,r=e.getViewportSize(),a=e.getDataLength(),s={start:n,end:o},l=this.getIndexForOffset(t);t-this.getOffsetForIndex(n)<500&&0!==n?(s.start=Math.max(0,this.getIndexForOffset(t-1e3)),s.end=Math.min(a,this.getIndexForOffset(t+r+500))):this.getOffsetForIndex(o)-t-r<500&&o!==a&&(s.start=Math.max(0,this.getIndexForOffset(t-500)),s.end=Math.min(a,this.getIndexForOffset(t+r+1e3)));e.setRenderedRange(s),e.setRenderedContentOffset(this.getOffsetForIndex(s.start)),this.index$.next(l)},d([n.tuiPure],e.prototype,"scrolledIndexChange",null),e}(),_=new i.InjectionToken("Stream for updating value"),T=[n.TuiDestroyService,n.TuiScrollService,{provide:l.VIRTUAL_SCROLL_STRATEGY,deps:[n.TUI_IS_IOS,n.TuiScrollService],useClass:I},{provide:_,deps:[[new i.Optional,r.TUI_CALENDAR_DATA_STREAM],n.TuiDestroyService,i.ChangeDetectorRef],useFactory:S}];function S(e,t,i){return(e||a.EMPTY).pipe(n.watch(i),s.takeUntil(t))}var R=function(){function e(e,t,o,r,a,l,c,u,h){var d=this;this.isIOS=e,this.documentRef=t,this.destroy$=o,this.closeWord$=a,this.cancelWord$=l,this.doneWord$=c,this.weekDays$=u,this.chooseDayOrRangeTexts$=h,this.today=n.TuiDay.currentLocal(),this.activeYear=this.initialYear,this.activeMonth=this.initialMonth,this.single=!0,this.min=n.TUI_FIRST_DAY,this.max=n.TUI_LAST_DAY,this.disabledItemHandler=n.ALWAYS_FALSE_HANDLER,this.cancel=new i.EventEmitter,this.confirm=new i.EventEmitter,this.value=null,this.years=Array.from({length:196},(function(e,t){return t+1900})),this.months=Array.from({length:2352},(function(e,t){return new n.TuiMonth(Math.floor(t/n.MONTHS_IN_YEAR)+1900,t%n.MONTHS_IN_YEAR)})),this.disabledItemHandlerMapper=function(e,t,i){return function(n){return n.dayBefore(t)||null!==i&&n.dayAfter(i)||e(n)}},r.pipe(s.takeUntil(this.destroy$)).subscribe((function(e){d.value=e}))}return Object.defineProperty(e.prototype,"yearWidth",{get:function(){return this.documentRef.documentElement.clientWidth/5},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.waitScrolledChange()},e.prototype.onClose=function(){this.cancel.emit()},e.prototype.onConfirm=function(){this.value?this.confirm.emit(this.value):this.cancel.emit()},e.prototype.onDayClick=function(e){this.single?this.value=e:null===this.value||this.value instanceof n.TuiDay||!this.value.isSingleDay?this.value=new n.TuiDayRange(e,e):this.value=n.TuiDayRange.sort(this.value.from,e)},e.prototype.getState=function(e){return this.isYearActive(e)?"active":this.isYearActive(e-1)||this.isYearActive(e+1)?"adjacent":null},e.prototype.onMonthChange=function(e){if(e&&this.activeMonth!==e){this.activeMonth=e;var t=this.monthToYear(e);t!==this.activeYear&&(this.activeYear=t,this.scrollToActiveYear())}},e.prototype.setYear=function(e){var t=this;this.activeYear!==e&&(this.activeMonth+=this.getMonthOffset(e),this.activeYear=e,this.scrollToActiveYear("smooth"),setTimeout((function(){t.scrollToActiveMonth()})))},Object.defineProperty(e.prototype,"initialYear",{get:function(){return this.value?this.value instanceof n.TuiDay?this.value.year:this.value.from.year:this.today.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialMonth",{get:function(){return this.value?this.value instanceof n.TuiDay?this.value.month+(this.value.year-1900)*n.MONTHS_IN_YEAR:this.value.from.month+(this.value.from.year-1900)*n.MONTHS_IN_YEAR:this.today.month+(this.today.year-1900)*n.MONTHS_IN_YEAR},enumerable:!0,configurable:!0}),e.prototype.getYearsViewportSize=function(){var e;return(null===(e=this.yearsScrollRef)||void 0===e?void 0:e.getViewportSize())||0},e.prototype.updateViewportDimension=function(){var e,t;null===(e=this.yearsScrollRef)||void 0===e||e.checkViewportSize(),null===(t=this.monthsScrollRef)||void 0===t||t.checkViewportSize()},e.prototype.lateInit=function(){return this.getYearsViewportSize()>0?a.identity:s.delay(200)},e.prototype.waitScrolledChange=function(){var e,t=this;this.updateViewportDimension(),null===(e=this.monthsScrollRef)||void 0===e||e.scrolledIndexChange.pipe(this.lateInit(),s.take(1),s.takeUntil(this.destroy$)).subscribe((function(){t.updateViewportDimension(),t.initYearScroll(),t.initMonthScroll(),t.scrollToActiveYear(),t.scrollToActiveMonth()}))},e.prototype.initYearScroll=function(){var e=this,t=this.yearsScrollRef;if(t){var i=n.typedFromEvent(t.elementRef.nativeElement,"touchstart"),o=n.typedFromEvent(t.elementRef.nativeElement,"touchend"),r=n.typedFromEvent(t.elementRef.nativeElement,"click");t.elementScrolled().pipe(s.windowToggle(i,(function(){return r})),s.flatMap((function(e){return e})),s.delay(0),s.map((function(){return Math.round(t.measureScrollOffset()/e.yearWidth)+Math.floor(2.5)+1900})),s.filter((function(t){return t!==e.activeYear})),s.takeUntil(this.destroy$)).subscribe((function(t){e.activeMonth+=e.getMonthOffset(t),e.activeYear=t,e.scrollToActiveMonth()})),i.pipe(s.switchMap((function(){return o})),s.switchMap((function(){return a.race(t.elementScrolled(),a.timer(80)).pipe(s.debounceTime(160),s.take(1),s.takeUntil(i))})),s.takeUntil(this.destroy$)).subscribe((function(){e.scrollToActiveYear("smooth")}))}},e.prototype.initMonthScroll=function(){var e=this,t=this.monthsScrollRef;if(t){var i=n.typedFromEvent(t.elementRef.nativeElement,"touchstart",{passive:!0}),o=n.typedFromEvent(t.elementRef.nativeElement,"touchend");i.pipe(s.switchMapTo(o),s.switchMapTo(a.race(t.elementScrolled(),a.timer(80)).pipe(s.debounceTime(160),s.take(1),s.takeUntil(i))),s.takeUntil(this.destroy$)).subscribe((function(){e.scrollToActiveMonth("smooth")}))}},e.prototype.scrollToActiveYear=function(e){var t;null===(t=this.yearsScrollRef)||void 0===t||t.scrollToIndex(Math.max(this.activeYear-1900-2,0),e)},e.prototype.scrollToActiveMonth=function(e){var t;null===(t=this.monthsScrollRef)||void 0===t||t.scrollToIndex(this.activeMonth,e)},e.prototype.isYearActive=function(e){return e===this.activeYear},e.prototype.monthToYear=function(e){return Math.ceil((e+1)/n.MONTHS_IN_YEAR)+1900-1},e.prototype.getMonthOffset=function(e){return(e-this.activeYear)*n.MONTHS_IN_YEAR},e.ctorParameters=function(){return[{type:Boolean,decorators:[{type:i.Inject,args:[n.TUI_IS_IOS]}]},{type:Document,decorators:[{type:i.Inject,args:[t.DOCUMENT]}]},{type:n.TuiDestroyService,decorators:[{type:i.Inject,args:[n.TuiDestroyService]}]},{type:a.Observable,decorators:[{type:i.Inject,args:[_]}]},{type:a.Observable,decorators:[{type:i.Inject,args:[o.TUI_CLOSE_WORD]}]},{type:a.Observable,decorators:[{type:i.Inject,args:[r.TUI_CANCEL_WORD]}]},{type:a.Observable,decorators:[{type:i.Inject,args:[r.TUI_DONE_WORD]}]},{type:a.Observable,decorators:[{type:i.Inject,args:[o.TUI_ORDERED_SHORT_WEEK_DAYS]}]},{type:a.Observable,decorators:[{type:i.Inject,args:[r.TUI_CHOOSE_DAY_OR_RANGE_TEXTS]}]}]},d([i.ViewChild("yearsScrollRef")],e.prototype,"yearsScrollRef",void 0),d([i.ViewChild("monthsScrollRef")],e.prototype,"monthsScrollRef",void 0),d([i.Input(),n.tuiDefaultProp()],e.prototype,"single",void 0),d([i.Input(),n.tuiDefaultProp()],e.prototype,"min",void 0),d([i.Input(),n.tuiDefaultProp()],e.prototype,"max",void 0),d([i.Input(),n.tuiDefaultProp()],e.prototype,"disabledItemHandler",void 0),d([i.Output()],e.prototype,"cancel",void 0),d([i.Output()],e.prototype,"confirm",void 0),e=d([i.Component({selector:"tui-mobile-calendar",template:'<header class="t-header">\n <button\n tuiIconButton\n type="button"\n automation-id="tui-mobile-calendar__cancel"\n icon="tuiIconRemoveLarge"\n shape="rounded"\n appearance=""\n tuiRipple\n class="t-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] : texts[1] }}\n </h2>\n <button\n tuiLink\n tuiTouchable="opacity"\n type="button"\n automation-id="tui-mobile-calendar__confirm"\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 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 weekDays$ | 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 [month]="month"\n [value]="value"\n [disabledItemHandler]="disabledItemHandler | tuiMapper: disabledItemHandlerMapper:min:max"\n (dayClick)="onDayClick($event)"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n',changeDetection:i.ChangeDetectionStrategy.OnPush,providers:T,host:{"[class._ios]":"isIOS"},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{position:relative;overflow:hidden;flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap}.t-label:after{content:'';position:absolute;top:0;right:0;width:1.875rem;height:100%;background-image:linear-gradient(to right,transparent 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%);pointer-events:none;background-image:linear-gradient(to right,rgba(255,255,255,0) 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%)}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}:host-context([data-mode=onDark]) .t-label:after{background-image:linear-gradient(to right,rgba(34,34,34,0) 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%)}.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:0 0;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:0 0;line-height:inherit;outline:0;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:0 0;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}"]}),p(0,i.Inject(n.TUI_IS_IOS)),p(1,i.Inject(t.DOCUMENT)),p(2,i.Inject(n.TuiDestroyService)),p(3,i.Inject(_)),p(4,i.Inject(o.TUI_CLOSE_WORD)),p(5,i.Inject(r.TUI_CANCEL_WORD)),p(6,i.Inject(r.TUI_DONE_WORD)),p(7,i.Inject(o.TUI_ORDERED_SHORT_WEEK_DAYS)),p(8,i.Inject(r.TUI_CHOOSE_DAY_OR_RANGE_TEXTS))],e)}(),O=function(){function e(){}return e=d([i.NgModule({imports:[t.CommonModule,l.ScrollingModule,u.TuiTouchableModule,c.TuiRippleModule,n.TuiMapperPipeModule,o.TuiLinkModule,h.TuiPrimitiveCalendarMobileModule,o.TuiButtonModule,o.TuiMonthPipeModule],declarations:[R],exports:[R]})],e)}();e.ANDROID_CYCLE=m,e.ANDROID_LABEL=64,e.ANDROID_WEEK=48,e.BUFFER=500,e.IOS_CYCLE=f,e.IOS_LABEL=50,e.IOS_WEEK=50,e.RANGE=196,e.SCROLL_DEBOUNCE_TIME=80,e.STARTING_YEAR=1900,e.TUI_MOBILE_CALENDAR_PROVIDERS=T,e.TUI_VALUE_STREAM=_,e.TuiMobileCalendarComponent=R,e.TuiMobileCalendarModule=O,e.TuiMobileCalendarStrategy=I,e.YEARLY_CYCLE=28,e.YEARS_IN_ROW=5,e.valueStreamFactory=S,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/addon-mobile/components/mobile-calendar/mobile-calendar.const.ts","ng://@taiga-ui/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts","ng://@taiga-ui/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts","ng://@taiga-ui/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts","ng://@taiga-ui/addon-mobile/components/mobile-calendar/mobile-calendar.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","ANDROID_CYCLE","getCycle","IOS_CYCLE","label","week","Array","from","_","MONTHS_IN_YEAR","month","year","firstOfMonth","Date","days","getDate","getDay","Math","ceil","weekCount","ANDROID_CYCLE_HEIGHT","reduceCycle","IOS_CYCLE_HEIGHT","cycle","lastYear","lastMonth","reduce","total","yearIndex","sum","monthIndex","TuiMobileCalendarStrategy","isIos","scrollService","this","index$","Subject","viewport","prototype","pipe","distinctUntilChanged","attach","setTotalContentSize","updateRenderedRange","detach","complete","onContentScrolled","onDataLengthChanged","onContentRendered","onRenderedOffsetChanged","scrollToIndex","index","behavior","scrollTop","getOffsetForIndex","scroll$","elementRef","nativeElement","subscribe","scrollToOffset","computeHeight","getIndexForOffset","offset","cycleHeight","remainder","years","accumulator","max","remainderHeight","fullCycles","measureScrollOffset","_a","getRenderedRange","start","end","viewportSize","getViewportSize","dataLength","getDataLength","newRange","firstVisibleIndex","BUFFER","min","setRenderedRange","setRenderedContentOffset","next","tuiPure","TUI_VALUE_STREAM","InjectionToken","TUI_MOBILE_CALENDAR_PROVIDERS","TuiDestroyService","TuiScrollService","provide","VIRTUAL_SCROLL_STRATEGY","deps","TUI_IS_IOS","useClass","Optional","TUI_CALENDAR_DATA_STREAM","ChangeDetectorRef","useFactory","valueStreamFactory","value$","destroy$","changeDetectorRef","EMPTY","watch","takeUntil","TuiMobileCalendarComponent","isIOS","documentRef","valueChanges","closeWord$","cancelWord$","doneWord$","weekDays$","chooseDayOrRangeTexts$","_this","today","TuiDay","currentLocal","activeYear","initialYear","activeMonth","initialMonth","single","TUI_FIRST_DAY","TUI_LAST_DAY","disabledItemHandler","ALWAYS_FALSE_HANDLER","cancel","EventEmitter","confirm","value","months","RANGE","TuiMonth","floor","disabledItemHandlerMapper","item","dayBefore","dayAfter","documentElement","clientWidth","ngAfterViewInit","waitScrolledChange","onClose","emit","onConfirm","onDayClick","day","isSingleDay","TuiDayRange","sort","getState","isYearActive","onMonthChange","monthToYear","scrollToActiveYear","setYear","getMonthOffset","setTimeout","scrollToActiveMonth","getYearsViewportSize","yearsScrollRef","updateViewportDimension","checkViewportSize","_b","monthsScrollRef","lateInit","identity","delay","scrolledIndexChange","take","initYearScroll","initMonthScroll","touchstart$","typedFromEvent","touchend$","click$","elementScrolled","windowToggle","flatMap","x","map","round","yearWidth","YEARS_IN_ROW","filter","switchMap","race","timer","debounceTime","SCROLL_DEBOUNCE_TIME","passive","switchMapTo","Inject","args","Document","type","DOCUMENT","Observable","TUI_CLOSE_WORD","TUI_CANCEL_WORD","TUI_DONE_WORD","TUI_ORDERED_SHORT_WEEK_DAYS","TUI_CHOOSE_DAY_OR_RANGE_TEXTS","ViewChild","Input","tuiDefaultProp","Output","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","host","[class._ios]","TuiMobileCalendarModule","NgModule","imports","CommonModule","ScrollingModule","TuiTouchableModule","TuiRippleModule","TuiMapperPipeModule","TuiLinkModule","TuiPrimitiveCalendarMobileModule","TuiButtonModule","TuiMonthPipeModule","declarations","exports"],"mappings":"24CAsDO,SAASA,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HC,EAAvHC,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIJ,EAAkB,OAATE,EAAgBA,EAAOM,OAAOC,yBAAyBT,EAAQC,GAAOC,EACrH,GAAuB,iBAAZQ,SAAoD,mBAArBA,QAAQC,SAAyBJ,EAAIG,QAAQC,SAASZ,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIU,EAAIb,EAAWO,OAAS,EAAGM,GAAK,EAAGA,KAAST,EAAIJ,EAAWa,MAAIL,GAAKH,EAAI,EAAID,EAAEI,GAAKH,EAAI,EAAID,EAAEH,EAAQC,EAAKM,GAAKJ,EAAEH,EAAQC,KAASM,GAChJ,OAAOH,EAAI,GAAKG,GAAKC,OAAOK,eAAeb,EAAQC,EAAKM,GAAIA,EAGzD,SAASO,EAAQC,EAAYC,GAChC,OAAO,SAAUhB,EAAQC,GAAOe,EAAUhB,EAAQC,EAAKc,IA6C9BP,OAAOS,OA0GXT,OAAOS,WCzMnBC,EAAgBC,EALA,GACD,IAKfC,EAAYD,EAJA,GACD,IAKxB,SAASA,EAASE,EAAeC,GAC7B,OAAOC,MAAMC,KAAK,CAAClB,OALK,KAKkB,SAACmB,EAAGb,GAC1C,OAAAW,MAAMC,KACF,CAAClB,OAAQoB,EAAAA,iBACT,SAACD,EAAGE,GAAU,OAAAN,EAK1B,SAAmBO,EAAcD,GAC7B,IAAME,EAAe,IAAIC,KAAKF,EArBL,KAqB2BD,EAAO,GAErDI,EADc,IAAID,KAAKF,EAtBJ,KAsB0BD,EAAQ,EAAG,GACrCK,WAAaH,EAAaI,UAAY,GAAK,EAEpE,OAAOC,KAAKC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O,EAAAA,QACAC,EAAAA,4CAKDpO,EAAA,CAFCmO,EAAAA,QACAC,EAAAA,4DAIDpO,EAAA,CADCqO,EAAAA,uCAIDrO,EAAA,CADCqO,EAAAA,wCA9BQtG,EAA0B/H,EAAA,CARtCsO,EAAAA,UAAU,CACPC,SAAU,sBACVC,SAAA,mwEAEAC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,UAAWhI,EACXiI,KAAM,CAACC,eAAgB,82GAiDlB9N,EAAA,EAAAuM,EAAAA,OAAOrG,EAAAA,aACPlG,EAAA,EAAAuM,EAAAA,OAAOI,EAAAA,WACP3M,EAAA,EAAAuM,EAAAA,OAAO1G,EAAAA,oBAEP7F,EAAA,EAAAuM,EAAAA,OAAO7G,IACP1F,EAAA,EAAAuM,EAAAA,OAAOM,EAAAA,iBACP7M,EAAA,EAAAuM,EAAAA,OAAOO,EAAAA,kBACP9M,EAAA,EAAAuM,EAAAA,OAAOQ,EAAAA,gBACP/M,EAAA,EAAAuM,EAAAA,OAAOS,EAAAA,8BAIPhN,EAAA,EAAAuM,EAAAA,OAAOU,EAAAA,iCA3DHlG,mBCxCb,SAAAgH,KAAsC,OAAzBA,EAAuB/O,EAAA,CAfnCgP,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,gBACAC,EAAAA,mBACAC,EAAAA,gBACAC,EAAAA,oBACAC,EAAAA,cACAC,EAAAA,iCACAC,EAAAA,gBACAC,EAAAA,oBAEJC,aAAc,CAAC5H,GACf6H,QAAS,CAAC7H,MAEDgH,wCJnBgB,kBACD,YAFN,8BAGG,cACD,WALH,2BAHe,mBAEP,oKAOD,kBARA","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {MONTHS_IN_YEAR} from '@taiga-ui/cdk';\n\nexport const SCROLL_DEBOUNCE_TIME = 80;\nexport const YEARS_IN_ROW = 5;\nexport const STARTING_YEAR = 1900;\nexport const RANGE = 196;\nexport const BUFFER = 500;\nexport const ANDROID_LABEL = 64;\nexport const ANDROID_WEEK = 48;\nexport const IOS_LABEL = 50;\nexport const IOS_WEEK = 50;\nexport const YEARLY_CYCLE = 28;\nexport const ANDROID_CYCLE = getCycle(ANDROID_LABEL, ANDROID_WEEK);\nexport const IOS_CYCLE = getCycle(IOS_LABEL, IOS_WEEK);\n\nfunction getCycle(label: number, week: number): ReadonlyArray<readonly number[]> {\n return Array.from({length: YEARLY_CYCLE}, (_, i) =>\n Array.from(\n {length: MONTHS_IN_YEAR},\n (_, month) => label + weekCount(i, month) * week,\n ),\n );\n}\n\nfunction weekCount(year: number, month: number): number {\n const firstOfMonth = new Date(year + STARTING_YEAR, month, 1);\n const lastOfMonth = new Date(year + STARTING_YEAR, month + 1, 0);\n const days = lastOfMonth.getDate() + (firstOfMonth.getDay() || 7) - 1;\n\n return Math.ceil(days / 7);\n}\n","import {CdkVirtualScrollViewport, VirtualScrollStrategy} from '@angular/cdk/scrolling';\nimport {MONTHS_IN_YEAR, tuiPure, TuiScrollService} from '@taiga-ui/cdk';\nimport {Observable, Subject} from 'rxjs';\nimport {distinctUntilChanged} from 'rxjs/operators';\n\nimport {\n ANDROID_CYCLE,\n BUFFER,\n IOS_CYCLE,\n RANGE,\n YEARLY_CYCLE,\n} from './mobile-calendar.const';\n\nconst ANDROID_CYCLE_HEIGHT = reduceCycle(ANDROID_CYCLE);\nconst IOS_CYCLE_HEIGHT = reduceCycle(IOS_CYCLE);\n\nfunction reduceCycle(\n cycle: ReadonlyArray<readonly number[]>,\n lastYear: number = 28,\n lastMonth: number = 12,\n): number {\n return cycle.reduce(\n (total, year, yearIndex) =>\n yearIndex <= lastYear\n ? total +\n year.reduce(\n (sum, month, monthIndex) =>\n yearIndex < lastYear ||\n (yearIndex === lastYear && monthIndex < lastMonth)\n ? sum + month\n : sum,\n 0,\n )\n : total,\n 0,\n );\n}\n\n/**\n * This scroll strategy is hard wired with styles for iOS and Android.\n * It is dependent on month height on those platforms and is designed to\n * work for {@link TuiMobileCalendarComponent} with years 1906 to 2102\n */\nexport class TuiMobileCalendarStrategy implements VirtualScrollStrategy {\n private readonly index$ = new Subject<number>();\n\n private viewport: CdkVirtualScrollViewport | null = null;\n\n constructor(\n private readonly isIos: boolean,\n private readonly scrollService: TuiScrollService,\n ) {}\n\n @tuiPure\n get scrolledIndexChange(): Observable<number> {\n return this.index$.pipe(distinctUntilChanged());\n }\n\n attach(viewport: CdkVirtualScrollViewport): void {\n const cycle = this.isIos ? IOS_CYCLE_HEIGHT : ANDROID_CYCLE_HEIGHT;\n\n this.viewport = viewport;\n this.viewport.setTotalContentSize(cycle * 7);\n this.updateRenderedRange(this.viewport);\n }\n\n detach(): void {\n this.index$.complete();\n this.viewport = null;\n }\n\n onContentScrolled(): void {\n if (this.viewport) {\n this.updateRenderedRange(this.viewport);\n }\n }\n\n /** These do not matter for this case */\n onDataLengthChanged(): void {}\n onContentRendered(): void {}\n onRenderedOffsetChanged(): void {}\n\n scrollToIndex(index: number, behavior: ScrollBehavior): void {\n if (!this.viewport) {\n return;\n }\n\n const scrollTop = this.getOffsetForIndex(index);\n\n if (behavior !== 'smooth') {\n this.viewport.scrollToOffset(scrollTop, behavior);\n\n return;\n }\n\n this.scrollService\n .scroll$(this.viewport.elementRef.nativeElement, scrollTop)\n .subscribe();\n }\n\n private getOffsetForIndex(index: number): number {\n const month = index % MONTHS_IN_YEAR;\n const year = (index - month) / MONTHS_IN_YEAR;\n\n return this.computeHeight(year, month);\n }\n\n private getIndexForOffset(offset: number): number {\n const cycle = this.isIos ? IOS_CYCLE : ANDROID_CYCLE;\n const cycleHeight = this.isIos ? IOS_CYCLE_HEIGHT : ANDROID_CYCLE_HEIGHT;\n const remainder = offset % cycleHeight;\n const years = ((offset - remainder) / cycleHeight) * YEARLY_CYCLE;\n\n let accumulator = 0;\n\n for (let year = 0; year < cycle.length; year++) {\n for (let month = 0; month < cycle[year].length; month++) {\n accumulator += cycle[year][month];\n\n if (accumulator - cycle[year][month] / 2 > remainder) {\n return Math.max((years + year) * MONTHS_IN_YEAR + month, 0);\n }\n }\n }\n\n return RANGE;\n }\n\n private computeHeight(year: number, month?: number): number {\n const cycle = this.isIos ? IOS_CYCLE : ANDROID_CYCLE;\n const remainder = year % YEARLY_CYCLE;\n const remainderHeight = reduceCycle(cycle, remainder, month);\n const fullCycles = (year - remainder) / YEARLY_CYCLE;\n const fullCyclesHeight = this.isIos\n ? fullCycles * IOS_CYCLE_HEIGHT\n : fullCycles * ANDROID_CYCLE_HEIGHT;\n\n return fullCyclesHeight + remainderHeight;\n }\n\n private updateRenderedRange(viewport: CdkVirtualScrollViewport): void {\n const offset = viewport.measureScrollOffset();\n const {start, end} = viewport.getRenderedRange();\n const viewportSize = viewport.getViewportSize();\n const dataLength = viewport.getDataLength();\n const newRange = {start, end};\n const firstVisibleIndex = this.getIndexForOffset(offset);\n const startBuffer = offset - this.getOffsetForIndex(start);\n\n if (startBuffer < BUFFER && start !== 0) {\n newRange.start = Math.max(0, this.getIndexForOffset(offset - BUFFER * 2));\n newRange.end = Math.min(\n dataLength,\n this.getIndexForOffset(offset + viewportSize + BUFFER),\n );\n } else {\n const endBuffer = this.getOffsetForIndex(end) - offset - viewportSize;\n\n if (endBuffer < BUFFER && end !== dataLength) {\n newRange.start = Math.max(0, this.getIndexForOffset(offset - BUFFER));\n newRange.end = Math.min(\n dataLength,\n this.getIndexForOffset(offset + viewportSize + BUFFER * 2),\n );\n }\n }\n\n viewport.setRenderedRange(newRange);\n viewport.setRenderedContentOffset(this.getOffsetForIndex(newRange.start));\n this.index$.next(firstVisibleIndex);\n }\n}\n","import {VIRTUAL_SCROLL_STRATEGY} from '@angular/cdk/scrolling';\nimport {ChangeDetectorRef, InjectionToken, Optional, Provider} from '@angular/core';\nimport {\n TUI_IS_IOS,\n TuiDayRange,\n TuiDestroyService,\n TuiScrollService,\n watch,\n} from '@taiga-ui/cdk';\nimport {TUI_CALENDAR_DATA_STREAM} from '@taiga-ui/kit';\nimport {EMPTY, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiMobileCalendarStrategy} from './mobile-calendar.strategy';\n\nexport const TUI_VALUE_STREAM = new InjectionToken<Observable<TuiDayRange | null>>(\n 'Stream for updating value',\n);\nexport const TUI_MOBILE_CALENDAR_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiScrollService,\n {\n provide: VIRTUAL_SCROLL_STRATEGY,\n deps: [TUI_IS_IOS, TuiScrollService],\n useClass: TuiMobileCalendarStrategy,\n },\n {\n provide: TUI_VALUE_STREAM,\n deps: [\n [new Optional(), TUI_CALENDAR_DATA_STREAM],\n TuiDestroyService,\n ChangeDetectorRef,\n ],\n useFactory: valueStreamFactory,\n },\n];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function valueStreamFactory(\n value$: Observable<TuiDayRange | null> | null,\n destroy$: Observable<void>,\n changeDetectorRef: ChangeDetectorRef,\n): Observable<TuiDayRange | null> {\n return (value$ || EMPTY).pipe(watch(changeDetectorRef), takeUntil(destroy$));\n}\n","import {CdkVirtualScrollViewport} from '@angular/cdk/scrolling';\nimport {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n MONTHS_IN_YEAR,\n TUI_FIRST_DAY,\n TUI_IS_IOS,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n tuiDefaultProp,\n TuiDestroyService,\n TuiMapper,\n TuiMonth,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_CLOSE_WORD, TUI_ORDERED_SHORT_WEEK_DAYS} from '@taiga-ui/core';\nimport {\n TUI_CANCEL_WORD,\n TUI_CHOOSE_DAY_OR_RANGE_TEXTS,\n TUI_DONE_WORD,\n} from '@taiga-ui/kit';\nimport {identity, MonoTypeOperatorFunction, Observable, race, timer} from 'rxjs';\nimport {\n debounceTime,\n delay,\n filter,\n flatMap,\n map,\n switchMap,\n switchMapTo,\n take,\n takeUntil,\n windowToggle,\n} from 'rxjs/operators';\n\nimport {\n RANGE,\n SCROLL_DEBOUNCE_TIME,\n STARTING_YEAR,\n YEARS_IN_ROW,\n} from './mobile-calendar.const';\nimport {\n TUI_MOBILE_CALENDAR_PROVIDERS,\n TUI_VALUE_STREAM,\n} from './mobile-calendar.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-mobile-calendar',\n templateUrl: './mobile-calendar.template.html',\n styleUrls: ['./mobile-calendar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_MOBILE_CALENDAR_PROVIDERS,\n host: {'[class._ios]': 'isIOS'},\n})\nexport class TuiMobileCalendarComponent {\n @ViewChild('yearsScrollRef')\n private readonly yearsScrollRef?: CdkVirtualScrollViewport;\n\n @ViewChild('monthsScrollRef')\n private readonly monthsScrollRef?: CdkVirtualScrollViewport;\n\n private readonly today = TuiDay.currentLocal();\n private activeYear = this.initialYear;\n private activeMonth = this.initialMonth;\n\n @Input()\n @tuiDefaultProp()\n single = true;\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Output()\n readonly cancel = new EventEmitter<void>();\n\n @Output()\n readonly confirm = new EventEmitter<TuiDayRange | TuiDay>();\n\n value: TuiDay | TuiDayRange | null = null;\n\n readonly years = Array.from({length: RANGE}, (_, i) => i + STARTING_YEAR);\n\n readonly months = Array.from(\n {length: RANGE * 12},\n (_, i) =>\n new TuiMonth(\n Math.floor(i / MONTHS_IN_YEAR) + STARTING_YEAR,\n i % MONTHS_IN_YEAR,\n ),\n );\n\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(TUI_VALUE_STREAM) valueChanges: Observable<TuiDayRange | null>,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n @Inject(TUI_CANCEL_WORD) readonly cancelWord$: Observable<string>,\n @Inject(TUI_DONE_WORD) readonly doneWord$: Observable<string>,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n readonly weekDays$: Observable<\n [string, string, string, string, string, string, string]\n >,\n @Inject(TUI_CHOOSE_DAY_OR_RANGE_TEXTS)\n readonly chooseDayOrRangeTexts$: Observable<[string, string]>,\n ) {\n valueChanges.pipe(takeUntil(this.destroy$)).subscribe(value => {\n this.value = value;\n });\n }\n\n get yearWidth(): number {\n return this.documentRef.documentElement.clientWidth / YEARS_IN_ROW;\n }\n\n ngAfterViewInit(): void {\n // Virtual scroll has not yet rendered items even in ngAfterViewInit\n this.waitScrolledChange();\n }\n\n onClose(): void {\n this.cancel.emit();\n }\n\n onConfirm(): void {\n if (this.value) {\n this.confirm.emit(this.value);\n } else {\n this.cancel.emit();\n }\n }\n\n onDayClick(day: TuiDay): void {\n if (this.single) {\n this.value = day;\n\n return;\n }\n\n if (\n this.value === null ||\n this.value instanceof TuiDay ||\n !this.value.isSingleDay\n ) {\n this.value = new TuiDayRange(day, day);\n\n return;\n }\n\n this.value = TuiDayRange.sort(this.value.from, day);\n }\n\n getState(index: number): 'active' | 'adjacent' | null {\n if (this.isYearActive(index)) {\n return 'active';\n }\n\n if (this.isYearActive(index - 1) || this.isYearActive(index + 1)) {\n return 'adjacent';\n }\n\n return null;\n }\n\n onMonthChange(month: number): void {\n // Skipping initial callback where index === 0\n if (!month || this.activeMonth === month) {\n return;\n }\n\n this.activeMonth = month;\n\n const activeYear = this.monthToYear(month);\n\n if (activeYear === this.activeYear) {\n return;\n }\n\n this.activeYear = activeYear;\n this.scrollToActiveYear();\n }\n\n setYear(year: number): void {\n if (this.activeYear === year) {\n return;\n }\n\n this.activeMonth += this.getMonthOffset(year);\n this.activeYear = year;\n this.scrollToActiveYear('smooth');\n\n // Delay is required to run months scroll in the next frame to prevent flicker\n setTimeout(() => {\n this.scrollToActiveMonth();\n });\n }\n\n readonly disabledItemHandlerMapper: TuiMapper<\n TuiBooleanHandler<TuiDay>,\n TuiBooleanHandler<TuiDay>\n > = (disabledItemHandler, min: TuiDay, max: TuiDay) => item =>\n item.dayBefore(min) ||\n (max !== null && item.dayAfter(max)) ||\n disabledItemHandler(item);\n\n private get initialYear(): number {\n if (!this.value) {\n return this.today.year;\n }\n\n if (this.value instanceof TuiDay) {\n return this.value.year;\n }\n\n return this.value.from.year;\n }\n\n private get initialMonth(): number {\n if (!this.value) {\n return this.today.month + (this.today.year - STARTING_YEAR) * MONTHS_IN_YEAR;\n }\n\n if (this.value instanceof TuiDay) {\n return this.value.month + (this.value.year - STARTING_YEAR) * MONTHS_IN_YEAR;\n }\n\n return (\n this.value.from.month +\n (this.value.from.year - STARTING_YEAR) * MONTHS_IN_YEAR\n );\n }\n\n private getYearsViewportSize(): number {\n return this.yearsScrollRef?.getViewportSize() || 0;\n }\n\n private updateViewportDimension(): void {\n this.yearsScrollRef?.checkViewportSize();\n this.monthsScrollRef?.checkViewportSize();\n }\n\n private lateInit(): MonoTypeOperatorFunction<number> {\n return this.getYearsViewportSize() > 0 ? identity : delay(200);\n }\n\n private waitScrolledChange(): void {\n this.updateViewportDimension();\n\n this.monthsScrollRef?.scrolledIndexChange\n .pipe(this.lateInit(), take(1), takeUntil(this.destroy$))\n .subscribe(() => {\n this.updateViewportDimension();\n this.initYearScroll();\n this.initMonthScroll();\n this.scrollToActiveYear();\n this.scrollToActiveMonth();\n });\n }\n\n private initYearScroll(): void {\n const {yearsScrollRef} = this;\n\n if (!yearsScrollRef) {\n return;\n }\n\n const touchstart$ = typedFromEvent(\n yearsScrollRef.elementRef.nativeElement,\n 'touchstart',\n );\n const touchend$ = typedFromEvent(\n yearsScrollRef.elementRef.nativeElement,\n 'touchend',\n );\n const click$ = typedFromEvent(yearsScrollRef.elementRef.nativeElement, 'click');\n\n // Refresh activeYear\n yearsScrollRef\n .elementScrolled()\n .pipe(\n // Ignore smooth scroll resulting from click on the exact year\n windowToggle(touchstart$, () => click$),\n flatMap(x => x),\n // Delay is required to run months scroll in the next frame to prevent flicker\n delay(0),\n map(\n () =>\n Math.round(\n yearsScrollRef.measureScrollOffset() / this.yearWidth,\n ) +\n Math.floor(YEARS_IN_ROW / 2) +\n STARTING_YEAR,\n ),\n filter(activeYear => activeYear !== this.activeYear),\n takeUntil(this.destroy$),\n )\n .subscribe(activeYear => {\n this.activeMonth += this.getMonthOffset(activeYear);\n this.activeYear = activeYear;\n this.scrollToActiveMonth();\n });\n\n // Smooth scroll to activeYear after scrolling is done\n touchstart$\n .pipe(\n switchMap(() => touchend$),\n switchMap(() =>\n race<unknown>(\n yearsScrollRef.elementScrolled(),\n timer(SCROLL_DEBOUNCE_TIME),\n ).pipe(\n debounceTime(SCROLL_DEBOUNCE_TIME * 2),\n take(1),\n takeUntil(touchstart$),\n ),\n ),\n takeUntil(this.destroy$),\n )\n .subscribe(() => {\n this.scrollToActiveYear('smooth');\n });\n }\n\n private initMonthScroll(): void {\n const {monthsScrollRef} = this;\n\n if (!monthsScrollRef) {\n return;\n }\n\n const touchstart$ = typedFromEvent(\n monthsScrollRef.elementRef.nativeElement,\n 'touchstart',\n {passive: true},\n );\n const touchend$ = typedFromEvent(\n monthsScrollRef.elementRef.nativeElement,\n 'touchend',\n );\n\n // Smooth scroll to the closest month after scrolling is done\n touchstart$\n .pipe(\n switchMapTo(touchend$),\n switchMapTo(\n race<unknown>(\n monthsScrollRef.elementScrolled(),\n timer(SCROLL_DEBOUNCE_TIME),\n ).pipe(\n debounceTime(SCROLL_DEBOUNCE_TIME * 2),\n take(1),\n takeUntil(touchstart$),\n ),\n ),\n takeUntil(this.destroy$),\n )\n .subscribe(() => {\n this.scrollToActiveMonth('smooth');\n });\n }\n\n private scrollToActiveYear(behavior?: ScrollBehavior): void {\n this.yearsScrollRef?.scrollToIndex(\n Math.max(this.activeYear - STARTING_YEAR - 2, 0),\n behavior,\n );\n }\n\n private scrollToActiveMonth(behavior?: ScrollBehavior): void {\n this.monthsScrollRef?.scrollToIndex(this.activeMonth, behavior);\n }\n\n private isYearActive(index: number): boolean {\n return index === this.activeYear;\n }\n\n private monthToYear(month: number): number {\n return Math.ceil((month + 1) / MONTHS_IN_YEAR) + STARTING_YEAR - 1;\n }\n\n private getMonthOffset(year: number): number {\n return (year - this.activeYear) * MONTHS_IN_YEAR;\n }\n}\n","import {ScrollingModule} from '@angular/cdk/scrolling';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiTouchableModule} from '@taiga-ui/addon-mobile/directives/touchable';\nimport {TuiPrimitiveCalendarMobileModule} from '@taiga-ui/addon-mobile/internal/primitive-calendar-mobile';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiButtonModule, TuiLinkModule, TuiMonthPipeModule} from '@taiga-ui/core';\n\nimport {TuiMobileCalendarComponent} from './mobile-calendar.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ScrollingModule,\n TuiTouchableModule,\n TuiRippleModule,\n TuiMapperPipeModule,\n TuiLinkModule,\n TuiPrimitiveCalendarMobileModule,\n TuiButtonModule,\n TuiMonthPipeModule,\n ],\n declarations: [TuiMobileCalendarComponent],\n exports: [TuiMobileCalendarComponent],\n})\nexport class TuiMobileCalendarModule {}\n"]}