@taiga-ui/addon-mobile 2.55.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,10 +1,12 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { TemplateRef, Inject, Injector, ComponentFactoryResolver, ChangeDetectorRef, Input, Directive, HostBinding, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, Injector, ComponentFactoryResolver, ChangeDetectorRef, Directive, Inject, Input, Component, ChangeDetectionStrategy, HostBinding, NgModule } from '@angular/core';
3
3
  import { TUI_ANIMATION_OPTIONS, tuiSlideIn } from '@taiga-ui/core';
4
- import { TuiPortalService, TuiActiveZoneModule } from '@taiga-ui/cdk';
4
+ import * as i1 from '@taiga-ui/cdk';
5
+ import { TuiDropdownPortalService, TuiActiveZoneModule } from '@taiga-ui/cdk';
6
+ import * as i2 from '@tinkoff/ng-polymorpheus';
5
7
  import { PolymorpheusTemplate, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
6
8
 
7
- let TuiSidebarDirective = class TuiSidebarDirective extends PolymorpheusTemplate {
9
+ class TuiSidebarDirective extends PolymorpheusTemplate {
8
10
  constructor(content, injector, componentFactoryResolver, portalService, changeDetectorRef) {
9
11
  super(content, changeDetectorRef);
10
12
  this.content = content;
@@ -12,7 +14,7 @@ let TuiSidebarDirective = class TuiSidebarDirective extends PolymorpheusTemplate
12
14
  this.componentFactoryResolver = componentFactoryResolver;
13
15
  this.portalService = portalService;
14
16
  this.sidebarRef = null;
15
- this.direction = 'left';
17
+ this.direction = `left`;
16
18
  this.autoWidth = false;
17
19
  }
18
20
  set tuiSidebar(open) {
@@ -41,44 +43,49 @@ let TuiSidebarDirective = class TuiSidebarDirective extends PolymorpheusTemplate
41
43
  this.portalService.remove(this.sidebarRef);
42
44
  this.sidebarRef = null;
43
45
  }
44
- };
45
- TuiSidebarDirective.ctorParameters = () => [
46
- { type: TemplateRef, decorators: [{ type: Inject, args: [TemplateRef,] }] },
47
- { type: Injector, decorators: [{ type: Inject, args: [Injector,] }] },
48
- { type: ComponentFactoryResolver, decorators: [{ type: Inject, args: [ComponentFactoryResolver,] }] },
49
- { type: TuiPortalService, decorators: [{ type: Inject, args: [TuiPortalService,] }] },
50
- { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] }
51
- ];
52
- __decorate([
53
- Input('tuiSidebarDirection')
54
- ], TuiSidebarDirective.prototype, "direction", void 0);
55
- __decorate([
56
- Input('tuiSidebarAutoWidth')
57
- ], TuiSidebarDirective.prototype, "autoWidth", void 0);
58
- __decorate([
59
- Input()
60
- ], TuiSidebarDirective.prototype, "tuiSidebar", null);
61
- TuiSidebarDirective = __decorate([
62
- Directive({
63
- selector: '[tuiSidebar]',
64
- }),
65
- __param(0, Inject(TemplateRef)),
66
- __param(1, Inject(Injector)),
67
- __param(2, Inject(ComponentFactoryResolver)),
68
- __param(3, Inject(TuiPortalService)),
69
- __param(4, Inject(ChangeDetectorRef))
70
- ], TuiSidebarDirective);
46
+ }
47
+ TuiSidebarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarDirective, deps: [{ token: TemplateRef }, { token: Injector }, { token: ComponentFactoryResolver }, { token: TuiDropdownPortalService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
48
+ TuiSidebarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSidebarDirective, selector: "[tuiSidebar]", inputs: { direction: ["tuiSidebarDirection", "direction"], autoWidth: ["tuiSidebarAutoWidth", "autoWidth"], tuiSidebar: "tuiSidebar" }, usesInheritance: true, ngImport: i0 });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarDirective, decorators: [{
50
+ type: Directive,
51
+ args: [{
52
+ selector: `[tuiSidebar]`,
53
+ }]
54
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
55
+ type: Inject,
56
+ args: [TemplateRef]
57
+ }] }, { type: i0.Injector, decorators: [{
58
+ type: Inject,
59
+ args: [Injector]
60
+ }] }, { type: i0.ComponentFactoryResolver, decorators: [{
61
+ type: Inject,
62
+ args: [ComponentFactoryResolver]
63
+ }] }, { type: i1.TuiDropdownPortalService, decorators: [{
64
+ type: Inject,
65
+ args: [TuiDropdownPortalService]
66
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
67
+ type: Inject,
68
+ args: [ChangeDetectorRef]
69
+ }] }]; }, propDecorators: { direction: [{
70
+ type: Input,
71
+ args: [`tuiSidebarDirection`]
72
+ }], autoWidth: [{
73
+ type: Input,
74
+ args: [`tuiSidebarAutoWidth`]
75
+ }], tuiSidebar: [{
76
+ type: Input
77
+ }] } });
71
78
 
72
79
  // @dynamic
