@taiga-ui/addon-mobile 2.23.0 → 2.27.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 (185) hide show
  1. package/README.md +9 -4
  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-dialog.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +11 -11
  5. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
  6. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js +1 -1
  7. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +1 -1
  9. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +1 -1
  10. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js +1 -1
  11. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +76 -76
  13. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
  14. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js +1 -1
  15. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +22 -18
  17. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
  18. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js +1 -1
  19. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +1 -1
  21. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
  23. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-addon-mobile-components.umd.js +10 -10
  25. package/bundles/taiga-ui-addon-mobile-components.umd.min.js +1 -1
  26. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +1 -1
  27. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +1 -1
  29. package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +2 -2
  31. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +1 -1
  32. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js +1 -1
  33. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +1 -1
  35. package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +1 -1
  37. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
  38. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js +1 -1
  39. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js.map +1 -1
  40. package/components/index.d.ts +1 -1
  41. package/components/mobile-calendar/index.d.ts +1 -1
  42. package/components/mobile-calendar/mobile-calendar.component.d.ts +7 -7
  43. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +1 -1
  44. package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.metadata.json +1 -1
  45. package/components/mobile-dialog/mobile-dialog.service.d.ts +1 -1
  46. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.metadata.json +1 -1
  47. package/components/pull-to-refresh/index.d.ts +2 -2
  48. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +1 -1
  49. package/components/sheet/components/sheet/sheet.component.d.ts +4 -4
  50. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +3 -2
  51. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
  52. package/components/sheet/index.d.ts +3 -3
  53. package/components/sheet/sheet.directive.d.ts +1 -1
  54. package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +1 -1
  55. package/components/taiga-ui-addon-mobile-components.metadata.json +1 -1
  56. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.metadata.json +1 -1
  57. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.metadata.json +1 -1
  58. package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.metadata.json +1 -1
  59. package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.metadata.json +1 -1
  60. package/directives/sidebar/sidebar.directive.d.ts +1 -1
  61. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.metadata.json +1 -1
  62. package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.metadata.json +1 -1
  63. package/esm2015/components/index.js +2 -2
  64. package/esm2015/components/mobile-calendar/index.js +2 -2
  65. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +12 -12
  66. package/esm2015/components/mobile-calendar/mobile-calendar.module.js +2 -3
  67. package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +1 -1
  68. package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +1 -1
  69. package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +1 -1
  70. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +2 -2
  71. package/esm2015/components/mobile-dialog/mobile-dialog.module.js +1 -1
  72. package/esm2015/components/mobile-dialog/mobile-dialog.service.js +1 -1
  73. package/esm2015/components/pull-to-refresh/index.js +3 -3
  74. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +1 -1
  75. package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +1 -1
  76. package/esm2015/components/pull-to-refresh/pull-to-refresh.module.js +1 -1
  77. package/esm2015/components/sheet/components/sheet/sheet.component.js +11 -10
  78. package/esm2015/components/sheet/components/sheet/sheet.providers.js +1 -1
  79. package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +2 -2
  80. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +2 -2
  81. package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +15 -12
  82. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +1 -1
  83. package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +1 -1
  84. package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +1 -1
  85. package/esm2015/components/sheet/index.js +4 -4
  86. package/esm2015/components/sheet/sheet-options.js +1 -1
  87. package/esm2015/components/sheet/sheet.directive.js +1 -1
  88. package/esm2015/components/sheet/sheet.js +1 -1
  89. package/esm2015/components/sheet/sheet.module.js +2 -2
  90. package/esm2015/components/sheet/sheet.service.js +1 -1
  91. package/esm2015/components/theme-android/theme-android.module.js +1 -1
  92. package/esm2015/components/theme-ios/theme-ios.module.js +1 -1
  93. package/esm2015/directives/elastic-sticky/elastic-sticky.directive.js +1 -1
  94. package/esm2015/directives/elastic-sticky/elastic-sticky.module.js +1 -1
  95. package/esm2015/directives/ripple/ripple.directive.js +1 -1
  96. package/esm2015/directives/ripple/ripple.module.js +1 -1
  97. package/esm2015/directives/sidebar/sidebar.component.js +2 -2
  98. package/esm2015/directives/sidebar/sidebar.directive.js +2 -2
  99. package/esm2015/directives/sidebar/sidebar.module.js +1 -1
  100. package/esm2015/directives/touchable/touchable.module.js +1 -1
  101. package/esm2015/index.js +1 -1
  102. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +2 -2
  103. package/esm5/components/index.js +2 -2
  104. package/esm5/components/mobile-calendar/index.js +2 -2
  105. package/esm5/components/mobile-calendar/mobile-calendar.component.js +12 -12
  106. package/esm5/components/mobile-calendar/mobile-calendar.module.js +2 -3
  107. package/esm5/components/mobile-calendar/mobile-calendar.providers.js +1 -1
  108. package/esm5/components/mobile-calendar/mobile-calendar.strategy.js +1 -1
  109. package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +1 -1
  110. package/esm5/components/mobile-dialog/mobile-dialog.component.js +2 -2
  111. package/esm5/components/mobile-dialog/mobile-dialog.module.js +1 -1
  112. package/esm5/components/mobile-dialog/mobile-dialog.service.js +1 -1
  113. package/esm5/components/pull-to-refresh/index.js +3 -3
  114. package/esm5/components/pull-to-refresh/loader-android/loader-android.component.js +1 -1
  115. package/esm5/components/pull-to-refresh/pull-to-refresh.component.js +1 -1
  116. package/esm5/components/pull-to-refresh/pull-to-refresh.module.js +1 -1
  117. package/esm5/components/sheet/components/sheet/sheet.component.js +11 -10
  118. package/esm5/components/sheet/components/sheet/sheet.providers.js +1 -1
  119. package/esm5/components/sheet/components/sheet-bar/sheet-bar.component.js +2 -2
  120. package/esm5/components/sheet/components/sheets-host/sheets-host.component.js +2 -2
  121. package/esm5/components/sheet/directives/sheet-close/sheet-close.directive.js +15 -12
  122. package/esm5/components/sheet/directives/sheet-stop/sheet-stop.directive.js +1 -1
  123. package/esm5/components/sheet/directives/sheet-top/sheet-top.directive.js +1 -1
  124. package/esm5/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +1 -1
  125. package/esm5/components/sheet/index.js +4 -4
  126. package/esm5/components/sheet/sheet-options.js +1 -1
  127. package/esm5/components/sheet/sheet.directive.js +1 -1
  128. package/esm5/components/sheet/sheet.js +1 -1
  129. package/esm5/components/sheet/sheet.module.js +2 -2
  130. package/esm5/components/sheet/sheet.service.js +1 -1
  131. package/esm5/components/theme-android/theme-android.module.js +1 -1
  132. package/esm5/components/theme-ios/theme-ios.module.js +1 -1
  133. package/esm5/directives/elastic-sticky/elastic-sticky.directive.js +1 -1
  134. package/esm5/directives/elastic-sticky/elastic-sticky.module.js +1 -1
  135. package/esm5/directives/ripple/ripple.directive.js +1 -1
  136. package/esm5/directives/ripple/ripple.module.js +1 -1
  137. package/esm5/directives/sidebar/sidebar.component.js +2 -2
  138. package/esm5/directives/sidebar/sidebar.directive.js +2 -2
  139. package/esm5/directives/sidebar/sidebar.module.js +1 -1
  140. package/esm5/directives/touchable/touchable.module.js +1 -1
  141. package/esm5/index.js +1 -1
  142. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +2 -2
  143. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
  144. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +13 -13
  145. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  146. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  147. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  148. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +65 -65
  149. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
  150. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +23 -19
  151. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  152. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  153. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  154. package/fesm2015/taiga-ui-addon-mobile-components.js +1 -1
  155. package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
  156. package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
  157. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +2 -2
  158. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
  159. package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
  160. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +1 -1
  161. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  162. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
  163. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +13 -13
  164. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  165. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  166. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  167. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +78 -78
  168. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
  169. package/fesm5/taiga-ui-addon-mobile-components-sheet.js +23 -19
  170. package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  171. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  172. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  173. package/fesm5/taiga-ui-addon-mobile-components.js +1 -1
  174. package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
  175. package/fesm5/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
  176. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js +2 -2
  177. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
  178. package/fesm5/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
  179. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +1 -1
  180. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  181. package/index.d.ts +1 -1
  182. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json +1 -1
  183. package/package.json +6 -5
  184. package/styles/tinkoff-ui-angular-mobile.less +1 -0
  185. package/taiga-ui-addon-mobile.metadata.json +1 -1
