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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/components/app-bar/app-bar-back.component.d.ts +1 -1
  2. package/components/app-bar/app-bar.component.d.ts +1 -1
  3. package/components/app-bar/app-bar.directive.d.ts +1 -1
  4. package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
  5. package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +1 -1
  6. package/components/mobile-dialog/mobile-dialog.component.d.ts +1 -1
  7. package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -1
  8. package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +1 -1
  9. package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +1 -1
  10. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +1 -1
  11. package/components/sheet/components/sheet/sheet.component.d.ts +1 -1
  12. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +1 -1
  13. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +1 -1
  14. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +1 -1
  15. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +1 -1
  16. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +1 -1
  17. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +1 -1
  18. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
  19. package/components/sheet/sheet.directive.d.ts +1 -1
  20. package/components/sheet-dialog/sheet-dialog.component.d.ts +1 -1
  21. package/components/sheet-dialog/sheet-dialog.directive.d.ts +1 -1
  22. package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
  23. package/components/tab-bar/tab-bar-item.component.d.ts +1 -1
  24. package/components/tab-bar/tab-bar-item.directive.d.ts +1 -1
  25. package/components/tab-bar/tab-bar.component.d.ts +1 -1
  26. package/components/theme-android/theme-android.component.d.ts +1 -1
  27. package/components/theme-ios/theme-ios.component.d.ts +1 -1
  28. package/const/mobile-alert-options.d.ts +3 -3
  29. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -1
  30. package/directives/mobile-tabs/mobile-tabs.component.d.ts +1 -1
  31. package/directives/mobile-tabs/mobile-tabs.directive.d.ts +1 -1
  32. package/directives/ripple/ripple-styles.component.d.ts +1 -1
  33. package/directives/ripple/ripple.directive.d.ts +1 -1
  34. package/directives/sidebar/sidebar.component.d.ts +1 -1
  35. package/directives/sidebar/sidebar.directive.d.ts +1 -1
  36. package/directives/touchable/touchable.directive.d.ts +1 -1
  37. package/esm2020/components/app-bar/app-bar-back.component.mjs +11 -0
  38. package/esm2020/components/app-bar/app-bar.component.mjs +33 -0
  39. package/{esm2015/components/app-bar/app-bar.directive.js → esm2020/components/app-bar/app-bar.directive.mjs} +3 -3
  40. package/{esm2015/components/app-bar/app-bar.module.js → esm2020/components/app-bar/app-bar.module.mjs} +5 -5
  41. package/esm2020/components/mobile-calendar/mobile-calendar.component.mjs +301 -0
  42. package/{esm2015/components/mobile-calendar/mobile-calendar.module.js → esm2020/components/mobile-calendar/mobile-calendar.module.mjs} +14 -16
  43. package/esm2020/components/mobile-calendar/mobile-calendar.providers.mjs +29 -0
  44. package/esm2020/components/mobile-calendar/mobile-calendar.strategy.mjs +125 -0
  45. package/esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.component.mjs +35 -0
  46. package/{esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js → esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.module.mjs} +6 -6
  47. package/esm2020/components/mobile-dialog/mobile-dialog.component.mjs +32 -0
  48. package/{esm2015/components/mobile-dialog/mobile-dialog.module.js → esm2020/components/mobile-dialog/mobile-dialog.module.mjs} +5 -5
  49. package/esm2020/components/mobile-dialog/mobile-dialog.service.mjs +29 -0
  50. package/esm2020/components/pull-to-refresh/loader-android/loader-android.component.mjs +55 -0
  51. package/esm2020/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +44 -0
  52. package/esm2020/components/pull-to-refresh/pull-to-refresh.component.mjs +69 -0
  53. package/{esm2015/components/pull-to-refresh/pull-to-refresh.module.js → esm2020/components/pull-to-refresh/pull-to-refresh.module.mjs} +5 -5
  54. package/esm2020/components/pull-to-refresh/pull-to-refresh.service.mjs +53 -0
  55. package/esm2020/components/sheet/components/sheet/sheet.component.mjs +121 -0
  56. package/esm2020/components/sheet/components/sheet/sheet.providers.mjs +30 -0
  57. package/{esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js → esm2020/components/sheet/components/sheet-bar/sheet-bar.component.mjs} +7 -12
  58. package/{esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js → esm2020/components/sheet/components/sheet-heading/sheet-heading.component.mjs} +5 -10
  59. package/esm2020/components/sheet/components/sheets-host/sheets-host.component.mjs +61 -0
  60. package/esm2020/components/sheet/directives/sheet-close/sheet-close.directive.mjs +55 -0
  61. package/esm2020/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +47 -0
  62. package/esm2020/components/sheet/directives/sheet-top/sheet-top.directive.mjs +54 -0
  63. package/esm2020/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +78 -0
  64. package/esm2020/components/sheet/ios.hacks.mjs +28 -0
  65. package/esm2020/components/sheet/sheet-options.mjs +21 -0
  66. package/esm2020/components/sheet/sheet.directive.mjs +48 -0
  67. package/{esm2015/components/sheet/sheet.module.js → esm2020/components/sheet/sheet.module.mjs} +10 -12
  68. package/esm2020/components/sheet/sheet.service.mjs +56 -0
  69. package/esm2020/components/sheet-dialog/sheet-dialog.component.mjs +132 -0
  70. package/{esm2015/components/sheet-dialog/sheet-dialog.directive.js → esm2020/components/sheet-dialog/sheet-dialog.directive.mjs} +3 -3
  71. package/{esm2015/components/sheet-dialog/sheet-dialog.module.js → esm2020/components/sheet-dialog/sheet-dialog.module.mjs} +5 -5
  72. package/{esm2015/components/sheet-dialog/sheet-dialog.service.js → esm2020/components/sheet-dialog/sheet-dialog.service.mjs} +8 -5
  73. package/esm2020/components/tab-bar/tab-bar-item.component.mjs +29 -0
  74. package/esm2020/components/tab-bar/tab-bar-item.directive.mjs +44 -0
  75. package/esm2020/components/tab-bar/tab-bar.component.mjs +47 -0
  76. package/{esm2015/components/tab-bar/tab-bar.module.js → esm2020/components/tab-bar/tab-bar.module.mjs} +5 -5
  77. package/{esm2015/components/theme-android/theme-android.component.js → esm2020/components/theme-android/theme-android.component.mjs} +5 -11
  78. package/{esm2015/components/theme-android/theme-android.module.js → esm2020/components/theme-android/theme-android.module.mjs} +4 -4
  79. package/esm2020/components/theme-ios/theme-ios.component.mjs +12 -0
  80. package/{esm2015/components/theme-ios/theme-ios.module.js → esm2020/components/theme-ios/theme-ios.module.mjs} +4 -4
  81. package/esm2020/const/mobile-alert-options.mjs +13 -0
  82. package/{esm2015/directives/elastic-sticky/elastic-sticky.directive.js → esm2020/directives/elastic-sticky/elastic-sticky.directive.mjs} +3 -3
  83. package/{esm2015/directives/elastic-sticky/elastic-sticky.module.js → esm2020/directives/elastic-sticky/elastic-sticky.module.mjs} +4 -4
  84. package/esm2020/directives/elastic-sticky/elastic-sticky.service.mjs +40 -0
  85. package/esm2020/directives/mobile-tabs/mobile-tabs.component.mjs +13 -0
  86. package/{esm2015/directives/mobile-tabs/mobile-tabs.directive.js → esm2020/directives/mobile-tabs/mobile-tabs.directive.mjs} +3 -3
  87. package/{esm2015/directives/mobile-tabs/mobile-tabs.module.js → esm2020/directives/mobile-tabs/mobile-tabs.module.mjs} +4 -4
  88. package/{esm2015/directives/ripple/ripple-styles.component.js → esm2020/directives/ripple/ripple-styles.component.mjs} +6 -12
  89. package/esm2020/directives/ripple/ripple.directive.mjs +66 -0
  90. package/{esm2015/directives/ripple/ripple.module.js → esm2020/directives/ripple/ripple.module.mjs} +4 -4
  91. package/esm2020/directives/ripple/ripple.providers.mjs +42 -0
  92. package/esm2020/directives/sidebar/sidebar.component.mjs +58 -0
  93. package/esm2020/directives/sidebar/sidebar.directive.mjs +72 -0
  94. package/{esm2015/directives/sidebar/sidebar.module.js → esm2020/directives/sidebar/sidebar.module.mjs} +5 -5
  95. package/esm2020/directives/touchable/touchable.directive.mjs +82 -0
  96. package/{esm2015/directives/touchable/touchable.module.js → esm2020/directives/touchable/touchable.module.mjs} +4 -4
  97. package/esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.mjs +34 -0
  98. package/{esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js → esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.mjs} +8 -10
  99. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs +103 -0
  100. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  101. package/fesm2015/{taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +16 -19
  102. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  103. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs +539 -0
  104. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  105. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs +91 -0
  106. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  107. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +257 -0
  108. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  109. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs +215 -0
  110. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  111. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs +687 -0
  112. package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  113. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs +137 -0
  114. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  115. package/fesm2015/{taiga-ui-addon-mobile-components-theme-android.js → taiga-ui-addon-mobile-components-theme-android.mjs} +9 -15
  116. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  117. package/fesm2015/{taiga-ui-addon-mobile-components-theme-ios.js → taiga-ui-addon-mobile-components-theme-ios.mjs} +9 -15
  118. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  119. package/fesm2015/{taiga-ui-addon-mobile-components.js → taiga-ui-addon-mobile-components.mjs} +1 -1
  120. package/fesm2015/taiga-ui-addon-mobile-components.mjs.map +1 -0
  121. package/fesm2015/{taiga-ui-addon-mobile-const.js → taiga-ui-addon-mobile-const.mjs} +1 -1
  122. package/fesm2015/taiga-ui-addon-mobile-const.mjs.map +1 -0
  123. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +85 -0
  124. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  125. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +87 -0
  126. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  127. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs +136 -0
  128. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  129. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs +143 -0
  130. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  131. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs +104 -0
  132. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  133. package/fesm2015/{taiga-ui-addon-mobile-directives.js → taiga-ui-addon-mobile-directives.mjs} +1 -1
  134. package/fesm2015/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  135. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  136. package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  137. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs +72 -0
  138. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  139. package/fesm2015/{taiga-ui-addon-mobile-internal.js → taiga-ui-addon-mobile-internal.mjs} +1 -1
  140. package/fesm2015/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  141. package/fesm2015/taiga-ui-addon-mobile-types.mjs +4 -0
  142. package/fesm2015/taiga-ui-addon-mobile-types.mjs.map +1 -0
  143. package/fesm2015/{taiga-ui-addon-mobile-utils.js → taiga-ui-addon-mobile-utils.mjs} +1 -1
  144. package/fesm2015/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  145. package/fesm2015/{taiga-ui-addon-mobile.js → taiga-ui-addon-mobile.mjs} +1 -1
  146. package/fesm2015/taiga-ui-addon-mobile.mjs.map +1 -0
  147. package/{fesm2015/taiga-ui-addon-mobile-components-app-bar.js → fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs} +19 -34
  148. package/fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
  149. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs +69 -0
  150. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
  151. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js → fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +36 -51
  152. package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
  153. package/{fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js → fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +22 -25
  154. package/fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
  155. package/{fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js → fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +25 -42
  156. package/fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
  157. package/{fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js → fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +25 -31
  158. package/fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
  159. package/{fesm2015/taiga-ui-addon-mobile-components-sheet.js → fesm2020/taiga-ui-addon-mobile-components-sheet.mjs} +86 -108
  160. package/fesm2020/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
  161. package/{fesm2015/taiga-ui-addon-mobile-components-tab-bar.js → fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs} +19 -30
  162. package/fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
  163. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs +32 -0
  164. package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
  165. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs +32 -0
  166. package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
  167. package/fesm2020/taiga-ui-addon-mobile-components.mjs +15 -0
  168. package/fesm2020/taiga-ui-addon-mobile-components.mjs.map +1 -0
  169. package/fesm2020/taiga-ui-addon-mobile-const.mjs +19 -0
  170. package/fesm2020/taiga-ui-addon-mobile-const.mjs.map +1 -0
  171. package/{fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js → fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +12 -13
  172. package/fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
  173. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +85 -0
  174. package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
  175. package/{fesm2015/taiga-ui-addon-mobile-directives-ripple.js → fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs} +14 -21
  176. package/fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
  177. package/{fesm2015/taiga-ui-addon-mobile-directives-sidebar.js → fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs} +28 -28
  178. package/fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
  179. package/{fesm2015/taiga-ui-addon-mobile-directives-touchable.js → fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs} +10 -11
  180. package/fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
  181. package/fesm2020/taiga-ui-addon-mobile-directives.mjs +10 -0
  182. package/fesm2020/taiga-ui-addon-mobile-directives.mjs.map +1 -0
  183. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs +4 -0
  184. package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
  185. package/{fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +13 -21
  186. package/fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
  187. package/fesm2020/taiga-ui-addon-mobile-internal.mjs +6 -0
  188. package/fesm2020/taiga-ui-addon-mobile-internal.mjs.map +1 -0
  189. package/fesm2020/taiga-ui-addon-mobile-types.mjs +4 -0
  190. package/fesm2020/taiga-ui-addon-mobile-types.mjs.map +1 -0
  191. package/fesm2020/taiga-ui-addon-mobile-utils.mjs +16 -0
  192. package/fesm2020/taiga-ui-addon-mobile-utils.mjs.map +1 -0
  193. package/fesm2020/taiga-ui-addon-mobile.mjs +11 -0
  194. package/fesm2020/taiga-ui-addon-mobile.mjs.map +1 -0
  195. package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +1 -1
  196. package/package.json +229 -32
  197. package/styles/android/checkbox.less +16 -12
  198. package/styles/android/radio.less +5 -3
  199. package/styles/android/toggle.less +3 -4
  200. package/styles/ios/checkbox.less +15 -7
  201. package/styles/ios/toggle.less +8 -11
  202. package/types/touch-mode.d.ts +1 -1
  203. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +0 -149
  204. package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +0 -1
  205. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +0 -129
  206. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +0 -1
  207. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +0 -929
  208. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +0 -1
  209. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +0 -450
  210. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +0 -1
  211. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +0 -677
  212. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +0 -1
  213. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +0 -596
  214. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +0 -1
  215. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +0 -1153
  216. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +0 -1
  217. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +0 -188
  218. package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +0 -1
  219. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +0 -391
  220. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +0 -1
  221. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +0 -391
  222. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +0 -1
  223. package/bundles/taiga-ui-addon-mobile-components.umd.js +0 -75
  224. package/bundles/taiga-ui-addon-mobile-components.umd.js.map +0 -1
  225. package/bundles/taiga-ui-addon-mobile-const.umd.js +0 -24
  226. package/bundles/taiga-ui-addon-mobile-const.umd.js.map +0 -1
  227. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +0 -437
  228. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +0 -1
  229. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +0 -131
  230. package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +0 -1
  231. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +0 -195
  232. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +0 -1
  233. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +0 -524
  234. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +0 -1
  235. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +0 -144
  236. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +0 -1
  237. package/bundles/taiga-ui-addon-mobile-directives.umd.js +0 -45
  238. package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +0 -1
  239. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +0 -11
  240. package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +0 -1
  241. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +0 -429
  242. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +0 -1
  243. package/bundles/taiga-ui-addon-mobile-internal.umd.js +0 -21
  244. package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +0 -1
  245. package/bundles/taiga-ui-addon-mobile-types.umd.js +0 -11
  246. package/bundles/taiga-ui-addon-mobile-types.umd.js.map +0 -1
  247. package/bundles/taiga-ui-addon-mobile-utils.umd.js +0 -26
  248. package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +0 -1
  249. package/bundles/taiga-ui-addon-mobile.umd.js +0 -51
  250. package/bundles/taiga-ui-addon-mobile.umd.js.map +0 -1
  251. package/components/app-bar/package.json +0 -10
  252. package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +0 -5
  253. package/components/mobile-calendar/package.json +0 -10
  254. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +0 -5
  255. package/components/mobile-calendar-dialog/package.json +0 -10
  256. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +0 -5
  257. package/components/mobile-dialog/package.json +0 -10
  258. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +0 -5
  259. package/components/package.json +0 -10
  260. package/components/pull-to-refresh/package.json +0 -10
  261. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +0 -5
  262. package/components/sheet/package.json +0 -10
  263. package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +0 -5
  264. package/components/sheet-dialog/package.json +0 -10
  265. package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +0 -5
  266. package/components/tab-bar/package.json +0 -10
  267. package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +0 -5
  268. package/components/taiga-ui-addon-mobile-components.d.ts +0 -5
  269. package/components/theme-android/package.json +0 -10
  270. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +0 -5
  271. package/components/theme-ios/package.json +0 -10
  272. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +0 -5
  273. package/const/package.json +0 -10
  274. package/const/taiga-ui-addon-mobile-const.d.ts +0 -5
  275. package/directives/elastic-sticky/package.json +0 -10
  276. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +0 -5
  277. package/directives/mobile-tabs/package.json +0 -10
  278. package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +0 -5
  279. package/directives/package.json +0 -10
  280. package/directives/ripple/package.json +0 -10
  281. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +0 -5
  282. package/directives/sidebar/package.json +0 -10
  283. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +0 -5
  284. package/directives/taiga-ui-addon-mobile-directives.d.ts +0 -5
  285. package/directives/touchable/package.json +0 -10
  286. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +0 -5
  287. package/esm2015/components/app-bar/app-bar-back.component.js +0 -16
  288. package/esm2015/components/app-bar/app-bar.component.js +0 -43
  289. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +0 -314
  290. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +0 -30
  291. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +0 -126
  292. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -45
  293. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +0 -38
  294. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +0 -26
  295. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +0 -60
  296. package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -49
  297. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +0 -75
  298. package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +0 -54
  299. package/esm2015/components/sheet/components/sheet/sheet.component.js +0 -128
  300. package/esm2015/components/sheet/components/sheet/sheet.providers.js +0 -31
  301. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +0 -68
  302. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
  303. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -47
  304. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -54
  305. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -81
  306. package/esm2015/components/sheet/ios.hacks.js +0 -29
  307. package/esm2015/components/sheet/sheet-options.js +0 -19
  308. package/esm2015/components/sheet/sheet.directive.js +0 -49
  309. package/esm2015/components/sheet/sheet.service.js +0 -51
  310. package/esm2015/components/sheet-dialog/sheet-dialog.component.js +0 -141
  311. package/esm2015/components/tab-bar/tab-bar-item.component.js +0 -35
  312. package/esm2015/components/tab-bar/tab-bar-item.directive.js +0 -44
  313. package/esm2015/components/tab-bar/tab-bar.component.js +0 -52
  314. package/esm2015/components/theme-ios/theme-ios.component.js +0 -18
  315. package/esm2015/const/mobile-alert-options.js +0 -7
  316. package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +0 -41
  317. package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +0 -19
  318. package/esm2015/directives/ripple/ripple.directive.js +0 -67
  319. package/esm2015/directives/ripple/ripple.providers.js +0 -43
  320. package/esm2015/directives/sidebar/sidebar.component.js +0 -58
  321. package/esm2015/directives/sidebar/sidebar.directive.js +0 -72
  322. package/esm2015/directives/touchable/touchable.directive.js +0 -83
  323. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -40
  324. package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +0 -1
  325. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
  326. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
  327. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
  328. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
  329. package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +0 -1
  330. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
  331. package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +0 -1
  332. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
  333. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
  334. package/fesm2015/taiga-ui-addon-mobile-components.js.map +0 -1
  335. package/fesm2015/taiga-ui-addon-mobile-const.js.map +0 -1
  336. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
  337. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -91
  338. package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
  339. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
  340. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
  341. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
  342. package/fesm2015/taiga-ui-addon-mobile-directives.js.map +0 -1
  343. package/fesm2015/taiga-ui-addon-mobile-interfaces.js +0 -4
  344. package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +0 -1
  345. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
  346. package/fesm2015/taiga-ui-addon-mobile-internal.js.map +0 -1
  347. package/fesm2015/taiga-ui-addon-mobile-types.js +0 -4
  348. package/fesm2015/taiga-ui-addon-mobile-types.js.map +0 -1
  349. package/fesm2015/taiga-ui-addon-mobile-utils.js.map +0 -1
  350. package/fesm2015/taiga-ui-addon-mobile.js.map +0 -1
  351. package/interfaces/package.json +0 -10
  352. package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +0 -5
  353. package/internal/package.json +0 -10
  354. package/internal/primitive-calendar-mobile/package.json +0 -10
  355. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +0 -5
  356. package/internal/taiga-ui-addon-mobile-internal.d.ts +0 -5
  357. package/taiga-ui-addon-mobile.d.ts +0 -5
  358. package/types/package.json +0 -10
  359. package/types/taiga-ui-addon-mobile-types.d.ts +0 -5
  360. package/utils/package.json +0 -10
  361. package/utils/taiga-ui-addon-mobile-utils.d.ts +0 -5
  362. /package/{esm2015/components/app-bar/app-bar.providers.js → esm2020/components/app-bar/app-bar.providers.mjs} +0 -0
  363. /package/{esm2015/components/app-bar/index.js → esm2020/components/app-bar/index.mjs} +0 -0
  364. /package/{esm2015/components/app-bar/taiga-ui-addon-mobile-components-app-bar.js → esm2020/components/app-bar/taiga-ui-addon-mobile-components-app-bar.mjs} +0 -0
  365. /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
  366. /package/{esm2015/components/mobile-calendar/index.js → esm2020/components/mobile-calendar/index.mjs} +0 -0
  367. /package/{esm2015/components/mobile-calendar/mobile-calendar.const.js → esm2020/components/mobile-calendar/mobile-calendar.const.mjs} +0 -0
  368. /package/{esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js → esm2020/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +0 -0
  369. /package/{esm2015/components/mobile-calendar-dialog/index.js → esm2020/components/mobile-calendar-dialog/index.mjs} +0 -0
  370. /package/{esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → esm2020/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +0 -0
  371. /package/{esm2015/components/mobile-dialog/index.js → esm2020/components/mobile-dialog/index.mjs} +0 -0
  372. /package/{esm2015/components/mobile-dialog/mobile-dialog-options.js → esm2020/components/mobile-dialog/mobile-dialog-options.mjs} +0 -0
  373. /package/{esm2015/components/mobile-dialog/mobile-dialog.options.js → esm2020/components/mobile-dialog/mobile-dialog.options.mjs} +0 -0
  374. /package/{esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js → esm2020/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +0 -0
  375. /package/{esm2015/components/pull-to-refresh/index.js → esm2020/components/pull-to-refresh/index.mjs} +0 -0
  376. /package/{esm2015/components/pull-to-refresh/pull-to-refresh.providers.js → esm2020/components/pull-to-refresh/pull-to-refresh.providers.mjs} +0 -0
  377. /package/{esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js → esm2020/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +0 -0
  378. /package/{esm2015/components/sheet/index.js → esm2020/components/sheet/index.mjs} +0 -0
  379. /package/{esm2015/components/sheet/sheet-tokens.js → esm2020/components/sheet/sheet-tokens.mjs} +0 -0
  380. /package/{esm2015/components/sheet/sheet.js → esm2020/components/sheet/sheet.mjs} +0 -0
  381. /package/{esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js → esm2020/components/sheet/taiga-ui-addon-mobile-components-sheet.mjs} +0 -0
  382. /package/{esm2015/components/sheet-dialog/index.js → esm2020/components/sheet-dialog/index.mjs} +0 -0
  383. /package/{esm2015/components/sheet-dialog/sheet-dialog.options.js → esm2020/components/sheet-dialog/sheet-dialog.options.mjs} +0 -0
  384. /package/{esm2015/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.js → esm2020/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +0 -0
  385. /package/{esm2015/components/tab-bar/index.js → esm2020/components/tab-bar/index.mjs} +0 -0
  386. /package/{esm2015/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.js → esm2020/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.mjs} +0 -0
  387. /package/{esm2015/components/taiga-ui-addon-mobile-components.js → esm2020/components/taiga-ui-addon-mobile-components.mjs} +0 -0
  388. /package/{esm2015/components/theme-android/index.js → esm2020/components/theme-android/index.mjs} +0 -0
  389. /package/{esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js → esm2020/components/theme-android/taiga-ui-addon-mobile-components-theme-android.mjs} +0 -0
  390. /package/{esm2015/components/theme-ios/index.js → esm2020/components/theme-ios/index.mjs} +0 -0
  391. /package/{esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js → esm2020/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.mjs} +0 -0
  392. /package/{esm2015/const/index.js → esm2020/const/index.mjs} +0 -0
  393. /package/{esm2015/const/taiga-ui-addon-mobile-const.js → esm2020/const/taiga-ui-addon-mobile-const.mjs} +0 -0
  394. /package/{esm2015/directives/elastic-sticky/index.js → esm2020/directives/elastic-sticky/index.mjs} +0 -0
  395. /package/{esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js → esm2020/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +0 -0
  396. /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
  397. /package/{esm2015/directives/mobile-tabs/index.js → esm2020/directives/mobile-tabs/index.mjs} +0 -0
  398. /package/{esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js → esm2020/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.mjs} +0 -0
  399. /package/{esm2015/directives/ripple/index.js → esm2020/directives/ripple/index.mjs} +0 -0
  400. /package/{esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js → esm2020/directives/ripple/taiga-ui-addon-mobile-directives-ripple.mjs} +0 -0
  401. /package/{esm2015/directives/sidebar/index.js → esm2020/directives/sidebar/index.mjs} +0 -0
  402. /package/{esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js → esm2020/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.mjs} +0 -0
  403. /package/{esm2015/directives/taiga-ui-addon-mobile-directives.js → esm2020/directives/taiga-ui-addon-mobile-directives.mjs} +0 -0
  404. /package/{esm2015/directives/touchable/index.js → esm2020/directives/touchable/index.mjs} +0 -0
  405. /package/{esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js → esm2020/directives/touchable/taiga-ui-addon-mobile-directives-touchable.mjs} +0 -0
  406. /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  407. /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
  408. /package/{esm2015/interfaces/mobile-alert-data.js → esm2020/interfaces/mobile-alert-data.mjs} +0 -0
  409. /package/{esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js → esm2020/interfaces/taiga-ui-addon-mobile-interfaces.mjs} +0 -0
  410. /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
  411. /package/{esm2015/internal/primitive-calendar-mobile/index.js → esm2020/internal/primitive-calendar-mobile/index.mjs} +0 -0
  412. /package/{esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → esm2020/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +0 -0
  413. /package/{esm2015/internal/taiga-ui-addon-mobile-internal.js → esm2020/internal/taiga-ui-addon-mobile-internal.mjs} +0 -0
  414. /package/{esm2015/taiga-ui-addon-mobile.js → esm2020/taiga-ui-addon-mobile.mjs} +0 -0
  415. /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
  416. /package/{esm2015/types/taiga-ui-addon-mobile-types.js → esm2020/types/taiga-ui-addon-mobile-types.mjs} +0 -0
  417. /package/{esm2015/types/touch-mode.js → esm2020/types/touch-mode.mjs} +0 -0
  418. /package/{esm2015/utils/find-touch-index.js → esm2020/utils/find-touch-index.mjs} +0 -0
  419. /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
  420. /package/{esm2015/utils/taiga-ui-addon-mobile-utils.js → esm2020/utils/taiga-ui-addon-mobile-utils.mjs} +0 -0
@@ -1,929 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(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/internal/primitive-calendar-mobile'), require('@taiga-ui/addon-mobile/directives/ripple'), require('@taiga-ui/addon-mobile/directives/touchable')) :
3
- typeof define === 'function' && 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/internal/primitive-calendar-mobile', '@taiga-ui/addon-mobile/directives/ripple', '@taiga-ui/addon-mobile/directives/touchable'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = global["taiga-ui"]["addon-mobile"] || {}, global["taiga-ui"]["addon-mobile"].components = global["taiga-ui"]["addon-mobile"].components || {}, global["taiga-ui"]["addon-mobile"].components["mobile-calendar"] = {}), global.ng.common, global.ng.core, global.i7, global.i1, global.kit, global.rxjs, global.rxjs.operators, global.ng.cdk.scrolling, global["taiga-ui"]["addon-mobile"].internal["primitive-calendar-mobile"], global["taiga-ui"]["addon-mobile"].directives.ripple, global["taiga-ui"]["addon-mobile"].directives.touchable));
5
- })(this, (function (exports, i6, i0, i7, i1, kit, i8, operators, i2, i3, i4, i5) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
33
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
34
-
35
- function getCycle(options) {
36
- return Array.from({ length: options.yearCycle }, function (_, i) { return Array.from({ length: i7.MONTHS_IN_YEAR }, function (_, month) { return options.label +
37
- weekCount({ year: i, month: month, startingYear: options.startingYear }) *
38
- options.week; }); });
39
- }
40
- function weekCount(options) {
41
- var firstOfMonth = new Date(options.year + options.startingYear, options.month, 1);
42
- var lastOfMonth = new Date(options.year + options.startingYear, options.month + 1, 0);
43
- var days = lastOfMonth.getDate() + (firstOfMonth.getDay() || 7) - 1;
44
- return Math.ceil(days / 7);
45
- }
46
- var SCROLL_DEBOUNCE_TIME = 80;
47
- var YEARS_IN_ROW = 5;
48
- var STARTING_YEAR = 1900;
49
- var RANGE = 196;
50
- var BUFFER = 500;
51
- var ANDROID_LABEL = 64;
52
- var ANDROID_WEEK = 48;
53
- var IOS_LABEL = 50;
54
- var IOS_WEEK = 50;
55
- var YEARLY_CYCLE = 28;
56
- var ANDROID_CYCLE = getCycle({
57
- label: ANDROID_LABEL,
58
- week: ANDROID_WEEK,
59
- yearCycle: YEARLY_CYCLE,
60
- startingYear: STARTING_YEAR,
61
- });
62
- var IOS_CYCLE = getCycle({
63
- label: IOS_LABEL,
64
- week: IOS_WEEK,
65
- yearCycle: YEARLY_CYCLE,
66
- startingYear: STARTING_YEAR,
67
- });
68
-
69
- /*! *****************************************************************************
70
- Copyright (c) Microsoft Corporation.
71
-
72
- Permission to use, copy, modify, and/or distribute this software for any
73
- purpose with or without fee is hereby granted.
74
-
75
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
76
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
77
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
78
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
79
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
80
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
81
- PERFORMANCE OF THIS SOFTWARE.
82
- ***************************************************************************** */
83
- /* global Reflect, Promise */
84
- var extendStatics = function (d, b) {
85
- extendStatics = Object.setPrototypeOf ||
86
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
87
- function (d, b) { for (var p in b)
88
- if (Object.prototype.hasOwnProperty.call(b, p))
89
- d[p] = b[p]; };
90
- return extendStatics(d, b);
91
- };
92
- function __extends(d, b) {
93
- if (typeof b !== "function" && b !== null)
94
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
95
- extendStatics(d, b);
96
- function __() { this.constructor = d; }
97
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
98
- }
99
- var __assign = function () {
100
- __assign = Object.assign || function __assign(t) {
101
- for (var s, i = 1, n = arguments.length; i < n; i++) {
102
- s = arguments[i];
103
- for (var p in s)
104
- if (Object.prototype.hasOwnProperty.call(s, p))
105
- t[p] = s[p];
106
- }
107
- return t;
108
- };
109
- return __assign.apply(this, arguments);
110
- };
111
- function __rest(s, e) {
112
- var t = {};
113
- for (var p in s)
114
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
115
- t[p] = s[p];
116
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
117
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
118
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
119
- t[p[i]] = s[p[i]];
120
- }
121
- return t;
122
- }
123
- function __decorate(decorators, target, key, desc) {
124
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
125
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
126
- r = Reflect.decorate(decorators, target, key, desc);
127
- else
128
- for (var i = decorators.length - 1; i >= 0; i--)
129
- if (d = decorators[i])
130
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
131
- return c > 3 && r && Object.defineProperty(target, key, r), r;
132
- }
133
- function __param(paramIndex, decorator) {
134
- return function (target, key) { decorator(target, key, paramIndex); };
135
- }
136
- function __metadata(metadataKey, metadataValue) {
137
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
138
- return Reflect.metadata(metadataKey, metadataValue);
139
- }
140
- function __awaiter(thisArg, _arguments, P, generator) {
141
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
142
- return new (P || (P = Promise))(function (resolve, reject) {
143
- function fulfilled(value) { try {
144
- step(generator.next(value));
145
- }
146
- catch (e) {
147
- reject(e);
148
- } }
149
- function rejected(value) { try {
150
- step(generator["throw"](value));
151
- }
152
- catch (e) {
153
- reject(e);
154
- } }
155
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
156
- step((generator = generator.apply(thisArg, _arguments || [])).next());
157
- });
158
- }
159
- function __generator(thisArg, body) {
160
- var _ = { label: 0, sent: function () { if (t[0] & 1)
161
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
162
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
163
- function verb(n) { return function (v) { return step([n, v]); }; }
164
- function step(op) {
165
- if (f)
166
- throw new TypeError("Generator is already executing.");
167
- while (_)
168
- try {
169
- 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)
170
- return t;
171
- if (y = 0, t)
172
- op = [op[0] & 2, t.value];
173
- switch (op[0]) {
174
- case 0:
175
- case 1:
176
- t = op;
177
- break;
178
- case 4:
179
- _.label++;
180
- return { value: op[1], done: false };
181
- case 5:
182
- _.label++;
183
- y = op[1];
184
- op = [0];
185
- continue;
186
- case 7:
187
- op = _.ops.pop();
188
- _.trys.pop();
189
- continue;
190
- default:
191
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
192
- _ = 0;
193
- continue;
194
- }
195
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
196
- _.label = op[1];
197
- break;
198
- }
199
- if (op[0] === 6 && _.label < t[1]) {
200
- _.label = t[1];
201
- t = op;
202
- break;
203
- }
204
- if (t && _.label < t[2]) {
205
- _.label = t[2];
206
- _.ops.push(op);
207
- break;
208
- }
209
- if (t[2])
210
- _.ops.pop();
211
- _.trys.pop();
212
- continue;
213
- }
214
- op = body.call(thisArg, _);
215
- }
216
- catch (e) {
217
- op = [6, e];
218
- y = 0;
219
- }
220
- finally {
221
- f = t = 0;
222
- }
223
- if (op[0] & 5)
224
- throw op[1];
225
- return { value: op[0] ? op[1] : void 0, done: true };
226
- }
227
- }
228
- var __createBinding = Object.create ? (function (o, m, k, k2) {
229
- if (k2 === undefined)
230
- k2 = k;
231
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
232
- }) : (function (o, m, k, k2) {
233
- if (k2 === undefined)
234
- k2 = k;
235
- o[k2] = m[k];
236
- });
237
- function __exportStar(m, o) {
238
- for (var p in m)
239
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
240
- __createBinding(o, m, p);
241
- }
242
- function __values(o) {
243
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
244
- if (m)
245
- return m.call(o);
246
- if (o && typeof o.length === "number")
247
- return {
248
- next: function () {
249
- if (o && i >= o.length)
250
- o = void 0;
251
- return { value: o && o[i++], done: !o };
252
- }
253
- };
254
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
255
- }
256
- function __read(o, n) {
257
- var m = typeof Symbol === "function" && o[Symbol.iterator];
258
- if (!m)
259
- return o;
260
- var i = m.call(o), r, ar = [], e;
261
- try {
262
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
263
- ar.push(r.value);
264
- }
265
- catch (error) {
266
- e = { error: error };
267
- }
268
- finally {
269
- try {
270
- if (r && !r.done && (m = i["return"]))
271
- m.call(i);
272
- }
273
- finally {
274
- if (e)
275
- throw e.error;
276
- }
277
- }
278
- return ar;
279
- }
280
- /** @deprecated */
281
- function __spread() {
282
- for (var ar = [], i = 0; i < arguments.length; i++)
283
- ar = ar.concat(__read(arguments[i]));
284
- return ar;
285
- }
286
- /** @deprecated */
287
- function __spreadArrays() {
288
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
289
- s += arguments[i].length;
290
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
291
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
292
- r[k] = a[j];
293
- return r;
294
- }
295
- function __spreadArray(to, from, pack) {
296
- if (pack || arguments.length === 2)
297
- for (var i = 0, l = from.length, ar; i < l; i++) {
298
- if (ar || !(i in from)) {
299
- if (!ar)
300
- ar = Array.prototype.slice.call(from, 0, i);
301
- ar[i] = from[i];
302
- }
303
- }
304
- return to.concat(ar || from);
305
- }
306
- function __await(v) {
307
- return this instanceof __await ? (this.v = v, this) : new __await(v);
308
- }
309
- function __asyncGenerator(thisArg, _arguments, generator) {
310
- if (!Symbol.asyncIterator)
311
- throw new TypeError("Symbol.asyncIterator is not defined.");
312
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
313
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
314
- function verb(n) { if (g[n])
315
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
316
- function resume(n, v) { try {
317
- step(g[n](v));
318
- }
319
- catch (e) {
320
- settle(q[0][3], e);
321
- } }
322
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
323
- function fulfill(value) { resume("next", value); }
324
- function reject(value) { resume("throw", value); }
325
- function settle(f, v) { if (f(v), q.shift(), q.length)
326
- resume(q[0][0], q[0][1]); }
327
- }
328
- function __asyncDelegator(o) {
329
- var i, p;
330
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
331
- 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; }
332
- }
333
- function __asyncValues(o) {
334
- if (!Symbol.asyncIterator)
335
- throw new TypeError("Symbol.asyncIterator is not defined.");
336
- var m = o[Symbol.asyncIterator], i;
337
- 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);
338
- 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); }); }; }
339
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
340
- }
341
- function __makeTemplateObject(cooked, raw) {
342
- if (Object.defineProperty) {
343
- Object.defineProperty(cooked, "raw", { value: raw });
344
- }
345
- else {
346
- cooked.raw = raw;
347
- }
348
- return cooked;
349
- }
350
- ;
351
- var __setModuleDefault = Object.create ? (function (o, v) {
352
- Object.defineProperty(o, "default", { enumerable: true, value: v });
353
- }) : function (o, v) {
354
- o["default"] = v;
355
- };
356
- function __importStar(mod) {
357
- if (mod && mod.__esModule)
358
- return mod;
359
- var result = {};
360
- if (mod != null)
361
- for (var k in mod)
362
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
363
- __createBinding(result, mod, k);
364
- __setModuleDefault(result, mod);
365
- return result;
366
- }
367
- function __importDefault(mod) {
368
- return (mod && mod.__esModule) ? mod : { default: mod };
369
- }
370
- function __classPrivateFieldGet(receiver, state, kind, f) {
371
- if (kind === "a" && !f)
372
- throw new TypeError("Private accessor was defined without a getter");
373
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
374
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
375
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
376
- }
377
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
378
- if (kind === "m")
379
- throw new TypeError("Private method is not writable");
380
- if (kind === "a" && !f)
381
- throw new TypeError("Private accessor was defined without a setter");
382
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
383
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
384
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
385
- }
386
-
387
- var ANDROID_CYCLE_HEIGHT = reduceCycle(ANDROID_CYCLE);
388
- var IOS_CYCLE_HEIGHT = reduceCycle(IOS_CYCLE);
389
- function reduceCycle(cycle, lastYear, lastMonth) {
390
- if (lastYear === void 0) { lastYear = 28; }
391
- if (lastMonth === void 0) { lastMonth = 12; }
392
- return cycle.reduce(function (total, year, yearIndex) { return yearIndex <= lastYear
393
- ? total +
394
- year.reduce(function (sum, month, monthIndex) { return yearIndex < lastYear ||
395
- (yearIndex === lastYear && monthIndex < lastMonth)
396
- ? sum + month
397
- : sum; }, 0)
398
- : total; }, 0);
399
- }
400
- /**
401
- * This scroll strategy is hard wired with styles for iOS and Android.
402
- * It is dependent on month height on those platforms and is designed to
403
- * work for {@link TuiMobileCalendarComponent} with years 1906 to 2102
404
- */
405
- var TuiMobileCalendarStrategy = /** @class */ (function () {
406
- function TuiMobileCalendarStrategy(isIos, scrollService) {
407
- this.isIos = isIos;
408
- this.scrollService = scrollService;
409
- this.index$ = new i8.Subject();
410
- this.viewport = null;
411
- this.destroy$ = new i8.Subject();
412
- }
413
- Object.defineProperty(TuiMobileCalendarStrategy.prototype, "scrolledIndexChange", {
414
- get: function () {
415
- return this.index$.pipe(operators.distinctUntilChanged());
416
- },
417
- enumerable: false,
418
- configurable: true
419
- });
420
- TuiMobileCalendarStrategy.prototype.attach = function (viewport) {
421
- var cycle = this.isIos ? IOS_CYCLE_HEIGHT : ANDROID_CYCLE_HEIGHT;
422
- this.viewport = viewport;
423
- this.viewport.setTotalContentSize(cycle * 7);
424
- this.updateRenderedRange(this.viewport);
425
- };
426
- TuiMobileCalendarStrategy.prototype.detach = function () {
427
- this.index$.complete();
428
- this.viewport = null;
429
- this.destroy$.next();
430
- this.destroy$.complete();
431
- };
432
- TuiMobileCalendarStrategy.prototype.onContentScrolled = function () {
433
- if (this.viewport) {
434
- this.updateRenderedRange(this.viewport);
435
- }
436
- };
437
- /** These do not matter for this case */
438
- TuiMobileCalendarStrategy.prototype.onDataLengthChanged = function () { };
439
- TuiMobileCalendarStrategy.prototype.onContentRendered = function () { };
440
- TuiMobileCalendarStrategy.prototype.onRenderedOffsetChanged = function () { };
441
- TuiMobileCalendarStrategy.prototype.scrollToIndex = function (index, behavior) {
442
- if (!this.viewport) {
443
- return;
444
- }
445
- var scrollTop = this.getOffsetForIndex(index);
446
- if (behavior !== "smooth") {
447
- this.viewport.scrollToOffset(scrollTop, behavior);
448
- return;
449
- }
450
- this.scrollService
451
- .scroll$(this.viewport.elementRef.nativeElement, scrollTop)
452
- .pipe(operators.takeUntil(this.destroy$))
453
- .subscribe();
454
- };
455
- TuiMobileCalendarStrategy.prototype.getOffsetForIndex = function (index) {
456
- var month = index % i7.MONTHS_IN_YEAR;
457
- var year = (index - month) / i7.MONTHS_IN_YEAR;
458
- return this.computeHeight(year, month);
459
- };
460
- TuiMobileCalendarStrategy.prototype.getIndexForOffset = function (offset) {
461
- var cycle = this.isIos ? IOS_CYCLE : ANDROID_CYCLE;
462
- var cycleHeight = this.isIos ? IOS_CYCLE_HEIGHT : ANDROID_CYCLE_HEIGHT;
463
- var remainder = offset % cycleHeight;
464
- var years = ((offset - remainder) / cycleHeight) * YEARLY_CYCLE;
465
- var accumulator = 0;
466
- for (var year = 0; year < cycle.length; year++) {
467
- for (var month = 0; month < cycle[year].length; month++) {
468
- accumulator += cycle[year][month];
469
- if (accumulator - cycle[year][month] / 2 > remainder) {
470
- return Math.max((years + year) * i7.MONTHS_IN_YEAR + month, 0);
471
- }
472
- }
473
- }
474
- return RANGE;
475
- };
476
- TuiMobileCalendarStrategy.prototype.computeHeight = function (year, month) {
477
- var cycle = this.isIos ? IOS_CYCLE : ANDROID_CYCLE;
478
- var remainder = year % YEARLY_CYCLE;
479
- var remainderHeight = reduceCycle(cycle, remainder, month);
480
- var fullCycles = (year - remainder) / YEARLY_CYCLE;
481
- var fullCyclesHeight = this.isIos
482
- ? fullCycles * IOS_CYCLE_HEIGHT
483
- : fullCycles * ANDROID_CYCLE_HEIGHT;
484
- return fullCyclesHeight + remainderHeight;
485
- };
486
- TuiMobileCalendarStrategy.prototype.updateRenderedRange = function (viewport) {
487
- var offset = viewport.measureScrollOffset();
488
- var _a = viewport.getRenderedRange(), start = _a.start, end = _a.end;
489
- var viewportSize = viewport.getViewportSize();
490
- var dataLength = viewport.getDataLength();
491
- var newRange = { start: start, end: end };
492
- var firstVisibleIndex = this.getIndexForOffset(offset);
493
- var startBuffer = offset - this.getOffsetForIndex(start);
494
- if (startBuffer < BUFFER && start !== 0) {
495
- newRange.start = Math.max(0, this.getIndexForOffset(offset - BUFFER * 2));
496
- newRange.end = Math.min(dataLength, this.getIndexForOffset(offset + viewportSize + BUFFER));
497
- }
498
- else {
499
- var endBuffer = this.getOffsetForIndex(end) - offset - viewportSize;
500
- if (endBuffer < BUFFER && end !== dataLength) {
501
- newRange.start = Math.max(0, this.getIndexForOffset(offset - BUFFER));
502
- newRange.end = Math.min(dataLength, this.getIndexForOffset(offset + viewportSize + BUFFER * 2));
503
- }
504
- }
505
- viewport.setRenderedRange(newRange);
506
- viewport.setRenderedContentOffset(this.getOffsetForIndex(newRange.start));
507
- this.index$.next(firstVisibleIndex);
508
- };
509
- return TuiMobileCalendarStrategy;
510
- }());
511
- __decorate([
512
- i7.tuiPure
513
- ], TuiMobileCalendarStrategy.prototype, "scrolledIndexChange", null);
514
-
515
- /**
516
- * Stream for updating value
517
- */
518
- var TUI_VALUE_STREAM = new i0.InjectionToken("[TUI_VALUE_STREAM]");
519
- var TUI_MOBILE_CALENDAR_PROVIDERS = [
520
- i7.TuiDestroyService,
521
- i7.TuiScrollService,
522
- {
523
- provide: i2.VIRTUAL_SCROLL_STRATEGY,
524
- deps: [i7.TUI_IS_IOS, i7.TuiScrollService],
525
- useClass: TuiMobileCalendarStrategy,
526
- },
527
- {
528
- provide: TUI_VALUE_STREAM,
529
- deps: [
530
- [new i0.Optional(), kit.TUI_CALENDAR_DATE_STREAM],
531
- i7.TuiDestroyService,
532
- i0.ChangeDetectorRef,
533
- ],
534
- useFactory: function (value$, destroy$, cdr) { return (value$ || i8.EMPTY).pipe(i7.tuiWatch(cdr), operators.takeUntil(destroy$)); },
535
- },
536
- ];
537
-
538
- var TuiMobileCalendarComponent = /** @class */ (function () {
539
- function TuiMobileCalendarComponent(isIOS, isE2E, doc, destroy$, valueChanges, icons, closeWord$, cancelWord$, doneWord$, unorderedWeekDays$, chooseDayOrRangeTexts$, duration, ngZone) {
540
- var _this = this;
541
- this.isIOS = isIOS;
542
- this.isE2E = isE2E;
543
- this.doc = doc;
544
- this.destroy$ = destroy$;
545
- this.icons = icons;
546
- this.closeWord$ = closeWord$;
547
- this.cancelWord$ = cancelWord$;
548
- this.doneWord$ = doneWord$;
549
- this.unorderedWeekDays$ = unorderedWeekDays$;
550
- this.chooseDayOrRangeTexts$ = chooseDayOrRangeTexts$;
551
- this.duration = duration;
552
- this.ngZone = ngZone;
553
- this.today = i7.TuiDay.currentLocal();
554
- this.activeYear = 0;
555
- this.activeMonth = 0;
556
- this.single = true;
557
- this.multi = false;
558
- this.min = i7.TUI_FIRST_DAY;
559
- this.max = i7.TUI_LAST_DAY;
560
- this.disabledItemHandler = i7.ALWAYS_FALSE_HANDLER;
561
- this.cancel = new i0.EventEmitter();
562
- this.confirm = new i0.EventEmitter();
563
- this.value = null;
564
- this.years = Array.from({ length: RANGE }, function (_, i) { return i + STARTING_YEAR; });
565
- this.months = Array.from({ length: RANGE * 12 }, function (_, i) { return new i7.TuiMonth(Math.floor(i / i7.MONTHS_IN_YEAR) + STARTING_YEAR, i % i7.MONTHS_IN_YEAR); });
566
- this.disabledItemHandlerMapper = function (disabledItemHandler, min, max) { return function (item) { return item.dayBefore(min) ||
567
- (max !== null && item.dayAfter(max)) ||
568
- disabledItemHandler(item); }; };
569
- valueChanges.pipe(operators.takeUntil(this.destroy$)).subscribe(function (value) {
570
- _this.value = value;
571
- });
572
- }
573
- Object.defineProperty(TuiMobileCalendarComponent.prototype, "yearWidth", {
574
- get: function () {
575
- return this.doc.documentElement.clientWidth / YEARS_IN_ROW;
576
- },
577
- enumerable: false,
578
- configurable: true
579
- });
580
- TuiMobileCalendarComponent.prototype.ngAfterViewInit = function () {
581
- this.activeYear = this.initialYear;
582
- this.activeMonth = this.initialMonth;
583
- // Virtual scroll has not yet rendered items even in ngAfterViewInit
584
- this.waitScrolledChange();
585
- };
586
- TuiMobileCalendarComponent.prototype.onClose = function () {
587
- this.cancel.emit();
588
- };
589
- TuiMobileCalendarComponent.prototype.onConfirm = function () {
590
- if (this.value) {
591
- this.confirm.emit(this.value);
592
- }
593
- else {
594
- this.cancel.emit();
595
- }
596
- };
597
- TuiMobileCalendarComponent.prototype.onDayClick = function (day) {
598
- if (this.single) {
599
- this.value = day;
600
- }
601
- else if (this.isMultiValue(this.value)) {
602
- this.value = kit.tuiImmutableUpdateInputDateMulti(this.value, day);
603
- }
604
- else if (this.isSingleValue(this.value)) {
605
- this.value = new i7.TuiDayRange(day, day);
606
- }
607
- else if (this.value instanceof i7.TuiDayRange) {
608
- this.value = i7.TuiDayRange.sort(this.value.from, day);
609
- }
610
- else if (!this.value) {
611
- this.value = new i7.TuiDayRange(day, day);
612
- }
613
- };
614
- TuiMobileCalendarComponent.prototype.getState = function (index) {
615
- if (this.isYearActive(index)) {
616
- return 'active';
617
- }
618
- if (this.isYearActive(index - 1) || this.isYearActive(index + 1)) {
619
- return 'adjacent';
620
- }
621
- return null;
622
- };
623
- TuiMobileCalendarComponent.prototype.onMonthChange = function (month) {
624
- // Skipping initial callback where index === 0
625
- if (!month || this.activeMonth === month) {
626
- return;
627
- }
628
- this.activeMonth = month;
629
- var activeYear = this.monthToYear(month);
630
- if (activeYear === this.activeYear) {
631
- return;
632
- }
633
- this.activeYear = activeYear;
634
- this.scrollToActiveYear();
635
- };
636
- TuiMobileCalendarComponent.prototype.setYear = function (year) {
637
- var _this = this;
638
- if (this.activeYear === year) {
639
- return;
640
- }
641
- this.activeMonth += this.getMonthOffset(year);
642
- this.activeYear = year;
643
- this.scrollToActiveYear('smooth');
644
- this.ngZone.runOutsideAngular(function () {
645
- // Delay is required to run months scroll in the next frame to prevent flicker
646
- setTimeout(function () { return _this.scrollToActiveMonth(); });
647
- });
648
- };
649
- TuiMobileCalendarComponent.prototype.isMultiValue = function (day) {
650
- return !(day instanceof i7.TuiDay) && !(day instanceof i7.TuiDayRange) && this.multi;
651
- };
652
- TuiMobileCalendarComponent.prototype.isSingleValue = function (day) {
653
- return day instanceof i7.TuiDay || (day instanceof i7.TuiDayRange && !day.isSingleDay);
654
- };
655
- Object.defineProperty(TuiMobileCalendarComponent.prototype, "initialYear", {
656
- get: function () {
657
- var _a, _b, _c;
658
- if (!this.value) {
659
- return this.today.year;
660
- }
661
- if (this.value instanceof i7.TuiDay) {
662
- return this.value.year;
663
- }
664
- if (!(this.value instanceof i7.TuiDayRange)) {
665
- return (_c = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.year) !== null && _c !== void 0 ? _c : this.today.year;
666
- }
667
- return this.value.from.year;
668
- },
669
- enumerable: false,
670
- configurable: true
671
- });
672
- Object.defineProperty(TuiMobileCalendarComponent.prototype, "initialMonth", {
673
- get: function () {
674
- var _a, _b, _c, _d, _e, _f;
675
- if (!this.value) {
676
- return this.today.month + (this.today.year - STARTING_YEAR) * i7.MONTHS_IN_YEAR;
677
- }
678
- if (this.value instanceof i7.TuiDay) {
679
- return this.value.month + (this.value.year - STARTING_YEAR) * i7.MONTHS_IN_YEAR;
680
- }
681
- if (!(this.value instanceof i7.TuiDayRange)) {
682
- return (((_c = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.month) !== null && _c !== void 0 ? _c : this.today.month) +
683
- (((_f = (_e = (_d = this.value) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.year) !== null && _f !== void 0 ? _f : this.today.year) - STARTING_YEAR) *
684
- i7.MONTHS_IN_YEAR);
685
- }
686
- return (this.value.from.month +
687
- (this.value.from.year - STARTING_YEAR) * i7.MONTHS_IN_YEAR);
688
- },
689
- enumerable: false,
690
- configurable: true
691
- });
692
- TuiMobileCalendarComponent.prototype.getYearsViewportSize = function () {
693
- var _a;
694
- return ((_a = this.yearsScrollRef) === null || _a === void 0 ? void 0 : _a.getViewportSize()) || 0;
695
- };
696
- TuiMobileCalendarComponent.prototype.updateViewportDimension = function () {
697
- var _a, _b;
698
- (_a = this.yearsScrollRef) === null || _a === void 0 ? void 0 : _a.checkViewportSize();
699
- (_b = this.monthsScrollRef) === null || _b === void 0 ? void 0 : _b.checkViewportSize();
700
- };
701
- TuiMobileCalendarComponent.prototype.lateInit = function () {
702
- return this.getYearsViewportSize() > 0 ? i8.identity : operators.delay(200);
703
- };
704
- TuiMobileCalendarComponent.prototype.waitScrolledChange = function () {
705
- var _this = this;
706
- var _a;
707
- this.updateViewportDimension();
708
- (_a = this.monthsScrollRef) === null || _a === void 0 ? void 0 : _a.scrolledIndexChange.pipe(operators.delay(this.duration), this.lateInit(), operators.take(1), operators.takeUntil(this.destroy$)).subscribe(function () {
709
- _this.updateViewportDimension();
710
- _this.initYearScroll();
711
- _this.initMonthScroll();
712
- _this.scrollToActiveYear();
713
- _this.scrollToActiveMonth();
714
- });
715
- };
716
- TuiMobileCalendarComponent.prototype.initYearScroll = function () {
717
- var _this = this;
718
- var yearsScrollRef = this.yearsScrollRef;
719
- if (!yearsScrollRef) {
720
- return;
721
- }
722
- var touchstart$ = i7.tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'touchstart', { passive: true });
723
- var touchend$ = i7.tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'touchend', { passive: true });
724
- var click$ = i7.tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'click');
725
- // Refresh activeYear
726
- yearsScrollRef
727
- .elementScrolled()
728
- .pipe(
729
- // Ignore smooth scroll resulting from click on the exact year
730
- operators.windowToggle(touchstart$, function () { return click$; }), operators.mergeMap(function (x) { return x; }),
731
- // Delay is required to run months scroll in the next frame to prevent flicker
732
- operators.delay(0), operators.map(function () { return Math.round(yearsScrollRef.measureScrollOffset() / _this.yearWidth) +
733
- Math.floor(YEARS_IN_ROW / 2) +
734
- STARTING_YEAR; }), operators.filter(function (activeYear) { return activeYear !== _this.activeYear; }), operators.takeUntil(this.destroy$))
735
- .subscribe(function (activeYear) {
736
- _this.activeMonth += _this.getMonthOffset(activeYear);
737
- _this.activeYear = activeYear;
738
- _this.scrollToActiveMonth();
739
- });
740
- // Smooth scroll to activeYear after scrolling is done
741
- touchstart$
742
- .pipe(operators.switchMap(function () { return touchend$; }), operators.switchMap(function () { return i8.race(yearsScrollRef.elementScrolled(), i8.timer(SCROLL_DEBOUNCE_TIME)).pipe(operators.debounceTime(SCROLL_DEBOUNCE_TIME * 2), operators.take(1), operators.takeUntil(touchstart$)); }), operators.takeUntil(this.destroy$))
743
- .subscribe(function () { return _this.scrollToActiveYear('smooth'); });
744
- };
745
- TuiMobileCalendarComponent.prototype.initMonthScroll = function () {
746
- var _this = this;
747
- var monthsScrollRef = this.monthsScrollRef;
748
- if (!monthsScrollRef) {
749
- return;
750
- }
751
- var touchstart$ = i7.tuiTypedFromEvent(monthsScrollRef.elementRef.nativeElement, 'touchstart', { passive: true });
752
- var touchend$ = i7.tuiTypedFromEvent(monthsScrollRef.elementRef.nativeElement, 'touchend', { passive: true });
753
- // Smooth scroll to the closest month after scrolling is done
754
- touchstart$
755
- .pipe(operators.switchMap(function () { return touchend$; }), operators.switchMap(function () { return i8.race(monthsScrollRef.elementScrolled(), i8.timer(SCROLL_DEBOUNCE_TIME)).pipe(operators.debounceTime(SCROLL_DEBOUNCE_TIME * 2), operators.take(1), operators.takeUntil(touchstart$)); }), operators.takeUntil(this.destroy$))
756
- .subscribe(function () { return _this.scrollToActiveMonth('smooth'); });
757
- };
758
- TuiMobileCalendarComponent.prototype.scrollToActiveYear = function (behavior) {
759
- if (behavior === void 0) { behavior = 'auto'; }
760
- var _a;
761
- (_a = this.yearsScrollRef) === null || _a === void 0 ? void 0 : _a.scrollToIndex(Math.max(this.activeYear - STARTING_YEAR - 2, 0), this.isE2E ? 'auto' : behavior);
762
- };
763
- TuiMobileCalendarComponent.prototype.scrollToActiveMonth = function (behavior) {
764
- if (behavior === void 0) { behavior = 'auto'; }
765
- var _a;
766
- (_a = this.monthsScrollRef) === null || _a === void 0 ? void 0 : _a.scrollToIndex(this.activeMonth, this.isE2E ? 'auto' : behavior);
767
- };
768
- TuiMobileCalendarComponent.prototype.isYearActive = function (index) {
769
- return index === this.activeYear;
770
- };
771
- TuiMobileCalendarComponent.prototype.monthToYear = function (month) {
772
- return Math.ceil((month + 1) / i7.MONTHS_IN_YEAR) + STARTING_YEAR - 1;
773
- };
774
- TuiMobileCalendarComponent.prototype.getMonthOffset = function (year) {
775
- return (year - this.activeYear) * i7.MONTHS_IN_YEAR;
776
- };
777
- return TuiMobileCalendarComponent;
778
- }());
779
- TuiMobileCalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileCalendarComponent, deps: [{ token: i7.TUI_IS_IOS }, { token: i7.TUI_IS_E2E }, { token: i6.DOCUMENT }, { token: i7.TuiDestroyService, self: true }, { token: TUI_VALUE_STREAM }, { token: i1.TUI_COMMON_ICONS }, { token: i1.TUI_CLOSE_WORD }, { token: kit.TUI_CANCEL_WORD }, { token: kit.TUI_DONE_WORD }, { token: i1.TUI_SHORT_WEEK_DAYS }, { token: kit.TUI_CHOOSE_DAY_OR_RANGE_TEXTS }, { token: i1.TUI_ANIMATIONS_DURATION }, { token: i0.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
780
- TuiMobileCalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMobileCalendarComponent, selector: "tui-mobile-calendar", inputs: { single: "single", multi: "multi", min: "min", max: "max", disabledItemHandler: "disabledItemHandler" }, outputs: { cancel: "cancel", confirm: "confirm" }, host: { properties: { "class._ios": "isIOS" } }, providers: TUI_MOBILE_CALENDAR_PROVIDERS, viewQueries: [{ propertyName: "yearsScrollRef", first: true, predicate: ["yearsScrollRef"], descendants: true }, { propertyName: "monthsScrollRef", first: true, predicate: ["monthsScrollRef"], descendants: true }], ngImport: i0__namespace, template: "<header class=\"t-header\">\n <button\n appearance=\"\"\n automation-id=\"tui-mobile-calendar__cancel\"\n shape=\"rounded\"\n tuiIconButton\n tuiRipple\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{ cancelWord$ | async }}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n automation-id=\"tui-mobile-calendar__label\"\n class=\"t-label\"\n >\n {{ single ? texts?.[0] : multi ? texts?.[2] : texts?.[1] }}\n </h2>\n <button\n automation-id=\"tui-mobile-calendar__confirm\"\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{ doneWord$ | async }}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n orientation=\"horizontal\"\n class=\"t-years\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n type=\"button\"\n class=\"t-year\"\n [attr.data-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{ index }}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div\n *ngFor=\"let day of unorderedWeekDays$ | tuiOrderWeekDays | async\"\n class=\"t-day\"\n >\n {{ day }}\n </div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{ month | tuiMonth | async }}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper : min : max\"\n [month]=\"month\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n", styles: [":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--tui-text-01);-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:var(--tui-link)}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-label+.t-link{padding-left:1rem}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:var(--tui-base-01);box-shadow:0 .5px var(--tui-base-03)}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;outline:none;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-state=active]{color:var(--tui-link);opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:var(--tui-text-02)}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px var(--tui-base-03);overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { type: i1__namespace.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }, { type: i2__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { type: i3__namespace.TuiPrimitiveCalendarMobileComponent, selector: "tui-primitive-calendar-mobile" }], directives: [{ type: i4__namespace.TuiRippleDirective, selector: "[tuiRipple]", inputs: ["tuiRipple"] }, { type: i5__namespace.TuiTouchableDirective, selector: "[tuiTouchable]", inputs: ["tuiTouchable"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: i2__namespace.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i6__namespace.AsyncPipe, "tuiOrderWeekDays": i1__namespace.TuiOrderWeekDaysPipe, "tuiMonth": i1__namespace.TuiMonthPipe, "tuiMapper": i7__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
781
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileCalendarComponent, decorators: [{
782
- type: i0.Component,
783
- args: [{
784
- selector: 'tui-mobile-calendar',
785
- templateUrl: './mobile-calendar.template.html',
786
- styleUrls: ['./mobile-calendar.style.less'],
787
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
788
- providers: TUI_MOBILE_CALENDAR_PROVIDERS,
789
- host: { '[class._ios]': 'isIOS' },
790
- }]
791
- }], ctorParameters: function () {
792
- return [{ type: undefined, decorators: [{
793
- type: i0.Inject,
794
- args: [i7.TUI_IS_IOS]
795
- }] }, { type: undefined, decorators: [{
796
- type: i0.Inject,
797
- args: [i7.TUI_IS_E2E]
798
- }] }, { type: Document, decorators: [{
799
- type: i0.Inject,
800
- args: [i6.DOCUMENT]
801
- }] }, { type: i7__namespace.TuiDestroyService, decorators: [{
802
- type: i0.Self
803
- }, {
804
- type: i0.Inject,
805
- args: [i7.TuiDestroyService]
806
- }] }, { type: i8__namespace.Observable, decorators: [{
807
- type: i0.Inject,
808
- args: [TUI_VALUE_STREAM]
809
- }] }, { type: undefined, decorators: [{
810
- type: i0.Inject,
811
- args: [i1.TUI_COMMON_ICONS]
812
- }] }, { type: i8__namespace.Observable, decorators: [{
813
- type: i0.Inject,
814
- args: [i1.TUI_CLOSE_WORD]
815
- }] }, { type: i8__namespace.Observable, decorators: [{
816
- type: i0.Inject,
817
- args: [kit.TUI_CANCEL_WORD]
818
- }] }, { type: i8__namespace.Observable, decorators: [{
819
- type: i0.Inject,
820
- args: [kit.TUI_DONE_WORD]
821
- }] }, { type: undefined, decorators: [{
822
- type: i0.Inject,
823
- args: [i1.TUI_SHORT_WEEK_DAYS]
824
- }] }, { type: i8__namespace.Observable, decorators: [{
825
- type: i0.Inject,
826
- args: [kit.TUI_CHOOSE_DAY_OR_RANGE_TEXTS]
827
- }] }, { type: undefined, decorators: [{
828
- type: i0.Inject,
829
- args: [i1.TUI_ANIMATIONS_DURATION]
830
- }] }, { type: i0__namespace.NgZone, decorators: [{
831
- type: i0.Inject,
832
- args: [i0.NgZone]
833
- }] }];
834
- }, propDecorators: { yearsScrollRef: [{
835
- type: i0.ViewChild,
836
- args: ['yearsScrollRef']
837
- }], monthsScrollRef: [{
838
- type: i0.ViewChild,
839
- args: ['monthsScrollRef']
840
- }], single: [{
841
- type: i0.Input
842
- }], multi: [{
843
- type: i0.Input
844
- }], min: [{
845
- type: i0.Input
846
- }], max: [{
847
- type: i0.Input
848
- }], disabledItemHandler: [{
849
- type: i0.Input
850
- }], cancel: [{
851
- type: i0.Output
852
- }], confirm: [{
853
- type: i0.Output
854
- }] } });
855
-
856
- var TuiMobileCalendarModule = /** @class */ (function () {
857
- function TuiMobileCalendarModule() {
858
- }
859
- return TuiMobileCalendarModule;
860
- }());
861
- TuiMobileCalendarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileCalendarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
862
- TuiMobileCalendarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileCalendarModule, declarations: [TuiMobileCalendarComponent], imports: [i6.CommonModule,
863
- i2.ScrollingModule,
864
- i5.TuiTouchableModule,
865
- i4.TuiRippleModule,
866
- i7.TuiMapperPipeModule,
867
- i1.TuiLinkModule,
868
- i3.TuiPrimitiveCalendarMobileModule,
869
- i1.TuiButtonModule,
870
- i1.TuiMonthPipeModule,
871
- i1.TuiOrderWeekDaysPipeModule], exports: [TuiMobileCalendarComponent] });
872
- TuiMobileCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileCalendarModule, imports: [[
873
- i6.CommonModule,
874
- i2.ScrollingModule,
875
- i5.TuiTouchableModule,
876
- i4.TuiRippleModule,
877
- i7.TuiMapperPipeModule,
878
- i1.TuiLinkModule,
879
- i3.TuiPrimitiveCalendarMobileModule,
880
- i1.TuiButtonModule,
881
- i1.TuiMonthPipeModule,
882
- i1.TuiOrderWeekDaysPipeModule,
883
- ]] });
884
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileCalendarModule, decorators: [{
885
- type: i0.NgModule,
886
- args: [{
887
- imports: [
888
- i6.CommonModule,
889
- i2.ScrollingModule,
890
- i5.TuiTouchableModule,
891
- i4.TuiRippleModule,
892
- i7.TuiMapperPipeModule,
893
- i1.TuiLinkModule,
894
- i3.TuiPrimitiveCalendarMobileModule,
895
- i1.TuiButtonModule,
896
- i1.TuiMonthPipeModule,
897
- i1.TuiOrderWeekDaysPipeModule,
898
- ],
899
- declarations: [TuiMobileCalendarComponent],
900
- exports: [TuiMobileCalendarComponent],
901
- }]
902
- }] });
903
-
904
- /**
905
- * Generated bundle index. Do not edit.
906
- */
907
-
908
- exports.ANDROID_CYCLE = ANDROID_CYCLE;
909
- exports.ANDROID_LABEL = ANDROID_LABEL;
910
- exports.ANDROID_WEEK = ANDROID_WEEK;
911
- exports.BUFFER = BUFFER;
912
- exports.IOS_CYCLE = IOS_CYCLE;
913
- exports.IOS_LABEL = IOS_LABEL;
914
- exports.IOS_WEEK = IOS_WEEK;
915
- exports.RANGE = RANGE;
916
- exports.SCROLL_DEBOUNCE_TIME = SCROLL_DEBOUNCE_TIME;
917
- exports.STARTING_YEAR = STARTING_YEAR;
918
- exports.TUI_MOBILE_CALENDAR_PROVIDERS = TUI_MOBILE_CALENDAR_PROVIDERS;
919
- exports.TUI_VALUE_STREAM = TUI_VALUE_STREAM;
920
- exports.TuiMobileCalendarComponent = TuiMobileCalendarComponent;
921
- exports.TuiMobileCalendarModule = TuiMobileCalendarModule;
922
- exports.TuiMobileCalendarStrategy = TuiMobileCalendarStrategy;
923
- exports.YEARLY_CYCLE = YEARLY_CYCLE;
924
- exports.YEARS_IN_ROW = YEARS_IN_ROW;
925
-
926
- Object.defineProperty(exports, '__esModule', { value: true });
927
-
928
- }));
929
- //# sourceMappingURL=taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map