73
- let TuiSidebarComponent = class TuiSidebarComponent {
80
+ class TuiSidebarComponent {
74
81
  constructor(options, directive) {
75
82
  this.options = options;
76
83
  this.directive = directive;
77
- this.left = Object.assign({ value: 'left' }, this.options);
78
- this.right = Object.assign({ value: 'right' }, this.options);
84
+ this.left = Object.assign({ value: `left` }, this.options);
85
+ this.right = Object.assign({ value: `right` }, this.options);
79
86
  }
80
87
  get animation() {
81
- return this.direction === 'left' ? this.left : this.right;
88
+ return this.direction === `left` ? this.left : this.right;
82
89
  }
83
90
  get direction() {
84
91
  return this.directive.direction;
@@ -92,39 +99,46 @@ let TuiSidebarComponent = class TuiSidebarComponent {
92
99
  ngDoCheck() {
93
100
  this.directive.check();
94
101
  }
95
- };
96
- TuiSidebarComponent.ctorParameters = () => [
97
- { type: undefined, decorators: [{ type: Inject, args: [TUI_ANIMATION_OPTIONS,] }] },
98
- { type: TuiSidebarDirective, decorators: [{ type: Inject, args: [TuiSidebarDirective,] }] }
99
- ];
100
- __decorate([
101
- HostBinding('@tuiSlideIn')
102
- ], TuiSidebarComponent.prototype, "animation", null);
103
- __decorate([
104
- HostBinding('class')
105
- ], TuiSidebarComponent.prototype, "direction", null);
106
- TuiSidebarComponent = __decorate([
107
- Component({
108
- selector: 'aside[tuiSidebar]',
109
- template: "<div\n polymorpheus-outlet\n tuiActiveZone\n class=\"t-wrapper\"\n [content]=\"content\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n></div>\n",
110
- changeDetection: ChangeDetectionStrategy.OnPush,
111
- animations: [tuiSlideIn],
112
- styles: [":host{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}:host:after,:host:before{position:absolute;top:0;left:0;width:100%;content:'';height:100%;background:rgba(0,0,0,.38);-webkit-animation:tuiFadeIn var(--tui-duration);animation:tuiFadeIn var(--tui-duration)}:host:before{left:-100%;width:200%}:host:after{left:100%}:host.ng-animating:after,:host.ng-animating:before{opacity:0;transition:opacity var(--tui-duration)}:host.right{justify-content:flex-end}:host.left{justify-content:flex-start}.t-wrapper{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width{width:auto}"]
113
- }),
114
- __param(0, Inject(TUI_ANIMATION_OPTIONS)),
115
- __param(1, Inject(TuiSidebarDirective))
116
- ], TuiSidebarComponent);
102
+ }
103
+ TuiSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarComponent, deps: [{ token: TUI_ANIMATION_OPTIONS }, { token: TuiSidebarDirective }], target: i0.ɵɵFactoryTarget.Component });
104
+ TuiSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSidebarComponent, selector: "aside[tuiSidebar]", host: { properties: { "@tuiSlideIn": "this.animation", "class": "this.direction" } }, ngImport: i0, template: "<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n", styles: [":host{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}:host:before,:host:after{position:absolute;top:0;left:0;width:100%;content:\"\";height:100%;background:rgba(0,0,0,.38);-webkit-animation:tuiFadeIn var(--tui-duration);animation:tuiFadeIn var(--tui-duration)}:host:before{left:-100%;width:200%}:host:after{left:100%}:host.ng-animating:before,:host.ng-animating:after{opacity:0;transition:opacity var(--tui-duration)}:host.right{justify-content:flex-end}:host.left{justify-content:flex-start}.t-wrapper{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width{width:auto}\n"], directives: [{ type: i1.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [tuiSlideIn], changeDetection: i0.ChangeDetectionStrategy.OnPush });
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarComponent, decorators: [{
106
+ type: Component,
107
+ args: [{
108
+ selector: `aside[tuiSidebar]`,
109
+ templateUrl: `./sidebar.template.html`,
110
+ styleUrls: [`./sidebar.style.less`],
111
+ changeDetection: ChangeDetectionStrategy.OnPush,
112
+ animations: [tuiSlideIn],
113
+ }]
114
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
115
+ type: Inject,
116
+ args: [TUI_ANIMATION_OPTIONS]
117
+ }] }, { type: TuiSidebarDirective, decorators: [{
118
+ type: Inject,
119
+ args: [TuiSidebarDirective]
120
+ }] }]; }, propDecorators: { animation: [{
121
+ type: HostBinding,
122
+ args: [`@tuiSlideIn`]
123
+ }], direction: [{
124
+ type: HostBinding,
125
+ args: [`class`]
126
+ }] } });
117
127
 
118
- let TuiSidebarModule = class TuiSidebarModule {
119
- };
120
- TuiSidebarModule = __decorate([
121
- NgModule({
122
- imports: [TuiActiveZoneModule, PolymorpheusModule],
123
- declarations: [TuiSidebarDirective, TuiSidebarComponent],
124
- entryComponents: [TuiSidebarComponent],
125
- exports: [TuiSidebarDirective],
126
- })
127
- ], TuiSidebarModule);
128
+ class TuiSidebarModule {
129
+ }
130
+ TuiSidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
131
+ TuiSidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, declarations: [TuiSidebarDirective, TuiSidebarComponent], imports: [TuiActiveZoneModule, PolymorpheusModule], exports: [TuiSidebarDirective] });
132
+ TuiSidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, imports: [[TuiActiveZoneModule, PolymorpheusModule]] });
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, decorators: [{
134
+ type: NgModule,
135
+ args: [{
136
+ imports: [TuiActiveZoneModule, PolymorpheusModule],
137
+ declarations: [TuiSidebarDirective, TuiSidebarComponent],
138
+ entryComponents: [TuiSidebarComponent],
139
+ exports: [TuiSidebarDirective],
140
+ }]
141
+ }] });
128
142
 