@@ -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) {\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';\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,IAAM,KAAK,GAAG;IACV,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,2BAA2B;CACjC,CAAC;;IAWP,+BACyC,UAA0C,EAC3D,KAAc,EACd,EAAwC,EACzC,QAAmB,EACX,QAA2B;QAL1D,iBAoCC;YAjCwB,gCAAa;QALtC,iBAAY,GAAuB,EAAE,CAAC;QASlC,IAAI,CAAC,KAAK,EAAE;YACR,OAAO;SACV;QAED,IAAM,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;QAEtE,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC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EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACPA;;;;;;"}
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) {\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,IAAM,KAAK,GAAG;IACV,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,2BAA2B;CACjC,CAAC;;IAWP,+BACyC,UAA0C,EAC3D,KAAc,EACd,EAAwC,EACzC,QAAmB,EACX,QAA2B;QAL1D,iBAoCC;YAjCwB,gCAAa;QALtC,iBAAY,GAAuB,EAAE,CAAC;QASlC,IAAI,CAAC,KAAK,EAAE;YACR,OAAO;SACV;QAED,IAAM,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;QAEtE,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C;CAzED;;;ICfA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
@@ -23,7 +23,7 @@ var TuiPrimitiveCalendarMobileComponent = /** @class */ (function (_super) {
23
23
  TuiPrimitiveCalendarMobileComponent = __decorate([
24
24
  Component({
25
25
  selector: 'tui-primitive-calendar-mobile',
26
- 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 [class.t-cell_disabled]=\"itemIsDisabled(sheet[rowIndex][colIndex])\"\n [attr.data-tui-element-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
+ 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 [class.t-cell_disabled]=\"itemIsDisabled(sheet[rowIndex][colIndex])\"\n [attr.data-tui-element-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",
27
27
  changeDetection: ChangeDetectionStrategy.OnPush,
28
28
  host: {
29
29
  '[class._ios]': 'isIOS',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js","sources":["ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk';\nimport {TUI_ORDERED_SHORT_WEEK_DAYS, TuiPrimitiveCalendarComponent} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n/**\n * @internal\n * @dynamic\n */\n@Component({\n selector: 'tui-primitive-calendar-mobile',\n templateUrl: './primitive-calendar-mobile.template.html',\n styleUrls: ['./primitive-calendar-mobile.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n weekDays$: Observable<[string, string, string, string, string, string, string]>,\n ) {\n super(weekDays$);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiLetModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiCalendarSheetPipeModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarMobileComponent} from './primitive-calendar-mobile.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [\n TuiRepeatTimesModule,\n TuiCalendarSheetPipeModule,\n TuiRippleModule,\n TuiLetModule,\n ],\n declarations: [TuiPrimitiveCalendarMobileComponent],\n exports: [TuiPrimitiveCalendarMobileComponent],\n})\nexport class TuiPrimitiveCalendarMobileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAKA;;;;;IAayD,uDAA6B;IAClF,6CACiC,KAAc,EAE3C,SAA+E;QAHnF,YAKI,kBAAM,SAAS,CAAC,SACnB;QALgC,WAAK,GAAL,KAAK,CAAS;;KAK9C;;8CALI,MAAM,SAAC,UAAU;gBAEP,UAAU,uBADpB,MAAM,SAAC,2BAA2B;;IAH9B,mCAAmC;QAT/C,SAAS,CAAC;YACP,QAAQ,EAAE,+BAA+B;YACzC,26BAAwD;YAExD,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,IAAI,EAAE;gBACF,cAAc,EAAE,OAAO;aAC1B;;SACJ,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;OAH/B,mCAAmC,CAQ/C;IAAD,0CAAC;CAAA,CARwD,6BAA6B;;ACXtF;;;;IAaA;KAAgD;IAAnC,gCAAgC;QAV5C,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,oBAAoB;gBACpB,0BAA0B;gBAC1B,eAAe;gBACf,YAAY;aACf;YACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;YACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;SACjD,CAAC;OACW,gCAAgC,CAAG;IAAD,uCAAC;CAAhD;;ACpBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js","sources":["ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk';\nimport {TUI_ORDERED_SHORT_WEEK_DAYS, TuiPrimitiveCalendarComponent} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n/**\n * @internal\n * @dynamic\n */\n@Component({\n selector: 'tui-primitive-calendar-mobile',\n templateUrl: './primitive-calendar-mobile.template.html',\n styleUrls: ['./primitive-calendar-mobile.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n weekDays$: Observable<[string, string, string, string, string, string, string]>,\n ) {\n super(weekDays$);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiLetModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiCalendarSheetPipeModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarMobileComponent} from './primitive-calendar-mobile.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [\n TuiRepeatTimesModule,\n TuiCalendarSheetPipeModule,\n TuiRippleModule,\n TuiLetModule,\n ],\n declarations: [TuiPrimitiveCalendarMobileComponent],\n exports: [TuiPrimitiveCalendarMobileComponent],\n})\nexport class TuiPrimitiveCalendarMobileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAKA;;;;;IAayD,uDAA6B;IAClF,6CACiC,KAAc,EAE3C,SAA+E;QAHnF,YAKI,kBAAM,SAAS,CAAC,SACnB;QALgC,WAAK,GAAL,KAAK,CAAS;;KAK9C;;8CALI,MAAM,SAAC,UAAU;gBAEP,UAAU,uBADpB,MAAM,SAAC,2BAA2B;;IAH9B,mCAAmC;QAT/C,SAAS,CAAC;YACP,QAAQ,EAAE,+BAA+B;YACzC,66BAAwD;YAExD,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,IAAI,EAAE;gBACF,cAAc,EAAE,OAAO;aAC1B;;SACJ,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;OAH/B,mCAAmC,CAQ/C;IAAD,0CAAC;CAAA,CARwD,6BAA6B;;ACXtF;;;;IAaA;KAAgD;IAAnC,gCAAgC;QAV5C,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,oBAAoB;gBACpB,0BAA0B;gBAC1B,eAAe;gBACf,YAAY;aACf;YACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;YACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;SACjD,CAAC;OACW,gCAAgC,CAAG;IAAD,uCAAC;CAAhD;;ACpBA;;;;;;"}
package/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from '@taiga-ui/addon-mobile/components';
2
2
  export * from '@taiga-ui/addon-mobile/const';
3
- export * from '@taiga-ui/addon-mobile/interfaces';
4
3
  export * from '@taiga-ui/addon-mobile/directives';
5
4
  export * from '@taiga-ui/addon-mobile/enums';
5
+ export * from '@taiga-ui/addon-mobile/interfaces';
6
6
  export * from '@taiga-ui/addon-mobile/tokens';
7
7
  export * from '@taiga-ui/addon-mobile/types';
8
8
  export * from '@taiga-ui/addon-mobile/utils';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"TuiPrimitiveCalendarMobileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiPrimitiveCalendarComponent","line":18,"character":57},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"tui-primitive-calendar-mobile","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":13,"character":21},"member":"OnPush"},"host":{"[class._ios]":"isIOS","$quoted$":["[class._ios]"]},"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 [class.t-cell_disabled]=\"itemIsDisabled(sheet[rowIndex][colIndex])\"\n [attr.data-tui-element-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}.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-tui-element-range]:after{background-color:var(--tui-primary-text)}.t-cell[data-tui-element-range]>.t-item{color:var(--tui-primary-text)}.t-cell[data-tui-element-range]>.t-item:after,.t-cell[data-tui-element-range]>.t-item:before{background-color:var(--tui-primary)}.t-cell[data-tui-element-range][data-tui-element-state=hovered]>.t-item:after,.t-cell[data-tui-element-range][data-tui-element-state=hovered]>.t-item:before{background-color:var(--tui-primary-hover)}.t-cell[data-tui-element-range][data-tui-element-state=pressed]>.t-item:after,.t-cell[data-tui-element-range][data-tui-element-state=pressed]>.t-item:before{background-color:var(--tui-primary-active)}.t-cell[data-tui-element-range=end]>.t-item:before{left:.25rem}.t-cell[data-tui-element-range=end]>.t-item:after{left:-2rem;right:100%;transform:translateX(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-tui-element-range=start]>.t-item:before{right:.25rem}.t-cell[data-tui-element-range=start]>.t-item:after{left:100%;right:-2rem;transform:translateX(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-tui-element-state=disabled]{pointer-events:none}.t-cell[data-tui-element-state=disabled]>.t-item{opacity:.36}.t-cell[data-tui-element-state=hovered]:hover:not([data-tui-element-range])>.t-item{background-color:var(--tui-secondary-hover)}.t-cell[data-tui-element-state=pressed]:hover:not([data-tui-element-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_disabled{opacity:var(--tui-disabled-opacity)}.t-cell_interval:before{background-color:var(--tui-base-02)}.t-cell_interval:last-child:first-child:before{right:-100vw}.t-cell[data-tui-element-range=end],.t-cell[data-tui-element-range=single],.t-cell[data-tui-element-range=start]{border-radius:100%;background-color:var(--tui-link);color:var(--tui-accent-text);font-weight:500}.t-cell[data-tui-element-range=end]:after,.t-cell[data-tui-element-range=single]:after,.t-cell[data-tui-element-range=start]:after{background-color:var(--tui-base-01)}:host._ios .t-cell[data-tui-element-range=end],:host._ios .t-cell[data-tui-element-range=single],:host._ios .t-cell[data-tui-element-range=start]{font-weight:600}.t-cell[data-tui-element-range=start]:before{left:50%;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-tui-element-range=end]:not(:first-child):before{left:50%;background:var(--tui-base-01);border-radius:0}.t-cell[data-tui-element-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}}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":20,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":20,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_ORDERED_SHORT_WEEK_DAYS","line":21,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":22,"character":30,"module":"./primitive-calendar-mobile.component"}]}]}]}},"TuiPrimitiveCalendarMobileModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiRepeatTimesModule","line":12,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiCalendarSheetPipeModule","line":13,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/directives/ripple","name":"TuiRippleModule","line":14,"character":8},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":15,"character":8}],"declarations":[{"__symbolic":"reference","name":"TuiPrimitiveCalendarMobileComponent"}],"exports":[{"__symbolic":"reference","name":"TuiPrimitiveCalendarMobileComponent"}]}]}],"members":{}}},"origins":{"TuiPrimitiveCalendarMobileComponent":"./primitive-calendar-mobile.component","TuiPrimitiveCalendarMobileModule":"./primitive-calendar-mobile.module"},"importAs":"@taiga-ui/addon-mobile/internal/primitive-calendar-mobile"}