129
143
  /**
130
144
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-directives-sidebar.js","sources":["ng://@taiga-ui/addon-mobile/directives/sidebar/sidebar.directive.ts","ng://@taiga-ui/addon-mobile/directives/sidebar/sidebar.component.ts","ng://@taiga-ui/addon-mobile/directives/sidebar/sidebar.module.ts","ng://@taiga-ui/addon-mobile/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n Inject,\n Injector,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiPortalService} from '@taiga-ui/cdk';\nimport {TuiHorizontalDirection} from '@taiga-ui/core';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\n\n@Directive({\n selector: '[tuiSidebar]',\n})\nexport class TuiSidebarDirective<T = Record<string, unknown>>\n extends PolymorpheusTemplate<T>\n implements OnDestroy\n{\n private sidebarRef: ComponentRef<TuiSidebarComponent> | null = null;\n\n @Input('tuiSidebarDirection')\n direction: TuiHorizontalDirection = 'left';\n\n @Input('tuiSidebarAutoWidth')\n autoWidth = false;\n\n @Input()\n set tuiSidebar(open: boolean) {\n if (open) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n constructor(\n @Inject(TemplateRef) readonly content: TemplateRef<T>,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(ComponentFactoryResolver)\n private readonly componentFactoryResolver: ComponentFactoryResolver,\n @Inject(TuiPortalService)\n private readonly portalService: TuiPortalService,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(content, changeDetectorRef);\n }\n\n ngOnDestroy(): void {\n this.hide();\n }\n\n private show(): void {\n if (this.sidebarRef !== null) {\n return;\n }\n\n const componentFactory =\n this.componentFactoryResolver.resolveComponentFactory(TuiSidebarComponent);\n\n this.sidebarRef = this.portalService.add(componentFactory, this.injector);\n this.sidebarRef.changeDetectorRef.detectChanges();\n }\n\n private hide(): void {\n if (this.sidebarRef === null) {\n return;\n }\n\n this.portalService.remove(this.sidebarRef);\n this.sidebarRef = null;\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {\n TUI_ANIMATION_OPTIONS,\n TuiAnimationOptions,\n TuiHorizontalDirection,\n tuiSlideIn,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n// @dynamic\n@Component({\n selector: 'aside[tuiSidebar]',\n templateUrl: './sidebar.template.html',\n styleUrls: ['./sidebar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideIn],\n})\nexport class TuiSidebarComponent implements DoCheck {\n private readonly left = {\n value: 'left',\n ...this.options,\n } as const;\n\n private readonly right = {\n value: 'right',\n ...this.options,\n } as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiSidebarDirective) private readonly directive: TuiSidebarDirective,\n ) {}\n\n @HostBinding('@tuiSlideIn')\n get animation(): TuiAnimationOptions {\n return this.direction === 'left' ? this.left : this.right;\n }\n\n @HostBinding('class')\n get direction(): TuiHorizontalDirection {\n return this.directive.direction;\n }\n\n get content(): PolymorpheusContent {\n return this.directive.content;\n }\n\n get autoWidth(): boolean {\n return this.directive.autoWidth;\n }\n\n ngDoCheck(): void {\n this.directive.check();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n@NgModule({\n imports: [TuiActiveZoneModule, PolymorpheusModule],\n declarations: [TuiSidebarDirective, TuiSidebarComponent],\n entryComponents: [TuiSidebarComponent],\n exports: [TuiSidebarDirective],\n})\nexport class TuiSidebarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAoBa,mBAAmB,GAAhC,MAAa,mBACT,SAAQ,oBAAuB;IAoB/B,YACkC,OAAuB,EAClB,QAAkB,EAEpC,wBAAkD,EAElD,aAA+B,EACrB,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QARJ,YAAO,GAAP,OAAO,CAAgB;QAClB,aAAQ,GAAR,QAAQ,CAAU;QAEpC,6BAAwB,GAAxB,wBAAwB,CAA0B;QAElD,kBAAa,GAAb,aAAa,CAAkB;QAvB5C,eAAU,GAA6C,IAAI,CAAC;QAGpE,cAAS,GAA2B,MAAM,CAAC;QAG3C,cAAS,GAAG,KAAK,CAAC;KAqBjB;IAlBD,IAAI,UAAU,CAAC,IAAa;QACxB,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,IAAI,EAAE,CAAC;SACf;aAAM;YACH,IAAI,CAAC,IAAI,EAAE,CAAC;SACf;KACJ;IAcD,WAAW;QACP,IAAI,CAAC,IAAI,EAAE,CAAC;KACf;IAEO,IAAI;QACR,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,EAAE;YAC1B,OAAO;SACV;QAED,MAAM,gBAAgB,GAClB,IAAI,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;QAE/E,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1E,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;KACrD;IAEO,IAAI;QACR,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,EAA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IAGD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;KACnC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KACjC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;KACnC;IAED,SAAS;QACL,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;KAC1B;EACJ;;4CAzBQ,MAAM,SAAC,qBAAqB;YAC4B,mBAAmB,uBAA3E,MAAM,SAAC,mBAAmB;;AAI/B;IADC,WAAW,CAAC,aAAa,CAAC;oDAG1B;AAGD;IADC,WAAW,CAAC,OAAO,CAAC;oDAGpB;AAxBQ,mBAAmB;IAP/B,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,2KAAsC;QAEtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,UAAU,CAAC;;KAC3B,CAAC;IAaO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,mBAAmB,CAAC,CAAA;GAbvB,mBAAmB,CAqC/B;;IClDY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAN5B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;QAClD,YAAY,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;QACxD,eAAe,EAAE,CAAC,mBAAmB,CAAC;QACtC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACbhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives-sidebar.js","sources":["../../../projects/addon-mobile/directives/sidebar/sidebar.directive.ts","../../../projects/addon-mobile/directives/sidebar/sidebar.component.ts","../../../projects/addon-mobile/directives/sidebar/sidebar.template.html","../../../projects/addon-mobile/directives/sidebar/sidebar.module.ts","../../../projects/addon-mobile/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n Inject,\n Injector,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDropdownPortalService} from '@taiga-ui/cdk';\nimport {TuiHorizontalDirection} from '@taiga-ui/core';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\n\n@Directive({\n selector: `[tuiSidebar]`,\n})\nexport class TuiSidebarDirective<T = Record<string, unknown>>\n extends PolymorpheusTemplate<T>\n implements OnDestroy\n{\n private sidebarRef: ComponentRef<TuiSidebarComponent> | null = null;\n\n @Input(`tuiSidebarDirection`)\n direction: TuiHorizontalDirection = `left`;\n\n @Input(`tuiSidebarAutoWidth`)\n autoWidth = false;\n\n @Input()\n set tuiSidebar(open: boolean) {\n if (open) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n constructor(\n @Inject(TemplateRef) readonly content: TemplateRef<T>,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(ComponentFactoryResolver)\n private readonly componentFactoryResolver: ComponentFactoryResolver,\n @Inject(TuiDropdownPortalService)\n private readonly portalService: TuiDropdownPortalService,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(content, changeDetectorRef);\n }\n\n ngOnDestroy(): void {\n this.hide();\n }\n\n private show(): void {\n if (this.sidebarRef !== null) {\n return;\n }\n\n const componentFactory =\n this.componentFactoryResolver.resolveComponentFactory(TuiSidebarComponent);\n\n this.sidebarRef = this.portalService.add(componentFactory, this.injector);\n this.sidebarRef.changeDetectorRef.detectChanges();\n }\n\n private hide(): void {\n if (this.sidebarRef === null) {\n return;\n }\n\n this.portalService.remove(this.sidebarRef);\n this.sidebarRef = null;\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {\n TUI_ANIMATION_OPTIONS,\n TuiAnimationOptions,\n TuiHorizontalDirection,\n tuiSlideIn,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n// @dynamic\n@Component({\n selector: `aside[tuiSidebar]`,\n templateUrl: `./sidebar.template.html`,\n styleUrls: [`./sidebar.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideIn],\n})\nexport class TuiSidebarComponent implements DoCheck {\n private readonly left = {\n value: `left`,\n ...this.options,\n } as const;\n\n private readonly right = {\n value: `right`,\n ...this.options,\n } as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiSidebarDirective) private readonly directive: TuiSidebarDirective,\n ) {}\n\n @HostBinding(`@tuiSlideIn`)\n get animation(): TuiAnimationOptions {\n return this.direction === `left` ? this.left : this.right;\n }\n\n @HostBinding(`class`)\n get direction(): TuiHorizontalDirection {\n return this.directive.direction;\n }\n\n get content(): PolymorpheusContent {\n return this.directive.content;\n }\n\n get autoWidth(): boolean {\n return this.directive.autoWidth;\n }\n\n ngDoCheck(): void {\n this.directive.check();\n }\n}\n","<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n@NgModule({\n imports: [TuiActiveZoneModule, PolymorpheusModule],\n declarations: [TuiSidebarDirective, TuiSidebarComponent],\n entryComponents: [TuiSidebarComponent],\n exports: [TuiSidebarDirective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;;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,YAAA,EAAA,CAJV,mBAAmB,EAAE,mBAAmB,aAD7C,mBAAmB,EAAE,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAGvC,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAEpB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EALhB,OAAA,EAAA,CAAA,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAA,EAAA,CAAA,CAAA;4FAKzC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;AAClD,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;oBACxD,eAAe,EAAE,CAAC,mBAAmB,CAAC;oBACtC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
@@ -1,39 +1,41 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { ElementRef, Optional, Inject, Renderer2, Input, Directive, NgModule } from '@angular/core';
3
- import { findTouchIndex } from '@taiga-ui/addon-mobile/utils';
1
+ import { __decorate } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { ElementRef, Renderer2, Directive, Optional, Inject, Input, NgModule } from '@angular/core';
4
+ import { tuiFindTouchIndex } from '@taiga-ui/addon-mobile/utils';
5
+ import * as i1 from '@taiga-ui/cdk';
4
6
  import { typedFromEvent, TUI_IS_IOS, TuiDestroyService, tuiDefaultProp } from '@taiga-ui/cdk';
5
7
  import { TUI_ELEMENT_REF } from '@taiga-ui/core';
6
8
  import { race } from 'rxjs';
7
9
  import { tap, map, switchMap, filter, take, takeUntil } from 'rxjs/operators';
8
10
 
9
11
  const STYLE = {
10
- transform: 'scale(0.95)',
11
- opacity: '0.6',
12
- background: 'rgba(146, 153, 162, 0.12)',
12
+ transform: `scale(0.95)`,
13
+ opacity: `0.6`,
14
+ background: `rgba(146, 153, 162, 0.12)`,
13
15
  };
14
- let TuiTouchableDirective = class TuiTouchableDirective {
16
+ class TuiTouchableDirective {
15
17
  constructor(elementRef, isIos, { nativeElement }, renderer, destroy$) {
16
- this.tuiTouchable = '';
18
+ this.tuiTouchable = ``;
17
19
  if (!isIos) {
18
20
  return;
19
21
  }
20
22
  const element = elementRef ? elementRef.nativeElement : nativeElement;
21
- typedFromEvent(element, 'touchstart', { passive: true })
23
+ typedFromEvent(element, `touchstart`, { passive: true })
22
24
  .pipe(tap(() => {
23
25
  this.onTouchStart(renderer, element);
24
- }), map(({ touches }) => touches[touches.length - 1].identifier), switchMap(identifier => race(typedFromEvent(element, 'touchmove', { passive: true }).pipe(filter(({ touches }) => this.hasTouchLeft(element, touches, identifier))), typedFromEvent(element, 'touchend')).pipe(take(1))), takeUntil(destroy$))
26
+ }), map(({ touches }) => touches[touches.length - 1].identifier), switchMap(identifier => race(typedFromEvent(element, `touchmove`, { passive: true }).pipe(filter(({ touches }) => this.hasTouchLeft(element, touches, identifier))), typedFromEvent(element, `touchend`)).pipe(take(1))), takeUntil(destroy$))
25
27
  .subscribe(() => {
26
- renderer.removeStyle(element, 'transform');
27
- renderer.removeStyle(element, 'opacity');
28
- renderer.removeStyle(element, 'background');
28
+ renderer.removeStyle(element, `transform`);
29
+ renderer.removeStyle(element, `opacity`);
30
+ renderer.removeStyle(element, `background`);
29
31
  });
30
32
  }
31
33
  get style() {
32
- return this.tuiTouchable || 'transform';
34
+ return this.tuiTouchable || `transform`;
33
35
  }
34
36
  hasTouchLeft(element, touches, identifier) {
35
37
  const { ownerDocument } = element;
36
- const id = findTouchIndex(touches, identifier);
38
+ const id = tuiFindTouchIndex(touches, identifier);
37
39
  if (!ownerDocument || id === -1) {
38
40
  return true;
39
41
  }
@@ -41,46 +43,59 @@ let TuiTouchableDirective = class TuiTouchableDirective {
41
43
  return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));
42
44
  }
43
45
  onTouchStart(renderer, element) {
44
- if (this.style !== 'transform') {
45
- renderer.removeStyle(element, 'transition');
46
+ if (this.style !== `transform`) {
47
+ renderer.removeStyle(element, `transition`);
46
48
  }
47
49
  else {
48
- renderer.setStyle(element, 'transition', 'transform 0.2s');
50
+ renderer.setStyle(element, `transition`, `transform 0.2s`);
49
51
  }
50
52
  renderer.setStyle(element, this.style, STYLE[this.style]);
51
53
  }
52
- };
53
- TuiTouchableDirective.ctorParameters = () => [
54
- { type: ElementRef, decorators: [{ type: Optional }, { type: Inject, args: [TUI_ELEMENT_REF,] }] },
55
- { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] },
56
- { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
57
- { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] },
58
- { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] }
59
- ];
54
+ }
55
+ TuiTouchableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableDirective, deps: [{ token: TUI_ELEMENT_REF, optional: true }, { token: TUI_IS_IOS }, { token: ElementRef }, { token: Renderer2 }, { token: TuiDestroyService }], target: i0.ɵɵFactoryTarget.Directive });
56
+ TuiTouchableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTouchableDirective, selector: "[tuiTouchable]", inputs: { tuiTouchable: "tuiTouchable" }, providers: [TuiDestroyService], ngImport: i0 });
60
57
  __decorate([
61
- Input(),
62
58
  tuiDefaultProp()
63
59
  ], TuiTouchableDirective.prototype, "tuiTouchable", void 0);
64
- TuiTouchableDirective = __decorate([
65
- Directive({
66
- selector: '[tuiTouchable]',
67
- providers: [TuiDestroyService],
68
- }),
69
- __param(0, Optional()), __param(0, Inject(TUI_ELEMENT_REF)),
70
- __param(1, Inject(TUI_IS_IOS)),
71
- __param(2, Inject(ElementRef)),
72
- __param(3, Inject(Renderer2)),
73
- __param(4, Inject(TuiDestroyService))
74
- ], TuiTouchableDirective);
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableDirective, decorators: [{
61
+ type: Directive,
62
+ args: [{
63
+ selector: `[tuiTouchable]`,
64
+ providers: [TuiDestroyService],
65
+ }]
66
+ }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
67
+ type: Optional
68
+ }, {
69
+ type: Inject,
70
+ args: [TUI_ELEMENT_REF]
71
+ }] }, { type: undefined, decorators: [{
72
+ type: Inject,
73
+ args: [TUI_IS_IOS]
74
+ }] }, { type: i0.ElementRef, decorators: [{
75
+ type: Inject,
76
+ args: [ElementRef]
77
+ }] }, { type: i0.Renderer2, decorators: [{
78
+ type: Inject,
79
+ args: [Renderer2]
80
+ }] }, { type: i1.TuiDestroyService, decorators: [{
81
+ type: Inject,
82
+ args: [TuiDestroyService]
83
+ }] }]; }, propDecorators: { tuiTouchable: [{
84
+ type: Input
85
+ }] } });
75
86
 
76
- let TuiTouchableModule = class TuiTouchableModule {
77
- };
78
- TuiTouchableModule = __decorate([
79
- NgModule({
80
- declarations: [TuiTouchableDirective],
81
- exports: [TuiTouchableDirective],
82
- })
83
- ], TuiTouchableModule);
87
+ class TuiTouchableModule {
88
+ }
89
+ TuiTouchableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
90
+ TuiTouchableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule, declarations: [TuiTouchableDirective], exports: [TuiTouchableDirective] });
91
+ TuiTouchableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule, decorators: [{
93
+ type: NgModule,
94
+ args: [{
95
+ declarations: [TuiTouchableDirective],
96
+ exports: [TuiTouchableDirective],
97
+ }]
98
+ }] });
84
99
 
85
100
  /**
86
101
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-directives-touchable.js","sources":["ng://@taiga-ui/addon-mobile/directives/touchable/touchable.directive.ts","ng://@taiga-ui/addon-mobile/directives/touchable/touchable.module.ts","ng://@taiga-ui/addon-mobile/directives/touchable/taiga-ui-addon-mobile-directives-touchable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input, Optional, Renderer2} from '@angular/core';\nimport {TuiTouchModeT} from '@taiga-ui/addon-mobile/types';\nimport {findTouchIndex} from '@taiga-ui/addon-mobile/utils';\nimport {\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {race} from 'rxjs';\nimport {filter, map, switchMap, take, takeUntil, tap} from 'rxjs/operators';\n\nconst STYLE = {\n transform: 'scale(0.95)',\n opacity: '0.6',\n background: 'rgba(146, 153, 162, 0.12)',\n} as const;\n\n@Directive({\n selector: '[tuiTouchable]',\n providers: [TuiDestroyService],\n})\nexport class TuiTouchableDirective {\n @Input()\n @tuiDefaultProp()\n tuiTouchable: TuiTouchModeT | '' = '';\n\n constructor(\n @Optional() @Inject(TUI_ELEMENT_REF) elementRef: ElementRef<HTMLElement> | null,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!isIos) {\n return;\n }\n\n const element = elementRef ? elementRef.nativeElement : nativeElement;\n\n typedFromEvent(element, 'touchstart', {passive: true})\n .pipe(\n tap(() => {\n this.onTouchStart(renderer, element);\n }),\n map(({touches}) => touches[touches.length - 1].identifier),\n switchMap(identifier =>\n race(\n typedFromEvent(element, 'touchmove', {passive: true}).pipe(\n filter(({touches}) =>\n this.hasTouchLeft(element, touches, identifier),\n ),\n ),\n typedFromEvent(element, 'touchend'),\n ).pipe(take(1)),\n ),\n takeUntil(destroy$),\n )\n .subscribe(() => {\n renderer.removeStyle(element, 'transform');\n renderer.removeStyle(element, 'opacity');\n renderer.removeStyle(element, 'background');\n });\n }\n\n get style(): TuiTouchModeT {\n return this.tuiTouchable || 'transform';\n }\n\n private hasTouchLeft(\n element: HTMLElement,\n touches: TouchList,\n identifier: number,\n ): boolean {\n const {ownerDocument} = element;\n const id = findTouchIndex(touches, identifier);\n\n if (!ownerDocument || id === -1) {\n return true;\n }\n\n const {clientX, clientY} = touches[id];\n\n return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));\n }\n\n private onTouchStart(renderer: Renderer2, element: HTMLElement): void {\n if (this.style !== 'transform') {\n renderer.removeStyle(element, 'transition');\n } else {\n renderer.setStyle(element, 'transition', 'transform 0.2s');\n }\n\n renderer.setStyle(element, this.style, STYLE[this.style]);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTouchableDirective} from './touchable.directive';\n\n@NgModule({\n declarations: [TuiTouchableDirective],\n exports: [TuiTouchableDirective],\n})\nexport class TuiTouchableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAaA,MAAM,KAAK,GAAG;IACV,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE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,EAAE,CAAA,EAAE,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;IACnC,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IACjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAVrB,qBAAqB,CAyEjC;;ICxFY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives-touchable.js","sources":["../../../projects/addon-mobile/directives/touchable/touchable.directive.ts","../../../projects/addon-mobile/directives/touchable/touchable.module.ts","../../../projects/addon-mobile/directives/touchable/taiga-ui-addon-mobile-directives-touchable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input, Optional, Renderer2} from '@angular/core';\nimport {TuiTouchMode} from '@taiga-ui/addon-mobile/types';\nimport {tuiFindTouchIndex} from '@taiga-ui/addon-mobile/utils';\nimport {\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {race} from 'rxjs';\nimport {filter, map, switchMap, take, takeUntil, tap} from 'rxjs/operators';\n\nconst STYLE = {\n transform: `scale(0.95)`,\n opacity: `0.6`,\n background: `rgba(146, 153, 162, 0.12)`,\n} as const;\n\n@Directive({\n selector: `[tuiTouchable]`,\n providers: [TuiDestroyService],\n})\nexport class TuiTouchableDirective {\n @Input()\n @tuiDefaultProp()\n tuiTouchable: TuiTouchMode | '' = ``;\n\n constructor(\n @Optional() @Inject(TUI_ELEMENT_REF) elementRef: ElementRef<HTMLElement> | null,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!isIos) {\n return;\n }\n\n const element = elementRef ? elementRef.nativeElement : nativeElement;\n\n typedFromEvent(element, `touchstart`, {passive: true})\n .pipe(\n tap(() => {\n this.onTouchStart(renderer, element);\n }),\n map(({touches}) => touches[touches.length - 1].identifier),\n switchMap(identifier =>\n race(\n typedFromEvent(element, `touchmove`, {passive: true}).pipe(\n filter(({touches}) =>\n this.hasTouchLeft(element, touches, identifier),\n ),\n ),\n typedFromEvent(element, `touchend`),\n ).pipe(take(1)),\n ),\n takeUntil(destroy$),\n )\n .subscribe(() => {\n renderer.removeStyle(element, `transform`);\n renderer.removeStyle(element, `opacity`);\n renderer.removeStyle(element, `background`);\n });\n }\n\n get style(): TuiTouchMode {\n return this.tuiTouchable || `transform`;\n }\n\n private hasTouchLeft(\n element: HTMLElement,\n touches: TouchList,\n identifier: number,\n ): boolean {\n const {ownerDocument} = element;\n const id = tuiFindTouchIndex(touches, identifier);\n\n if (!ownerDocument || id === -1) {\n return true;\n }\n\n const {clientX, clientY} = touches[id];\n\n return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));\n }\n\n private onTouchStart(renderer: Renderer2, element: HTMLElement): void {\n if (this.style !== `transform`) {\n renderer.removeStyle(element, `transition`);\n } else {\n renderer.setStyle(element, `transition`, `transform 0.2s`);\n }\n\n renderer.setStyle(element, this.style, STYLE[this.style]);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTouchableDirective} from './touchable.directive';\n\n@NgModule({\n declarations: [TuiTouchableDirective],\n exports: [TuiTouchableDirective],\n})\nexport class TuiTouchableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAaA,MAAM,KAAK,GAAG;AACV,IAAA,SAAS,EAAE,CAA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,kBAAkB,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-directives.js","sources":["ng://@taiga-ui/addon-mobile/directives/taiga-ui-addon-mobile-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-directives.js","sources":["../../../projects/addon-mobile/directives/taiga-ui-addon-mobile-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-interfaces.js","sources":["ng://@taiga-ui/addon-mobile/interfaces/taiga-ui-addon-mobile-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-interfaces.js","sources":["../../../projects/addon-mobile/interfaces/taiga-ui-addon-mobile-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
@@ -1,55 +1,73 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { Inject, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';
3
+ import * as i1 from '@taiga-ui/cdk';
3
4
  import { TUI_IS_IOS, TuiRepeatTimesModule, TuiLetModule } from '@taiga-ui/cdk';
5
+ import * as i3 from '@taiga-ui/core';
4
6
  import { TuiPrimitiveCalendarComponent, TUI_ORDERED_SHORT_WEEK_DAYS, TuiCalendarSheetPipeModule } from '@taiga-ui/core';
5
- import { Observable } from 'rxjs';
7
+ import * as i2 from '@taiga-ui/addon-mobile/directives/ripple';
6
8
  import { TuiRippleModule } from '@taiga-ui/addon-mobile/directives/ripple';
9
+ import * as i4 from 'rxjs';
7
10
 
8
11
  /**
9
12
  * @internal
10
13
  * @dynamic
11
14
  */