1
+ {"__symbolic":"module","version":4,"metadata":{"TuiPrimitiveCalendarMobileComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiPrimitiveCalendarComponent","line":18,"character":57},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"tui-primitive-calendar-mobile","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":13,"character":21},"member":"OnPush"},"host":{"[class._ios]":"isIOS","$quoted$":["[class._ios]"]},"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 [class.t-cell_disabled]=\"itemIsDisabled(sheet[rowIndex][colIndex])\"\n [attr.data-tui-element-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}.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-tui-element-range]:after{background-color:var(--tui-primary-text)}.t-cell[data-tui-element-range]>.t-item{color:var(--tui-primary-text)}.t-cell[data-tui-element-range]>.t-item:after,.t-cell[data-tui-element-range]>.t-item:before{background-color:var(--tui-primary)}.t-cell[data-tui-element-range][data-tui-element-state=hovered]>.t-item:after,.t-cell[data-tui-element-range][data-tui-element-state=hovered]>.t-item:before{background-color:var(--tui-primary-hover)}.t-cell[data-tui-element-range][data-tui-element-state=pressed]>.t-item:after,.t-cell[data-tui-element-range][data-tui-element-state=pressed]>.t-item:before{background-color:var(--tui-primary-active)}.t-cell[data-tui-element-range=end]>.t-item:before{left:.25rem}.t-cell[data-tui-element-range=end]>.t-item:after{left:-2rem;right:100%;transform:translateX(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-tui-element-range=start]>.t-item:before{right:.25rem}.t-cell[data-tui-element-range=start]>.t-item:after{left:100%;right:-2rem;transform:translateX(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-tui-element-state=disabled]{pointer-events:none}.t-cell[data-tui-element-state=disabled]>.t-item{opacity:.36}.t-cell[data-tui-element-state=hovered]:hover:not([data-tui-element-range])>.t-item{background-color:var(--tui-secondary-hover)}.t-cell[data-tui-element-state=pressed]:hover:not([data-tui-element-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_disabled{opacity:var(--tui-disabled-opacity)}.t-cell_interval:before{background-color:var(--tui-base-02)}.t-cell_interval:last-child:first-child:before{right:-100vw}.t-cell[data-tui-element-range=end],.t-cell[data-tui-element-range=single],.t-cell[data-tui-element-range=start]{border-radius:100%;background-color:var(--tui-link);color:var(--tui-accent-text);font-weight:500}.t-cell[data-tui-element-range=end]:after,.t-cell[data-tui-element-range=single]:after,.t-cell[data-tui-element-range=start]:after{background-color:var(--tui-base-01)}:host._ios .t-cell[data-tui-element-range=end],:host._ios .t-cell[data-tui-element-range=single],:host._ios .t-cell[data-tui-element-range=start]{font-weight:600}.t-cell[data-tui-element-range=start]:before{left:50%;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-tui-element-range=end]:not(:first-child):before{left:50%;background:var(--tui-base-01);border-radius:0}.t-cell[data-tui-element-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}}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":20,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":20,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":21,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_ORDERED_SHORT_WEEK_DAYS","line":21,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":22,"character":30,"module":"./primitive-calendar-mobile.component"}]}]}]}},"TuiPrimitiveCalendarMobileModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiRepeatTimesModule","line":12,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiCalendarSheetPipeModule","line":13,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/directives/ripple","name":"TuiRippleModule","line":14,"character":8},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiLetModule","line":15,"character":8}],"declarations":[{"__symbolic":"reference","name":"TuiPrimitiveCalendarMobileComponent"}],"exports":[{"__symbolic":"reference","name":"TuiPrimitiveCalendarMobileComponent"}]}]}],"members":{}}},"origins":{"TuiPrimitiveCalendarMobileComponent":"./primitive-calendar-mobile.component","TuiPrimitiveCalendarMobileModule":"./primitive-calendar-mobile.module"},"importAs":"@taiga-ui/addon-mobile/internal/primitive-calendar-mobile"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-mobile",
3
- "version": "2.23.0",
3
+ "version": "2.27.0",
4
4
  "description": "Extension package for Taiga UI that adds support for mobile specific behaviors such as custom data pickers, dropdowns, etc.",
5
5
  "keywords": [
6
6
  "angular",
@@ -14,10 +14,11 @@
14
14
  "@angular/cdk": ">=9.0.0",
15
15
  "@angular/common": ">=9.0.0",
16
16
  "@angular/core": ">=9.0.0",
17
- "@tinkoff/ng-polymorpheus": "3.1.11",
18
- "@taiga-ui/cdk": "2.23.0",
19
- "@taiga-ui/core": "2.23.0",
20
- "@taiga-ui/kit": "2.23.0",
17
+ "@ng-web-apis/common": "1.12.1",
18
+ "@tinkoff/ng-polymorpheus": "3.1.12",
19
+ "@taiga-ui/cdk": "2.27.0",
20
+ "@taiga-ui/core": "2.27.0",
21
+ "@taiga-ui/kit": "2.27.0",
21
22
  "rxjs": ">=6.0.0"
22
23
  },
23
24
  "main": "bundles/taiga-ui-addon-mobile.umd.js",
@@ -7,6 +7,7 @@
7
7
  @import '../../core/styles/themes/wrapper/textfield.less';
8
8
  @import '../../core/styles/themes/wrapper/table.less';
9
9
  @import '../../core/styles/themes/wrapper/primary.less';
10
+ @import '../../core/styles/themes/wrapper/accent.less';
10
11
  @import '../../core/styles/themes/wrapper/secondary.less';
11
12
  @import '../../core/styles/themes/wrapper/whiteblock.less';
12
13
  @import '../../core/styles/themes/wrapper/outline.less';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/addon-mobile/components"},{"from":"@taiga-ui/addon-mobile/const"},{"from":"@taiga-ui/addon-mobile/interfaces"},{"from":"@taiga-ui/addon-mobile/directives"},{"from":"@taiga-ui/addon-mobile/enums"},{"from":"@taiga-ui/addon-mobile/tokens"},{"from":"@taiga-ui/addon-mobile/types"},{"from":"@taiga-ui/addon-mobile/utils"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/addon-mobile"}
1
+ {"__symbolic":"module","version":4,"exports":[{"from":"@taiga-ui/addon-mobile/components"},{"from":"@taiga-ui/addon-mobile/const"},{"from":"@taiga-ui/addon-mobile/directives"},{"from":"@taiga-ui/addon-mobile/enums"},{"from":"@taiga-ui/addon-mobile/interfaces"},{"from":"@taiga-ui/addon-mobile/tokens"},{"from":"@taiga-ui/addon-mobile/types"},{"from":"@taiga-ui/addon-mobile/utils"}],"metadata":{},"origins":{},"importAs":"@taiga-ui/addon-mobile"}