12
- let TuiPrimitiveCalendarMobileComponent = class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {
15
+ class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {
13
16
  constructor(isIOS, weekDays$) {
14
17
  super(weekDays$);
15
18
  this.isIOS = isIOS;
16
19
  }
17
- };
18
- TuiPrimitiveCalendarMobileComponent.ctorParameters = () => [
19
- { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] },
20
- { type: Observable, decorators: [{ type: Inject, args: [TUI_ORDERED_SHORT_WEEK_DAYS,] }] }
21
- ];
22
- TuiPrimitiveCalendarMobileComponent = __decorate([
23
- Component({
24
- selector: 'tui-primitive-calendar-mobile',
25
- template: "<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",
26
- changeDetection: ChangeDetectionStrategy.OnPush,
27
- host: {
28
- '[class._ios]': 'isIOS',
29
- },
30
- styles: [":host{display:block;font:var(--tui-font-text-m)}.t-row{position:relative;z-index:0;display:flex;justify-content:space-between}.t-item{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item:after,.t-item:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell{position:relative;display:flex;align-items:center;justify-content:center;width:2.75rem;text-align:center;outline:0;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:2px solid transparent}.t-cell:before{content:'';position:absolute;top:0;left:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today:after{position:absolute;left:50%;transform:translate(-50%,0);content:'';bottom:.3125rem;border-radius:.375rem;background-color:var(--tui-text-02)}.t-cell_interval:before{background:var(--tui-base-02)}:host._single .t-cell_interval:before{background:var(--tui-secondary-hover)}.t-cell_interval:not(:last-child):before{right:-2.75rem}.t-cell_interval:first-child>.t-item{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval:last-child>.t-item{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval>.t-item{border-radius:0}.t-cell[data-range]:after{background-color:var(--tui-primary-text)}.t-cell[data-range]>.t-item{color:var(--tui-primary-text)}.t-cell[data-range]>.t-item:after,.t-cell[data-range]>.t-item:before{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hovered]>.t-item:after,.t-cell[data-range][data-state=hovered]>.t-item:before{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=pressed]>.t-item:after,.t-cell[data-range][data-state=pressed]>.t-item:before{background-color:var(--tui-primary-active)}.t-cell[data-range=end]>.t-item:before{left:.25rem}.t-cell[data-range=end]>.t-item:after{left:-2rem;right:100%;transform:translateX(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-range=start]>.t-item:before{right:.25rem}.t-cell[data-range=start]>.t-item:after{left:100%;right:-2rem;transform:translateX(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-state=disabled]{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-cell[data-state=disabled]>.t-item{opacity:.36}.t-cell[data-state=hovered]:hover:not([data-range])>.t-item{background-color:var(--tui-secondary-hover)}.t-cell[data-state=pressed]:hover:not([data-range])>.t-item{background-color:var(--tui-secondary-active)}:host{width:20.75rem;max-width:100vw}:host._ios{width:22.625rem}.t-row{height:3rem;justify-content:flex-start}.t-row:first-child{justify-content:flex-end}:host._ios .t-row{height:3.125rem}.t-cell{height:2.75rem;border-radius:100%;margin-right:.25rem}.t-cell:last-child,:host._ios .t-cell:last-child{margin-right:0}.t-cell:before{right:-100vw}.t-cell:first-child:before{left:-100vw}.t-cell_today:after{height:.375rem;width:.375rem;background-color:var(--tui-link)}.t-cell_interval:before{background-color:var(--tui-base-02)}.t-cell_interval:last-child:first-child:before{right:-100vw}.t-cell[data-range=end],.t-cell[data-range=single],.t-cell[data-range=start]{border-radius:100%;background-color:var(--tui-link);color:var(--tui-accent-text);font-weight:500}.t-cell[data-range=end]:after,.t-cell[data-range=single]:after,.t-cell[data-range=start]:after{background-color:var(--tui-base-01)}:host._ios .t-cell[data-range=end],:host._ios .t-cell[data-range=single],:host._ios .t-cell[data-range=start]{font-weight:600}.t-cell[data-range=start]:before{left:50%;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end]:not(:first-child):before{left:50%;background:var(--tui-base-01);border-radius:0}.t-cell[data-range=end]:first-child:before{right:50%;background-color:var(--tui-base-02)}:host._ios .t-cell{margin-right:.5625rem}:host._ios .t-cell:before{border-radius:.5rem}@media screen and (max-width:22.4375rem){.t-cell,:host._ios .t-cell{margin-right:.125rem}.t-cell:last-child,:host._ios .t-cell:last-child{margin-right:0}}"]
31
- }),
32
- __param(0, Inject(TUI_IS_IOS)),
33
- __param(1, Inject(TUI_ORDERED_SHORT_WEEK_DAYS))
34
- ], TuiPrimitiveCalendarMobileComponent);
20
+ }
21
+ TuiPrimitiveCalendarMobileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileComponent, deps: [{ token: TUI_IS_IOS }, { token: TUI_ORDERED_SHORT_WEEK_DAYS }], target: i0.ɵɵFactoryTarget.Component });
22
+ TuiPrimitiveCalendarMobileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiPrimitiveCalendarMobileComponent, selector: "tui-primitive-calendar-mobile", host: { properties: { "class._ios": "isIOS" } }, usesInheritance: true, ngImport: i0, template: "<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", styles: [":host{display:block;font:var(--tui-font-text-m)}.t-row{position:relative;z-index:0;display:flex;justify-content:space-between;height:2.25rem}.t-item{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item:before,.t-item:after{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell{position:relative;display:flex;align-items:center;justify-content:center;width:2.75rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:2px solid transparent}.t-cell:before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today:after{position:absolute;left:50%;transform:translate(-50%);content:\"\";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-02)}.t-cell_interval:before{background:var(--tui-base-02)}:host._single .t-cell_interval:before{background:var(--tui-secondary-hover)}.t-cell_interval:not(:last-child):before{right:-2.75rem}.t-cell_interval:last-child:first-child:before{right:0}.t-cell_interval:first-child>.t-item{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval:last-child>.t-item{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval>.t-item{border-radius:0}.t-cell[data-range]:after{background-color:var(--tui-primary-text)}.t-cell[data-range]>.t-item{color:var(--tui-primary-text)}.t-cell[data-range]>.t-item:before,.t-cell[data-range]>.t-item:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover]>.t-item:before,.t-cell[data-range][data-state=hover]>.t-item:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active]>.t-item:before,.t-cell[data-range][data-state=active]>.t-item:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end]>.t-item:before{left:.25rem}.t-cell[data-range=end]>.t-item:after{left:-2rem;right:100%;transform:translate(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-range=start]>.t-item:before{right:.25rem}.t-cell[data-range=start]>.t-item:after{left:100%;right:-2rem;transform:translate(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-state=disabled]{pointer-events:none}.t-cell[data-state=disabled]>.t-item{opacity:.36}.t-cell[data-state=hover]:hover:not([data-range])>.t-item{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active]:hover:not([data-range])>.t-item{background-color:var(--tui-secondary-active)}:host{width:20.75rem;max-width:100vw}:host._ios{width:22.625rem}.t-row{height:3rem;justify-content:flex-start}.t-row:first-child{justify-content:flex-end}:host._ios .t-row{height:3.125rem}.t-cell{height:2.75rem;border-radius:100%;margin-right:.25rem}.t-cell:last-child,:host._ios .t-cell:last-child{margin-right:0}.t-cell:before{right:-100vw}.t-cell:first-child:before{left:-100vw}.t-cell_today:after{height:.375rem;width:.375rem;background-color:var(--tui-link)}.t-cell_interval:before{background-color:var(--tui-base-02)}.t-cell_interval:last-child:first-child:before{right:-100vw}.t-cell[data-state=disabled]{opacity:var(--tui-disabled-opacity)}.t-cell[data-range=single],.t-cell[data-range=start],.t-cell[data-range=end]{border-radius:100%;background-color:var(--tui-link);color:var(--tui-accent-text);font-weight:500}.t-cell[data-range=single]:after,.t-cell[data-range=start]:after,.t-cell[data-range=end]:after{background-color:var(--tui-base-01)}:host._ios .t-cell[data-range=single],:host._ios .t-cell[data-range=start],:host._ios .t-cell[data-range=end]{font-weight:600}.t-cell[data-range=start]:before{left:50%;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end]:not(:first-child):before{left:50%;background:var(--tui-base-01);border-radius:0}.t-cell[data-range=end]:first-child:before{right:50%;background-color:var(--tui-base-02)}:host._ios .t-cell{margin-right:.5625rem}:host._ios .t-cell:before{border-radius:.5rem}@media screen and (max-width: 22.4375rem){.t-cell,:host._ios .t-cell{margin-right:.125rem}.t-cell:last-child,:host._ios .t-cell:last-child{margin-right:0}}\n"], directives: [{ type: i1.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i1.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: i2.TuiRippleDirective, selector: "[tuiRipple]", inputs: ["tuiRipple"] }], pipes: { "tuiCalendarSheet": i3.TuiCalendarSheetPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileComponent, decorators: [{
24
+ type: Component,
25
+ args: [{
26
+ selector: `tui-primitive-calendar-mobile`,
27
+ templateUrl: `./primitive-calendar-mobile.template.html`,
28
+ styleUrls: [`./primitive-calendar-mobile.style.less`],
29
+ changeDetection: ChangeDetectionStrategy.OnPush,
30
+ host: {
31
+ '[class._ios]': `isIOS`,
32
+ },
33
+ }]
34
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
35
+ type: Inject,
36
+ args: [TUI_IS_IOS]
37
+ }] }, { type: i4.Observable, decorators: [{
38
+ type: Inject,
39
+ args: [TUI_ORDERED_SHORT_WEEK_DAYS]
40
+ }] }]; } });
35
41
 
36
42
  /**
37
43
  * @internal
38
44
  */
39
- let TuiPrimitiveCalendarMobileModule = class TuiPrimitiveCalendarMobileModule {
40
- };
41
- TuiPrimitiveCalendarMobileModule = __decorate([
42
- NgModule({
43
- imports: [
45
+ class TuiPrimitiveCalendarMobileModule {
46
+ }
47
+ TuiPrimitiveCalendarMobileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ TuiPrimitiveCalendarMobileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, declarations: [TuiPrimitiveCalendarMobileComponent], imports: [TuiRepeatTimesModule,
49
+ TuiCalendarSheetPipeModule,
50
+ TuiRippleModule,
51
+ TuiLetModule], exports: [TuiPrimitiveCalendarMobileComponent] });
52
+ TuiPrimitiveCalendarMobileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, imports: [[
44
53
  TuiRepeatTimesModule,
45
54
  TuiCalendarSheetPipeModule,
46
55
  TuiRippleModule,
47
56
  TuiLetModule,
48
- ],
49
- declarations: [TuiPrimitiveCalendarMobileComponent],
50
- exports: [TuiPrimitiveCalendarMobileComponent],
51
- })
52
- ], TuiPrimitiveCalendarMobileModule);
57
+ ]] });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, decorators: [{
59
+ type: NgModule,
60
+ args: [{
61
+ imports: [
62
+ TuiRepeatTimesModule,
63
+ TuiCalendarSheetPipeModule,
64
+ TuiRippleModule,
65
+ TuiLetModule,
66
+ ],
67
+ declarations: [TuiPrimitiveCalendarMobileComponent],
68
+ exports: [TuiPrimitiveCalendarMobileComponent],
69
+ }]
70
+ }] });
53
71
 
54
72
  /**
55
73
  * Generated bundle index. Do not edit.