@taiga-ui/addon-mobile 2.20.0 → 2.24.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 (91) hide show
  1. package/README.md +9 -4
  2. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +2 -2
  3. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
  4. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js +2 -2
  5. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +1 -1
  7. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +1 -1
  8. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js +1 -1
  9. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +1 -1
  11. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js +1 -1
  12. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +7 -7
  13. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
  14. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js +1 -1
  15. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +7 -11
  17. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +1 -1
  18. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js +2 -2
  19. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +7 -11
  21. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
  22. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js +2 -2
  23. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +2 -2
  25. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js +1 -1
  26. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +2 -2
  27. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
  28. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js +1 -1
  29. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js.map +1 -1
  30. package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
  31. package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +1 -1
  32. package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.metadata.json +1 -1
  33. package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +1 -1
  34. package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +1 -1
  35. package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.metadata.json +1 -1
  36. package/components/theme-android/theme-android.component.d.ts +0 -1
  37. package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.metadata.json +1 -1
  38. package/components/theme-ios/theme-ios.component.d.ts +0 -1
  39. package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.metadata.json +1 -1
  40. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +3 -3
  41. package/esm2015/components/mobile-dialog/mobile-dialog.component.js +2 -2
  42. package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +1 -1
  43. package/esm2015/components/sheet/components/sheet/sheet.component.js +3 -3
  44. package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +3 -3
  45. package/esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js +1 -1
  46. package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +2 -2
  47. package/esm2015/components/theme-android/theme-android.component.js +4 -12
  48. package/esm2015/components/theme-ios/theme-ios.component.js +4 -12
  49. package/esm2015/directives/sidebar/sidebar.component.js +2 -2
  50. package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +3 -3
  51. package/esm5/components/mobile-calendar/mobile-calendar.component.js +3 -3
  52. package/esm5/components/mobile-dialog/mobile-dialog.component.js +2 -2
  53. package/esm5/components/pull-to-refresh/loader-android/loader-android.component.js +1 -1
  54. package/esm5/components/sheet/components/sheet/sheet.component.js +3 -3
  55. package/esm5/components/sheet/components/sheet-bar/sheet-bar.component.js +3 -3
  56. package/esm5/components/sheet/components/sheet-heading/sheet-heading.component.js +1 -1
  57. package/esm5/components/sheet/components/sheets-host/sheets-host.component.js +2 -2
  58. package/esm5/components/theme-android/theme-android.component.js +6 -11
  59. package/esm5/components/theme-ios/theme-ios.component.js +6 -11
  60. package/esm5/directives/sidebar/sidebar.component.js +2 -2
  61. package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +3 -3
  62. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +2 -2
  63. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  64. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  65. package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  66. package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -1
  67. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +7 -7
  68. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  69. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js +3 -11
  70. package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  71. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js +3 -11
  72. package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  73. package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +2 -2
  74. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +2 -2
  75. package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  76. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +2 -2
  77. package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  78. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
  79. package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
  80. package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -1
  81. package/fesm5/taiga-ui-addon-mobile-components-sheet.js +7 -7
  82. package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  83. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js +5 -10
  84. package/fesm5/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
  85. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js +5 -10
  86. package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
  87. package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js +2 -2
  88. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +2 -2
  89. package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
  90. package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json +1 -1
  91. package/package.json +5 -5
@@ -65,7 +65,7 @@ TuiSheetHeadingComponent = __decorate([
65
65
  selector: '[tuiSheetHeading]',
66
66
  template: "<button\n tuiIconButton\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconCloseLarge\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n",
67
67
  changeDetection: ChangeDetectionStrategy.OnPush,
68
- styles: [":host{position:-webkit-sticky;position:sticky;top:0;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;z-index:1;background:var(--tui-base-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px rgba(255,255,255,.25)}:host:after{content:'';position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}"]
68
+ styles: [":host{position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-base-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px rgba(255,255,255,.25)}:host:after{content:'';position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}"]
69
69
  }),
70
70
  __param(0, Inject(TuiIdService)),
71
71
  __param(1, Inject(ElementRef)),
@@ -185,7 +185,7 @@ __decorate([
185
185
  TuiSheetComponent = __decorate([
186
186
  Component({
187
187
  selector: 'tui-sheet',
188
- template: "<div class=\"t-bumpers\">\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div #sheet class=\"t-wrapper\" [class.t-wrapper_shadow]=\"!item.image\">\n <header\n *ngIf=\"item.image\"\n polymorpheus-outlet\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n [content]=\"item.image\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <img [src]=\"content\" alt=\"\" class=\"t-image\" />\n </ng-template>\n </header>\n <section #content tuiSheetStop class=\"t-sheet\">\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"item.content\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <h2 tuiSheetHeading class=\"t-heading\">{{content}}</h2>\n </ng-template>\n </div>\n </section>\n</div>\n",
188
+ template: "<div class=\"t-bumpers\">\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div #sheet class=\"t-wrapper\" [class.t-wrapper_shadow]=\"!item.image\">\n <header\n *ngIf=\"item.image\"\n polymorpheus-outlet\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n [content]=\"item.image\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <img alt=\"\" class=\"t-image\" [src]=\"content\" />\n </ng-template>\n </header>\n <section #content tuiSheetStop class=\"t-sheet\">\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"item.content\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <h2 tuiSheetHeading class=\"t-heading\">{{ content }}</h2>\n </ng-template>\n </div>\n </section>\n</div>\n",
189
189
  providers: TUI_SHEET_PROVIDERS,
190
190
  animations: [tuiSlideInTop],
191
191
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -196,7 +196,7 @@ TuiSheetComponent = __decorate([
196
196
  '[$.class._stuck]': 'stuck$',
197
197
  '($.class._stuck)': 'stuck$',
198
198
  },
199
- styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;box-shadow:0 4rem var(--tui-base-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._stuck{-ms-scroll-snap-type:none;scroll-snap-type:none}.t-bumpers{height:100%;display:flex;scroll-snap-align:start;scroll-margin:-1px}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem}.t-wrapper{border-radius:inherit;pointer-events:auto;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12)}.t-top{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:-webkit-sticky;position:sticky;top:0;pointer-events:auto;border-radius:.8rem .8rem 0 0;transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{width:100%;display:block}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1);box-shadow:0 4rem var(--tui-base-01)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;height:1.5rem;z-index:1;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-base-01);box-shadow:inset 0 1px rgba(255,255,255,.25)}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:0 1rem 1rem;border-radius:inherit;background:var(--tui-base-01)}.t-heading{padding-bottom:.5rem}"]
199
+ styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;box-shadow:0 4rem var(--tui-base-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._stuck{-ms-scroll-snap-type:none;scroll-snap-type:none}.t-bumpers{display:flex;height:100%;scroll-snap-align:start;scroll-margin:-1px}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem}.t-wrapper{border-radius:inherit;pointer-events:auto;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12)}.t-top{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:sticky;top:0;pointer-events:auto;border-radius:.8rem .8rem 0 0;transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1);box-shadow:0 4rem var(--tui-base-01)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-base-01);box-shadow:inset 0 1px rgba(255,255,255,.25)}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:0 1rem 1rem;border-radius:inherit;background:var(--tui-base-01)}.t-heading{padding-bottom:.5rem}"]
200
200
  }),
201
201
  __param(0, Inject(TUI_SHEET_SCROLL)),
202
202
  __param(1, Inject(ElementRef)),
@@ -225,9 +225,9 @@ TuiSheetBarComponent.ctorParameters = () => [
225
225
  TuiSheetBarComponent = __decorate([
226
226
  Component({
227
227
  selector: 'tui-sheet-bar',
228
- template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div class=\"t-bar\" style=\"transform: rotate(-{{deg}}deg)\"></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div class=\"t-bar\" style=\"transform: rotate({{deg}}deg)\"></div>\n</ng-container>\n",
228
+ template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div style=\"transform: rotate(-{{ deg }}deg)\" class=\"t-bar\"></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div style=\"transform: rotate({{ deg }}deg)\" class=\"t-bar\"></div>\n</ng-container>\n",
229
229
  changeDetection: ChangeDetectionStrategy.OnPush,
230
- styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;height:1.25rem;display:flex;align-items:center;justify-content:center;z-index:2;opacity:.3}.t-bar{content:'';height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}"]
230
+ styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:'';height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}"]
231
231
  }),
232
232
  __param(0, Inject(TuiSheetComponent)),
233
233
  __param(1, Inject(TUI_SHEET_SCROLL)),
@@ -304,10 +304,10 @@ TuiSheetsHostComponent.ctorParameters = () => [
304
304
  TuiSheetsHostComponent = __decorate([
305
305
  Component({
306
306
  selector: 'tui-sheets-host',
307
- template: "<ng-container *ngIf=\"service.sheets$ | async as items\">\n <div\n *ngFor=\"let item of items\"\n tuiSheetWrapper\n class=\"t-wrapper\"\n [class.t-wrapper_overlay]=\"item.overlay\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n [@tuiSlideInTop]=\"options\"\n [@tuiFadeIn]=\"options\"\n >\n <tui-sheet\n tuiScrollRef\n tuiOverscroll=\"all\"\n [style.height.px]=\"getHeight(height$ | async)\"\n [item]=\"item\"\n (close)=\"close(item)\"\n ></tui-sheet>\n </div>\n <div class=\"t-overlay\" (click)=\"close(items[0])\"></div>\n</ng-container>\n",
307
+ template: "<ng-container *ngIf=\"service.sheets$ | async as items\">\n <div\n *ngFor=\"let item of items\"\n tuiSheetWrapper\n class=\"t-wrapper\"\n [@tuiSlideInTop]=\"options\"\n [@tuiFadeIn]=\"options\"\n [class.t-wrapper_overlay]=\"item.overlay\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n >\n <tui-sheet\n tuiScrollRef\n tuiOverscroll=\"all\"\n [style.height.px]=\"getHeight(height$ | async)\"\n [item]=\"item\"\n (close)=\"close(item)\"\n ></tui-sheet>\n </div>\n <div class=\"t-overlay\" (click)=\"close(items[0])\"></div>\n</ng-container>\n",
308
308
  changeDetection: ChangeDetectionStrategy.OnPush,
309
309
  animations: [tuiSlideInTop, tuiFadeIn],
310
- styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;height:0;display:block}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;height:100vh;background:#000;opacity:.001;z-index:-1;pointer-events:none}._overlay~.t-overlay,.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;width:100%;height:100vh;bottom:0;z-index:0;overflow:hidden}.t-wrapper._overlay,.t-wrapper._visible{overflow:visible}"]
310
+ styles: [":host{position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100vh;background:#000;opacity:.001;pointer-events:none}._overlay~.t-overlay,.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper._overlay,.t-wrapper._visible{overflow:visible}"]
311
311
  }),
312
312
  __param(0, Inject(TUI_SHEET_OFFSET)),
313
313
  __param(1, Inject(TUI_ANIMATION_OPTIONS)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-components-sheet.js","sources":["ng://@taiga-ui/addon-mobile/components/sheet/ios.hacks.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet/sheet.providers.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet/sheet.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet-bar/sheet-bar.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet-options.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet.service.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-stop/sheet-stop.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-top/sheet-top.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet.module.ts","ng://@taiga-ui/addon-mobile/components/sheet/taiga-ui-addon-mobile-components-sheet.ts"],"sourcesContent":["import {NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk';\nimport {concat, merge, Observable, race, timer, zip} from 'rxjs';\nimport {\n debounceTime,\n delay,\n filter,\n map,\n mapTo,\n share,\n startWith,\n switchMap,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nexport function iosScrollFactory(\n element: HTMLElement,\n documentRef: Document,\n ngZone: NgZone,\n): Observable<number> {\n const load$ = typedFromEvent(element, 'load', {capture: true});\n const touchstart$ = typedFromEvent(element, 'touchstart', {passive: true});\n const touchmove$ = typedFromEvent(documentRef, 'touchmove', {passive: true});\n const touchend$ = typedFromEvent(documentRef, 'touchend');\n const scroll$ = typedFromEvent(element, 'scroll').pipe(map(() => element.scrollTop));\n const result$ = merge(\n load$.pipe(\n delay(0),\n map(() => element.scrollTop),\n ),\n touchstart$.pipe(\n switchMap(({touches}) => {\n const {screenY} = touches[0];\n const {scrollTop} = element;\n\n return concat(\n // Sometimes touch is triggered without scroll in iOS, filter that\n zip(touchmove$, scroll$).pipe(\n map(([{touches}]) => scrollTop + screenY - touches[0].screenY),\n takeUntil(touchend$),\n ),\n scroll$,\n );\n }),\n ),\n );\n\n return concat(scroll$.pipe(take(1)), result$).pipe(tuiZonefree(ngZone), share());\n}\n\nexport function processDragged(\n dragged$: Observable<boolean>,\n scroll$: Observable<unknown>,\n): Observable<boolean> {\n const touchstart$ = dragged$.pipe(filter(Boolean));\n const touchend$ = dragged$.pipe(filter(v => !v));\n const race$ = race(scroll$, timer(100)).pipe(\n debounceTime(200),\n take(1),\n mapTo(false),\n );\n\n return touchstart$.pipe(\n switchMapTo(touchend$.pipe(switchMapTo(race$), startWith(true))),\n startWith(false),\n );\n}\n\nexport function fakeSmoothScroll({style}: HTMLElement, offset: number) {\n style.transition = 'none';\n style.transform = `scaleX(-1) translate3d(0, ${offset}px, 0)`;\n\n setTimeout(() => {\n style.transition = '';\n style.transform = '';\n });\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n} from '@angular/core';\nimport {TuiIdService} from '@taiga-ui/cdk';\nimport {TUI_CLOSE_WORD} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nexport const TUI_SHEET_CLOSE = 'tui-sheet-close';\nexport const TUI_SHEET_ID = 'tui-sheet-id';\n\n@Component({\n selector: '[tuiSheetHeading]',\n templateUrl: 'sheet-heading.template.html',\n styleUrls: ['sheet-heading.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSheetHeadingComponent implements AfterViewInit {\n readonly id = this.idService.generate();\n\n constructor(\n @Inject(TuiIdService) private readonly idService: TuiIdService,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n ) {}\n\n ngAfterViewInit() {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SHEET_ID, {bubbles: true, detail: this.id}),\n );\n }\n\n onClick() {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SHEET_CLOSE, {bubbles: true}),\n );\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ElementRef, InjectionToken, NgZone, Provider} from '@angular/core';\nimport {TUI_IS_IOS, tuiZonefree, typedFromEvent} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core';\nimport {merge, Observable} from 'rxjs';\nimport {map, mapTo, share} from 'rxjs/operators';\nimport {iosScrollFactory} from '../../ios.hacks';\n\nexport const TUI_SHEET_SCROLL = new InjectionToken<number>(\n 'Current scrollTop of a sheet',\n);\n\nexport const TUI_SHEET_DRAGGED = new InjectionToken<boolean>(\n 'The sheet is being dragged',\n);\n\nexport const TUI_SHEET_OFFSET = new InjectionToken<number>(\n 'Offset from the top at which the sheet stops',\n {\n factory: () => 16,\n },\n);\n\nexport const TUI_SHEET_PROVIDERS: Provider[] = [\n {\n provide: TUI_SHEET_DRAGGED,\n deps: [ElementRef],\n useFactory: sheetDraggedFactory,\n },\n {\n provide: TUI_SHEET_SCROLL,\n deps: [ElementRef, NgZone, DOCUMENT, TUI_IS_IOS],\n useFactory: sheetScrollFactory,\n },\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n];\n\nexport function sheetDraggedFactory({\n nativeElement,\n}: ElementRef<HTMLElement>): Observable<boolean> {\n return merge(\n typedFromEvent(nativeElement, 'touchstart', {passive: true}).pipe(mapTo(true)),\n typedFromEvent(nativeElement, 'touchend').pipe(mapTo(false)),\n );\n}\n\nexport function sheetScrollFactory(\n {nativeElement}: ElementRef<HTMLElement>,\n ngZone: NgZone,\n documentRef: Document,\n isIos: boolean,\n): Observable<number> {\n return isIos\n ? iosScrollFactory(nativeElement, documentRef, ngZone)\n : merge(\n typedFromEvent(nativeElement, 'scroll'),\n typedFromEvent(nativeElement, 'load', {capture: true}),\n ).pipe(\n map(() => nativeElement.scrollTop),\n tuiZonefree(ngZone),\n share(),\n );\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgZone,\n QueryList,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {EMPTY_QUERY, TUI_IS_IOS, tuiPure, tuiZonefull} from '@taiga-ui/cdk';\nimport {tuiSlideInTop} from '@taiga-ui/core';\nimport {TUI_MORE_WORD} from '@taiga-ui/kit';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {fakeSmoothScroll} from '../../ios.hacks';\nimport {TuiSheet} from '../../sheet';\nimport {TUI_SHEET_ID} from '../sheet-heading/sheet-heading.component';\nimport {TUI_SHEET_PROVIDERS, TUI_SHEET_SCROLL} from './sheet.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-sheet',\n templateUrl: 'sheet.template.html',\n styleUrls: ['sheet.style.less'],\n providers: TUI_SHEET_PROVIDERS,\n animations: [tuiSlideInTop],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'dialog',\n '[attr.aria-labelledby]': 'id',\n '[class._ios]': 'isIos',\n '[$.class._stuck]': 'stuck$',\n '($.class._stuck)': 'stuck$',\n },\n})\nexport class TuiSheetComponent<T> implements AfterViewInit {\n @Input()\n item!: TuiSheet<T>;\n\n id = '';\n\n readonly stuck$ = this.scroll$.pipe(map(y => Math.floor(y) > this.contentTop));\n\n @ViewChild('sheet')\n private readonly sheet?: ElementRef<HTMLElement>;\n\n @ViewChild('content')\n private readonly content?: ElementRef<HTMLElement>;\n\n @ViewChildren('stops')\n private readonly stopsRefs: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n constructor(\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(TUI_IS_IOS) readonly isIos: boolean,\n @Inject(TUI_MORE_WORD) readonly moreWord$: Observable<string>,\n ) {}\n\n get stops(): readonly number[] {\n return this.getStops(this.stopsRefs);\n }\n\n get imageStop(): number {\n return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;\n }\n\n get imageHeight(): number {\n return this.contentTop - this.sheetTop;\n }\n\n @tuiPure\n get context(): TuiSheet<T> {\n return {\n ...this.item,\n scroll$: this.scroll$.pipe(tuiZonefull(this.ngZone)),\n };\n }\n\n ngAfterViewInit() {\n const stops = [...this.stops, this.sheetTop, this.contentTop];\n\n this.elementRef.nativeElement.scrollTop = stops[this.item.initial];\n }\n\n @HostListener(TUI_SHEET_ID, ['$event.detail'])\n onId(id: string) {\n this.id = id;\n }\n\n scrollTo(top: number = this.sheetTop) {\n const {nativeElement} = this.elementRef;\n\n if (this.isIos) {\n fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);\n }\n\n nativeElement.scrollTo({top, behavior: 'smooth'});\n }\n\n private get contentTop(): number {\n return this.content?.nativeElement.offsetTop ?? Infinity;\n }\n\n private get sheetTop(): number {\n return this.sheet?.nativeElement.offsetTop ?? Infinity;\n }\n\n @tuiPure\n private getStops(stops: QueryList<ElementRef<HTMLElement>>): readonly number[] {\n return stops\n .toArray()\n .map(\n ({nativeElement}) => nativeElement.offsetTop + nativeElement.clientHeight,\n );\n }\n}\n","import {ChangeDetectionStrategy, Component, Inject, NgZone} from '@angular/core';\nimport {clamp} from '@taiga-ui/cdk';\nimport {tuiZonefulMap} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {TuiSheetComponent} from '../sheet/sheet.component';\nimport {TUI_SHEET_SCROLL} from '../sheet/sheet.providers';\n\n@Component({\n selector: 'tui-sheet-bar',\n templateUrl: 'sheet-bar.template.html',\n styleUrls: ['sheet-bar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSheetBarComponent {\n readonly rotate$ = this.scroll$.pipe(\n tuiZonefulMap(y => clamp(10 - (y - this.stop) / 5, 0, 10), this.ngZone),\n );\n\n constructor(\n @Inject(TuiSheetComponent) private readonly sheet: TuiSheetComponent<unknown>,\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n ) {}\n\n private get stop() {\n return this.sheet.stops[0] ?? 0;\n }\n}\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {TuiSheet} from './sheet';\n\nexport interface TuiSheetOptions<I = undefined, O = unknown> {\n readonly image: PolymorpheusContent<TuiSheet<O, I>>;\n readonly imageSlide: boolean;\n readonly stops: readonly string[];\n readonly initial: number;\n readonly closeable: boolean;\n readonly overlay: boolean;\n readonly data: I;\n}\n\nexport const TUI_SHEET_DEFAULT_OPTIONS: Omit<TuiSheetOptions, 'data'> = {\n image: '',\n imageSlide: true,\n stops: [],\n initial: 0,\n closeable: true,\n overlay: false,\n};\n\nexport const TUI_SHEET_OPTIONS = new InjectionToken<Omit<TuiSheetOptions, 'data'>>(\n 'Default parameters for sheet component',\n {\n factory: () => TUI_SHEET_DEFAULT_OPTIONS,\n },\n);\n","import {Inject, Injectable} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, EMPTY, Observable} from 'rxjs';\nimport {TuiSheet} from './sheet';\nimport {TUI_SHEET_OPTIONS, TuiSheetOptions} from './sheet-options';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiSheetService {\n readonly sheets$ = new BehaviorSubject<TuiSheet<any, any>[]>([]);\n\n constructor(@Inject(TUI_SHEET_OPTIONS) private readonly options: TuiSheetOptions) {}\n\n open<G>(\n content: PolymorpheusContent<TuiSheet<G>>,\n options: Partial<TuiSheetOptions> = {},\n ): Observable<G> {\n return new Observable($implicit => {\n const completeWith = (result: G) => {\n $implicit.next(result);\n $implicit.complete();\n };\n const sheet: TuiSheet<any> = {\n ...this.options,\n ...options,\n content,\n completeWith,\n $implicit,\n scroll$: EMPTY,\n };\n\n this.sheets$.next([...this.sheets$.value, sheet]);\n\n return () => {\n this.sheets$.next(this.sheets$.value.filter(item => item !== sheet));\n };\n });\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_WINDOW_HEIGHT} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiFadeIn, tuiSlideInTop} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {TuiSheet} from '../../sheet';\nimport {TuiSheetService} from '../../sheet.service';\nimport {TUI_SHEET_OFFSET} from '../sheet/sheet.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-sheets-host',\n templateUrl: 'sheets-host.template.html',\n styleUrls: ['sheets-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop, tuiFadeIn],\n})\nexport class TuiSheetsHostComponent {\n constructor(\n @Inject(TUI_SHEET_OFFSET) private readonly offset: number,\n @Inject(TUI_ANIMATION_OPTIONS) readonly options: AnimationOptions,\n @Inject(TuiSheetService) readonly service: TuiSheetService,\n @Inject(TUI_WINDOW_HEIGHT) readonly height$: Observable<number>,\n ) {}\n\n close({closeable, $implicit}: TuiSheet<unknown>) {\n if (closeable) {\n $implicit.complete();\n }\n }\n\n getHeight(height: number | null): number {\n return (height ?? 0) - this.offset;\n }\n}\n","import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {typedFromEvent} from '@taiga-ui/cdk';\nimport {EMPTY, merge, Observable} from 'rxjs';\nimport {filter, startWith, switchMap} from 'rxjs/operators';\nimport {TUI_SHEET_CLOSE} from '../../components/sheet-heading/sheet-heading.component';\nimport {TuiSheetComponent} from '../../components/sheet/sheet.component';\nimport {\n TUI_SHEET_DRAGGED,\n TUI_SHEET_SCROLL,\n} from '../../components/sheet/sheet.providers';\n\n// @dynamic\n@Directive({\n selector: 'tui-sheet[close]',\n})\nexport class TuiSheetCloseDirective {\n @Output()\n readonly close: Observable<unknown> = merge(\n typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE),\n this.dragged$.pipe(\n startWith(false),\n switchMap(dragged =>\n dragged\n ? EMPTY\n : this.scroll$.pipe(\n startWith(this.elementRef.nativeElement.scrollTop),\n ),\n ),\n filter(y => this.sheet.item?.closeable && this.shouldClose(y)),\n ),\n );\n\n constructor(\n @Inject(TUI_SHEET_DRAGGED) private readonly dragged$: Observable<boolean>,\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiSheetComponent) private readonly sheet: TuiSheetComponent<unknown>,\n ) {}\n\n private shouldClose(scrollTop: number): boolean {\n const min = Math.min(\n this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight,\n this.sheet.stops[0] || Infinity,\n );\n\n return scrollTop < min / 2;\n }\n}\n","import {Directive, ElementRef, Inject} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n takeUntil,\n throttleTime,\n withLatestFrom,\n} from 'rxjs/operators';\nimport {\n TUI_SHEET_DRAGGED,\n TUI_SHEET_SCROLL,\n} from '../../components/sheet/sheet.providers';\n\n@Directive({\n selector: '[tuiSheetStop]',\n providers: [TuiDestroyService],\n})\nexport class TuiSheetStopDirective {\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_SHEET_DRAGGED) dragged$: Observable<boolean>,\n @Inject(TUI_SHEET_SCROLL) scroll$: Observable<number>,\n @Inject(TUI_SCROLL_REF) {nativeElement}: ElementRef<HTMLElement>,\n ) {\n scroll$\n .pipe(\n map(y => Math.floor(y) > elementRef.nativeElement.offsetTop),\n distinctUntilChanged(),\n withLatestFrom(dragged$),\n map(([above, dragged]) => !above && !dragged),\n filter(Boolean),\n throttleTime(100),\n takeUntil(destroy$),\n )\n .subscribe(() => {\n nativeElement.style.overflow = 'hidden';\n nativeElement.classList.remove('_stuck'); // iOS\n nativeElement.scrollTop = elementRef.nativeElement.offsetTop;\n\n setTimeout(() => {\n nativeElement.style.overflow = '';\n }, 100);\n });\n }\n}\n","import {Directive, Inject, Input} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {clamp, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {TUI_SHEET_OFFSET, TUI_SHEET_SCROLL} from '../../components/sheet/sheet.providers';\n\n// So that borders get rounded when image is visible for at least 10px\nconst OFFSET = 10;\n\n// @dynamic\n@Directive({\n selector: '[tuiSheetTop]',\n host: {\n '[$.style.transform]': 'transform$',\n '($.style.transform)': 'transform$',\n '[$.class._rounded]': 'rounded$',\n '($.class._rounded)': 'rounded$',\n '[$.class._clickthrough]': 'clickthrough$',\n '($.class._clickthrough)': 'clickthrough$',\n },\n})\nexport class TuiSheetTopDirective {\n @Input('tuiSheetTop')\n @tuiDefaultProp()\n stop = 0;\n\n readonly transform$ = this.scroll$.pipe(\n map(y => `translateY(${this.getY(y)}%) scaleX(-1)`),\n );\n\n readonly rounded$ = this.scroll$.pipe(map(y => y < this.stop + OFFSET));\n\n readonly clickthrough$ = this.scroll$.pipe(map(y => !!Math.round(this.getY(y))));\n\n constructor(\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(TUI_SHEET_OFFSET) private readonly offset: number,\n @Inject(WINDOW) private readonly windowRef: Window,\n ) {}\n\n private getY(scrollTop: number): number {\n const value = scrollTop - this.stop;\n const total = this.windowRef.innerHeight - this.offset - this.stop;\n\n return this.stop && clamp(100 - (value / total) * 100, 0, 100);\n }\n}\n","import {ContentChild, Directive, Inject} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {clamp, tuiPure} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {TuiSheetComponent} from '../../components/sheet/sheet.component';\nimport {\n TUI_SHEET_DRAGGED,\n TUI_SHEET_OFFSET,\n TUI_SHEET_SCROLL,\n} from '../../components/sheet/sheet.providers';\nimport {processDragged} from '../../ios.hacks';\n\n// Safety offset for shadow\nconst OFFSET = 16;\n\n// @dynamic\n@Directive({\n selector: '[tuiSheetWrapper]',\n host: {\n '[$.class._overlay]': 'overlay$',\n '($.class._overlay)': 'overlay$',\n '[$.class._visible]': 'visible$',\n '($.class._visible)': 'visible$',\n '[$.style.height.px]': 'height$',\n '($.style.height.px)': 'height$',\n },\n})\nexport class TuiSheetWrapperDirective {\n // Trying to get overflow: visible as early as possible for Safari\n touched = false;\n\n @ContentChild(TuiSheetComponent)\n private readonly sheet?: TuiSheetComponent<unknown>;\n\n @ContentChild(TuiSheetComponent, {read: TUI_SHEET_DRAGGED})\n private readonly dragged$!: Observable<boolean>;\n\n @ContentChild(TuiSheetComponent, {read: TUI_SHEET_SCROLL})\n private readonly scroll$!: Observable<number>;\n\n constructor(\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(TUI_SHEET_OFFSET) private readonly offset: number,\n ) {}\n\n @tuiPure\n get overlay$(): Observable<boolean> {\n return this.scroll$.pipe(\n map(y => y + 16 > this.windowRef.innerHeight - this.offset),\n );\n }\n\n @tuiPure\n get visible$(): Observable<boolean> {\n return processDragged(this.dragged$, this.scroll$);\n }\n\n @tuiPure\n get height$(): Observable<number> {\n return this.scroll$.pipe(map(this.getHeight.bind(this)));\n }\n\n private getHeight(value: number): number {\n return clamp(this.withImage(value) + OFFSET, OFFSET, this.windowRef.innerHeight);\n }\n\n private withImage(value: number): number {\n return !this.sheet?.imageStop || Math.floor(value) > this.sheet.imageStop\n ? value\n : value - this.sheet.imageHeight;\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n Input,\n Output,\n TemplateRef,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Subject} from 'rxjs';\nimport {endWith, ignoreElements, switchMap} from 'rxjs/operators';\nimport {TuiSheet} from './sheet';\nimport {TuiSheetOptions} from './sheet-options';\nimport {TuiSheetService} from './sheet.service';\n\n@Directive({\n selector: 'ng-template[tuiSheet]',\n})\nexport class TuiSheetDirective extends PolymorpheusTemplate<TuiSheet<never>> {\n private readonly open$ = new Subject<boolean>();\n\n @Input('tuiSheetOptions')\n @tuiDefaultProp()\n options: Partial<TuiSheetOptions> = {};\n\n @Input()\n @tuiRequiredSetter()\n set tuiSheet(open: boolean) {\n this.open$.next(open);\n }\n\n @Output()\n tuiSheetChange = this.open$.pipe(\n switchMap(open =>\n open\n ? this.service\n .open(this, this.options)\n .pipe(ignoreElements(), endWith(false))\n : EMPTY,\n ),\n );\n\n constructor(\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiSheet<never>>,\n @Inject(TuiSheetService) private readonly service: TuiSheetService,\n ) {\n super(templateRef, changeDetectorRef);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule, NO_ERRORS_SCHEMA} from '@angular/core';\nimport {TuiLetModule, TuiOverscrollModule} from '@taiga-ui/cdk';\nimport {TuiButtonModule, TuiScrollbarModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TuiSheetBarComponent} from './components/sheet-bar/sheet-bar.component';\nimport {TuiSheetHeadingComponent} from './components/sheet-heading/sheet-heading.component';\nimport {TuiSheetComponent} from './components/sheet/sheet.component';\nimport {TuiSheetsHostComponent} from './components/sheets-host/sheets-host.component';\nimport {TuiSheetCloseDirective} from './directives/sheet-close/sheet-close.directive';\nimport {TuiSheetStopDirective} from './directives/sheet-stop/sheet-stop.directive';\nimport {TuiSheetTopDirective} from './directives/sheet-top/sheet-top.directive';\nimport {TuiSheetWrapperDirective} from './directives/sheet-wrapper/sheet-wrapper.directive';\nimport {TuiSheetDirective} from './sheet.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiButtonModule,\n TuiOverscrollModule,\n TuiScrollbarModule,\n ],\n declarations: [\n TuiSheetsHostComponent,\n TuiSheetComponent,\n TuiSheetBarComponent,\n TuiSheetHeadingComponent,\n TuiSheetTopDirective,\n TuiSheetDirective,\n TuiSheetWrapperDirective,\n TuiSheetCloseDirective,\n TuiSheetStopDirective,\n ],\n exports: [\n TuiSheetsHostComponent,\n TuiSheetComponent,\n TuiSheetHeadingComponent,\n TuiSheetDirective,\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class TuiSheetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["OFFSET"],"mappings":";;;;;;;;;;;SAiBgB,gBAAgB,CAC5B,OAAoB,EACpB,WAAqB,EACrB,MAAc;IAEd,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAC/D,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAC3E,MAAM,UAAU,GAAG,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC;IAC7E,MAAM,SAAS,GAAG,cAAc,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACrF,MAAM,OAAO,GAAG,KAAK,CACjB,KAAK,CAAC,IAAI,CACN,KAAK,CAAC,CAAC,CAAC,EACR,GAAG,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,CAC/B,EACD,WAAW,CAAC,IAAI,CACZ,SAAS,CAAC,CAAC,EAAC,OAAO,EAAC;QAChB,MAAM,EAAC,OAAO,EAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,EAAC,SAAS,EAAC,GAAG,OAAO,CAAC;QAE5B,OAAO,MAAM;;QAET,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CACzB,GAAG,CAAC,CAAC,CAAC,EAAC,OAA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AA;IACnB,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;GA3BnB,iBAAiB,CA+B7B;;ICPY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IA5B1B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,YAAY;YACZ,eAAe;YACf,mBAAmB;YACnB,kBAAkB;SACrB;QACD,YAAY,EAAE;YACV,sBAAsB;YACtB,iBAAiB;YACjB,oBAAoB;YACpB,wBAAwB;YACxB,oBAAoB;YACpB,iBAAiB;YACjB,wBAAwB;YACxB,sBAAsB;YACtB,qBAAqB;SACxB;QACD,OAAO,EAAE;YACL,sBAAsB;YACtB,iBAAiB;YACjB,wBAAwB;YACxB,iBAAiB;SACpB;QACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,cAAc,CAAG;;AC3C9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-components-sheet.js","sources":["ng://@taiga-ui/addon-mobile/components/sheet/ios.hacks.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet/sheet.providers.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet/sheet.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheet-bar/sheet-bar.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet-options.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet.service.ts","ng://@taiga-ui/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-stop/sheet-stop.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-top/sheet-top.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet.directive.ts","ng://@taiga-ui/addon-mobile/components/sheet/sheet.module.ts","ng://@taiga-ui/addon-mobile/components/sheet/taiga-ui-addon-mobile-components-sheet.ts"],"sourcesContent":["import {NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk';\nimport {concat, merge, Observable, race, timer, zip} from 'rxjs';\nimport {\n debounceTime,\n delay,\n filter,\n map,\n mapTo,\n share,\n startWith,\n switchMap,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nexport function iosScrollFactory(\n element: HTMLElement,\n documentRef: Document,\n ngZone: NgZone,\n): Observable<number> {\n const load$ = typedFromEvent(element, 'load', {capture: true});\n const touchstart$ = typedFromEvent(element, 'touchstart', {passive: true});\n const touchmove$ = typedFromEvent(documentRef, 'touchmove', {passive: true});\n const touchend$ = typedFromEvent(documentRef, 'touchend');\n const scroll$ = typedFromEvent(element, 'scroll').pipe(map(() => element.scrollTop));\n const result$ = merge(\n load$.pipe(\n delay(0),\n map(() => element.scrollTop),\n ),\n touchstart$.pipe(\n switchMap(({touches}) => {\n const {screenY} = touches[0];\n const {scrollTop} = element;\n\n return concat(\n // Sometimes touch is triggered without scroll in iOS, filter that\n zip(touchmove$, scroll$).pipe(\n map(([{touches}]) => scrollTop + screenY - touches[0].screenY),\n takeUntil(touchend$),\n ),\n scroll$,\n );\n }),\n ),\n );\n\n return concat(scroll$.pipe(take(1)), result$).pipe(tuiZonefree(ngZone), share());\n}\n\nexport function processDragged(\n dragged$: Observable<boolean>,\n scroll$: Observable<unknown>,\n): Observable<boolean> {\n const touchstart$ = dragged$.pipe(filter(Boolean));\n const touchend$ = dragged$.pipe(filter(v => !v));\n const race$ = race(scroll$, timer(100)).pipe(\n debounceTime(200),\n take(1),\n mapTo(false),\n );\n\n return touchstart$.pipe(\n switchMapTo(touchend$.pipe(switchMapTo(race$), startWith(true))),\n startWith(false),\n );\n}\n\nexport function fakeSmoothScroll({style}: HTMLElement, offset: number) {\n style.transition = 'none';\n style.transform = `scaleX(-1) translate3d(0, ${offset}px, 0)`;\n\n setTimeout(() => {\n style.transition = '';\n style.transform = '';\n });\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n} from '@angular/core';\nimport {TuiIdService} from '@taiga-ui/cdk';\nimport {TUI_CLOSE_WORD} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nexport const TUI_SHEET_CLOSE = 'tui-sheet-close';\nexport const TUI_SHEET_ID = 'tui-sheet-id';\n\n@Component({\n selector: '[tuiSheetHeading]',\n templateUrl: 'sheet-heading.template.html',\n styleUrls: ['sheet-heading.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSheetHeadingComponent implements AfterViewInit {\n readonly id = this.idService.generate();\n\n constructor(\n @Inject(TuiIdService) private readonly idService: TuiIdService,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n ) {}\n\n ngAfterViewInit() {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SHEET_ID, {bubbles: true, detail: this.id}),\n );\n }\n\n onClick() {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SHEET_CLOSE, {bubbles: true}),\n );\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ElementRef, InjectionToken, NgZone, Provider} from '@angular/core';\nimport {TUI_IS_IOS, tuiZonefree, typedFromEvent} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core';\nimport {merge, Observable} from 'rxjs';\nimport {map, mapTo, share} from 'rxjs/operators';\nimport {iosScrollFactory} from '../../ios.hacks';\n\nexport const TUI_SHEET_SCROLL = new InjectionToken<number>(\n 'Current scrollTop of a sheet',\n);\n\nexport const TUI_SHEET_DRAGGED = new InjectionToken<boolean>(\n 'The sheet is being dragged',\n);\n\nexport const TUI_SHEET_OFFSET = new InjectionToken<number>(\n 'Offset from the top at which the sheet stops',\n {\n factory: () => 16,\n },\n);\n\nexport const TUI_SHEET_PROVIDERS: Provider[] = [\n {\n provide: TUI_SHEET_DRAGGED,\n deps: [ElementRef],\n useFactory: sheetDraggedFactory,\n },\n {\n provide: TUI_SHEET_SCROLL,\n deps: [ElementRef, NgZone, DOCUMENT, TUI_IS_IOS],\n useFactory: sheetScrollFactory,\n },\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n];\n\nexport function sheetDraggedFactory({\n nativeElement,\n}: ElementRef<HTMLElement>): Observable<boolean> {\n return merge(\n typedFromEvent(nativeElement, 'touchstart', {passive: true}).pipe(mapTo(true)),\n typedFromEvent(nativeElement, 'touchend').pipe(mapTo(false)),\n );\n}\n\nexport function sheetScrollFactory(\n {nativeElement}: ElementRef<HTMLElement>,\n ngZone: NgZone,\n documentRef: Document,\n isIos: boolean,\n): Observable<number> {\n return isIos\n ? iosScrollFactory(nativeElement, documentRef, ngZone)\n : merge(\n typedFromEvent(nativeElement, 'scroll'),\n typedFromEvent(nativeElement, 'load', {capture: true}),\n ).pipe(\n map(() => nativeElement.scrollTop),\n tuiZonefree(ngZone),\n share(),\n );\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostListener,\n Inject,\n Input,\n NgZone,\n QueryList,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {EMPTY_QUERY, TUI_IS_IOS, tuiPure, tuiZonefull} from '@taiga-ui/cdk';\nimport {tuiSlideInTop} from '@taiga-ui/core';\nimport {TUI_MORE_WORD} from '@taiga-ui/kit';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {fakeSmoothScroll} from '../../ios.hacks';\nimport {TuiSheet} from '../../sheet';\nimport {TUI_SHEET_ID} from '../sheet-heading/sheet-heading.component';\nimport {TUI_SHEET_PROVIDERS, TUI_SHEET_SCROLL} from './sheet.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-sheet',\n templateUrl: 'sheet.template.html',\n styleUrls: ['sheet.style.less'],\n providers: TUI_SHEET_PROVIDERS,\n animations: [tuiSlideInTop],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'dialog',\n '[attr.aria-labelledby]': 'id',\n '[class._ios]': 'isIos',\n '[$.class._stuck]': 'stuck$',\n '($.class._stuck)': 'stuck$',\n },\n})\nexport class TuiSheetComponent<T> implements AfterViewInit {\n @Input()\n item!: TuiSheet<T>;\n\n id = '';\n\n readonly stuck$ = this.scroll$.pipe(map(y => Math.floor(y) > this.contentTop));\n\n @ViewChild('sheet')\n private readonly sheet?: ElementRef<HTMLElement>;\n\n @ViewChild('content')\n private readonly content?: ElementRef<HTMLElement>;\n\n @ViewChildren('stops')\n private readonly stopsRefs: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n constructor(\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(TUI_IS_IOS) readonly isIos: boolean,\n @Inject(TUI_MORE_WORD) readonly moreWord$: Observable<string>,\n ) {}\n\n get stops(): readonly number[] {\n return this.getStops(this.stopsRefs);\n }\n\n get imageStop(): number {\n return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;\n }\n\n get imageHeight(): number {\n return this.contentTop - this.sheetTop;\n }\n\n @tuiPure\n get context(): TuiSheet<T> {\n return {\n ...this.item,\n scroll$: this.scroll$.pipe(tuiZonefull(this.ngZone)),\n };\n }\n\n ngAfterViewInit() {\n const stops = [...this.stops, this.sheetTop, this.contentTop];\n\n this.elementRef.nativeElement.scrollTop = stops[this.item.initial];\n }\n\n @HostListener(TUI_SHEET_ID, ['$event.detail'])\n onId(id: string) {\n this.id = id;\n }\n\n scrollTo(top: number = this.sheetTop) {\n const {nativeElement} = this.elementRef;\n\n if (this.isIos) {\n fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);\n }\n\n nativeElement.scrollTo({top, behavior: 'smooth'});\n }\n\n private get contentTop(): number {\n return this.content?.nativeElement.offsetTop ?? Infinity;\n }\n\n private get sheetTop(): number {\n return this.sheet?.nativeElement.offsetTop ?? Infinity;\n }\n\n @tuiPure\n private getStops(stops: QueryList<ElementRef<HTMLElement>>): readonly number[] {\n return stops\n .toArray()\n .map(\n ({nativeElement}) => nativeElement.offsetTop + nativeElement.clientHeight,\n );\n }\n}\n","import {ChangeDetectionStrategy, Component, Inject, NgZone} from '@angular/core';\nimport {clamp} from '@taiga-ui/cdk';\nimport {tuiZonefulMap} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {TuiSheetComponent} from '../sheet/sheet.component';\nimport {TUI_SHEET_SCROLL} from '../sheet/sheet.providers';\n\n@Component({\n selector: 'tui-sheet-bar',\n templateUrl: 'sheet-bar.template.html',\n styleUrls: ['sheet-bar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSheetBarComponent {\n readonly rotate$ = this.scroll$.pipe(\n tuiZonefulMap(y => clamp(10 - (y - this.stop) / 5, 0, 10), this.ngZone),\n );\n\n constructor(\n @Inject(TuiSheetComponent) private readonly sheet: TuiSheetComponent<unknown>,\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(NgZone) private readonly ngZone: NgZone,\n ) {}\n\n private get stop() {\n return this.sheet.stops[0] ?? 0;\n }\n}\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {TuiSheet} from './sheet';\n\nexport interface TuiSheetOptions<I = undefined, O = unknown> {\n readonly image: PolymorpheusContent<TuiSheet<O, I>>;\n readonly imageSlide: boolean;\n readonly stops: readonly string[];\n readonly initial: number;\n readonly closeable: boolean;\n readonly overlay: boolean;\n readonly data: I;\n}\n\nexport const TUI_SHEET_DEFAULT_OPTIONS: Omit<TuiSheetOptions, 'data'> = {\n image: '',\n imageSlide: true,\n stops: [],\n initial: 0,\n closeable: true,\n overlay: false,\n};\n\nexport const TUI_SHEET_OPTIONS = new InjectionToken<Omit<TuiSheetOptions, 'data'>>(\n 'Default parameters for sheet component',\n {\n factory: () => TUI_SHEET_DEFAULT_OPTIONS,\n },\n);\n","import {Inject, Injectable} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, EMPTY, Observable} from 'rxjs';\nimport {TuiSheet} from './sheet';\nimport {TUI_SHEET_OPTIONS, TuiSheetOptions} from './sheet-options';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiSheetService {\n readonly sheets$ = new BehaviorSubject<TuiSheet<any, any>[]>([]);\n\n constructor(@Inject(TUI_SHEET_OPTIONS) private readonly options: TuiSheetOptions) {}\n\n open<G>(\n content: PolymorpheusContent<TuiSheet<G>>,\n options: Partial<TuiSheetOptions> = {},\n ): Observable<G> {\n return new Observable($implicit => {\n const completeWith = (result: G) => {\n $implicit.next(result);\n $implicit.complete();\n };\n const sheet: TuiSheet<any> = {\n ...this.options,\n ...options,\n content,\n completeWith,\n $implicit,\n scroll$: EMPTY,\n };\n\n this.sheets$.next([...this.sheets$.value, sheet]);\n\n return () => {\n this.sheets$.next(this.sheets$.value.filter(item => item !== sheet));\n };\n });\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_WINDOW_HEIGHT} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiFadeIn, tuiSlideInTop} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {TuiSheet} from '../../sheet';\nimport {TuiSheetService} from '../../sheet.service';\nimport {TUI_SHEET_OFFSET} from '../sheet/sheet.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-sheets-host',\n templateUrl: 'sheets-host.template.html',\n styleUrls: ['sheets-host.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop, tuiFadeIn],\n})\nexport class TuiSheetsHostComponent {\n constructor(\n @Inject(TUI_SHEET_OFFSET) private readonly offset: number,\n @Inject(TUI_ANIMATION_OPTIONS) readonly options: AnimationOptions,\n @Inject(TuiSheetService) readonly service: TuiSheetService,\n @Inject(TUI_WINDOW_HEIGHT) readonly height$: Observable<number>,\n ) {}\n\n close({closeable, $implicit}: TuiSheet<unknown>) {\n if (closeable) {\n $implicit.complete();\n }\n }\n\n getHeight(height: number | null): number {\n return (height ?? 0) - this.offset;\n }\n}\n","import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {typedFromEvent} from '@taiga-ui/cdk';\nimport {EMPTY, merge, Observable} from 'rxjs';\nimport {filter, startWith, switchMap} from 'rxjs/operators';\nimport {TUI_SHEET_CLOSE} from '../../components/sheet-heading/sheet-heading.component';\nimport {TuiSheetComponent} from '../../components/sheet/sheet.component';\nimport {\n TUI_SHEET_DRAGGED,\n TUI_SHEET_SCROLL,\n} from '../../components/sheet/sheet.providers';\n\n// @dynamic\n@Directive({\n selector: 'tui-sheet[close]',\n})\nexport class TuiSheetCloseDirective {\n @Output()\n readonly close: Observable<unknown> = merge(\n typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE),\n this.dragged$.pipe(\n startWith(false),\n switchMap(dragged =>\n dragged\n ? EMPTY\n : this.scroll$.pipe(\n startWith(this.elementRef.nativeElement.scrollTop),\n ),\n ),\n filter(y => this.sheet.item?.closeable && this.shouldClose(y)),\n ),\n );\n\n constructor(\n @Inject(TUI_SHEET_DRAGGED) private readonly dragged$: Observable<boolean>,\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiSheetComponent) private readonly sheet: TuiSheetComponent<unknown>,\n ) {}\n\n private shouldClose(scrollTop: number): boolean {\n const min = Math.min(\n this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight,\n this.sheet.stops[0] || Infinity,\n );\n\n return scrollTop < min / 2;\n }\n}\n","import {Directive, ElementRef, Inject} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n map,\n takeUntil,\n throttleTime,\n withLatestFrom,\n} from 'rxjs/operators';\nimport {\n TUI_SHEET_DRAGGED,\n TUI_SHEET_SCROLL,\n} from '../../components/sheet/sheet.providers';\n\n@Directive({\n selector: '[tuiSheetStop]',\n providers: [TuiDestroyService],\n})\nexport class TuiSheetStopDirective {\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_SHEET_DRAGGED) dragged$: Observable<boolean>,\n @Inject(TUI_SHEET_SCROLL) scroll$: Observable<number>,\n @Inject(TUI_SCROLL_REF) {nativeElement}: ElementRef<HTMLElement>,\n ) {\n scroll$\n .pipe(\n map(y => Math.floor(y) > elementRef.nativeElement.offsetTop),\n distinctUntilChanged(),\n withLatestFrom(dragged$),\n map(([above, dragged]) => !above && !dragged),\n filter(Boolean),\n throttleTime(100),\n takeUntil(destroy$),\n )\n .subscribe(() => {\n nativeElement.style.overflow = 'hidden';\n nativeElement.classList.remove('_stuck'); // iOS\n nativeElement.scrollTop = elementRef.nativeElement.offsetTop;\n\n setTimeout(() => {\n nativeElement.style.overflow = '';\n }, 100);\n });\n }\n}\n","import {Directive, Inject, Input} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {clamp, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {TUI_SHEET_OFFSET, TUI_SHEET_SCROLL} from '../../components/sheet/sheet.providers';\n\n// So that borders get rounded when image is visible for at least 10px\nconst OFFSET = 10;\n\n// @dynamic\n@Directive({\n selector: '[tuiSheetTop]',\n host: {\n '[$.style.transform]': 'transform$',\n '($.style.transform)': 'transform$',\n '[$.class._rounded]': 'rounded$',\n '($.class._rounded)': 'rounded$',\n '[$.class._clickthrough]': 'clickthrough$',\n '($.class._clickthrough)': 'clickthrough$',\n },\n})\nexport class TuiSheetTopDirective {\n @Input('tuiSheetTop')\n @tuiDefaultProp()\n stop = 0;\n\n readonly transform$ = this.scroll$.pipe(\n map(y => `translateY(${this.getY(y)}%) scaleX(-1)`),\n );\n\n readonly rounded$ = this.scroll$.pipe(map(y => y < this.stop + OFFSET));\n\n readonly clickthrough$ = this.scroll$.pipe(map(y => !!Math.round(this.getY(y))));\n\n constructor(\n @Inject(TUI_SHEET_SCROLL) private readonly scroll$: Observable<number>,\n @Inject(TUI_SHEET_OFFSET) private readonly offset: number,\n @Inject(WINDOW) private readonly windowRef: Window,\n ) {}\n\n private getY(scrollTop: number): number {\n const value = scrollTop - this.stop;\n const total = this.windowRef.innerHeight - this.offset - this.stop;\n\n return this.stop && clamp(100 - (value / total) * 100, 0, 100);\n }\n}\n","import {ContentChild, Directive, Inject} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {clamp, tuiPure} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {TuiSheetComponent} from '../../components/sheet/sheet.component';\nimport {\n TUI_SHEET_DRAGGED,\n TUI_SHEET_OFFSET,\n TUI_SHEET_SCROLL,\n} from '../../components/sheet/sheet.providers';\nimport {processDragged} from '../../ios.hacks';\n\n// Safety offset for shadow\nconst OFFSET = 16;\n\n// @dynamic\n@Directive({\n selector: '[tuiSheetWrapper]',\n host: {\n '[$.class._overlay]': 'overlay$',\n '($.class._overlay)': 'overlay$',\n '[$.class._visible]': 'visible$',\n '($.class._visible)': 'visible$',\n '[$.style.height.px]': 'height$',\n '($.style.height.px)': 'height$',\n },\n})\nexport class TuiSheetWrapperDirective {\n // Trying to get overflow: visible as early as possible for Safari\n touched = false;\n\n @ContentChild(TuiSheetComponent)\n private readonly sheet?: TuiSheetComponent<unknown>;\n\n @ContentChild(TuiSheetComponent, {read: TUI_SHEET_DRAGGED})\n private readonly dragged$!: Observable<boolean>;\n\n @ContentChild(TuiSheetComponent, {read: TUI_SHEET_SCROLL})\n private readonly scroll$!: Observable<number>;\n\n constructor(\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(TUI_SHEET_OFFSET) private readonly offset: number,\n ) {}\n\n @tuiPure\n get overlay$(): Observable<boolean> {\n return this.scroll$.pipe(\n map(y => y + 16 > this.windowRef.innerHeight - this.offset),\n );\n }\n\n @tuiPure\n get visible$(): Observable<boolean> {\n return processDragged(this.dragged$, this.scroll$);\n }\n\n @tuiPure\n get height$(): Observable<number> {\n return this.scroll$.pipe(map(this.getHeight.bind(this)));\n }\n\n private getHeight(value: number): number {\n return clamp(this.withImage(value) + OFFSET, OFFSET, this.windowRef.innerHeight);\n }\n\n private withImage(value: number): number {\n return !this.sheet?.imageStop || Math.floor(value) > this.sheet.imageStop\n ? value\n : value - this.sheet.imageHeight;\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n Inject,\n Input,\n Output,\n TemplateRef,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Subject} from 'rxjs';\nimport {endWith, ignoreElements, switchMap} from 'rxjs/operators';\nimport {TuiSheet} from './sheet';\nimport {TuiSheetOptions} from './sheet-options';\nimport {TuiSheetService} from './sheet.service';\n\n@Directive({\n selector: 'ng-template[tuiSheet]',\n})\nexport class TuiSheetDirective extends PolymorpheusTemplate<TuiSheet<never>> {\n private readonly open$ = new Subject<boolean>();\n\n @Input('tuiSheetOptions')\n @tuiDefaultProp()\n options: Partial<TuiSheetOptions> = {};\n\n @Input()\n @tuiRequiredSetter()\n set tuiSheet(open: boolean) {\n this.open$.next(open);\n }\n\n @Output()\n tuiSheetChange = this.open$.pipe(\n switchMap(open =>\n open\n ? this.service\n .open(this, this.options)\n .pipe(ignoreElements(), endWith(false))\n : EMPTY,\n ),\n );\n\n constructor(\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiSheet<never>>,\n @Inject(TuiSheetService) private readonly service: TuiSheetService,\n ) {\n super(templateRef, changeDetectorRef);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule, NO_ERRORS_SCHEMA} from '@angular/core';\nimport {TuiLetModule, TuiOverscrollModule} from '@taiga-ui/cdk';\nimport {TuiButtonModule, TuiScrollbarModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TuiSheetBarComponent} from './components/sheet-bar/sheet-bar.component';\nimport {TuiSheetHeadingComponent} from './components/sheet-heading/sheet-heading.component';\nimport {TuiSheetComponent} from './components/sheet/sheet.component';\nimport {TuiSheetsHostComponent} from './components/sheets-host/sheets-host.component';\nimport {TuiSheetCloseDirective} from './directives/sheet-close/sheet-close.directive';\nimport {TuiSheetStopDirective} from './directives/sheet-stop/sheet-stop.directive';\nimport {TuiSheetTopDirective} from './directives/sheet-top/sheet-top.directive';\nimport {TuiSheetWrapperDirective} from './directives/sheet-wrapper/sheet-wrapper.directive';\nimport {TuiSheetDirective} from './sheet.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiButtonModule,\n TuiOverscrollModule,\n TuiScrollbarModule,\n ],\n declarations: [\n TuiSheetsHostComponent,\n TuiSheetComponent,\n TuiSheetBarComponent,\n TuiSheetHeadingComponent,\n TuiSheetTopDirective,\n TuiSheetDirective,\n TuiSheetWrapperDirective,\n TuiSheetCloseDirective,\n TuiSheetStopDirective,\n ],\n exports: [\n TuiSheetsHostComponent,\n TuiSheetComponent,\n TuiSheetHeadingComponent,\n TuiSheetDirective,\n ],\n schemas: [N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jB,cAAc;IA5B1B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,YAAY;YACZ,eAAe;YACf,mBAAmB;YACnB,kBAAkB;SACrB;QACD,YAAY,EAAE;YACV,sBAAsB;YACtB,iBAAiB;YACjB,oBAAoB;YACpB,wBAAwB;YACxB,oBAAoB;YACpB,iBAAiB;YACjB,wBAAwB;YACxB,sBAAsB;YACtB,qBAAqB;SACxB;QACD,OAAO,EAAE;YACL,sBAAsB;YACtB,iBAAiB;YACjB,wBAAwB;YACxB,iBAAiB;SACpB;QACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,cAAc,CAAG;;AC3C9B;;;;;;"}
@@ -1,17 +1,10 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { DOCUMENT } from '@angular/common';
3
- import { Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
1
+ import { __decorate } from 'tslib';
2
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
3
  import { AbstractTuiThemeSwitcher } from '@taiga-ui/cdk';
5
4
 
6
5
  // @dynamic
7
6
  let TuiThemeAndroidComponent = class TuiThemeAndroidComponent extends AbstractTuiThemeSwitcher {
8
- constructor(documentRef) {
9
- super(documentRef);
10
- }
11
7
  };
12
- TuiThemeAndroidComponent.ctorParameters = () => [
13
- { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
14
- ];
15
8
  TuiThemeAndroidComponent = __decorate([
16
9
  Component({
17
10
  selector: 'tui-theme-android',
@@ -19,8 +12,7 @@ TuiThemeAndroidComponent = __decorate([
19
12
  encapsulation: ViewEncapsulation.None,
20
13
  changeDetection: ChangeDetectionStrategy.OnPush,
21
14
  styles: ["html{touch-action:manipulation}body{-ms-scroll-chaining:none;overscroll-behavior:none}*{outline:0;scrollbar-width:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}[contenteditable] *,input,textarea{-webkit-user-select:auto!important;-moz-user-select:auto!important;-ms-user-select:auto!important;user-select:auto!important}::-moz-selection{background-color:transparent}::selection{background-color:transparent}.tui-island{padding:1rem;border-radius:.125rem;box-shadow:0 0 .125rem rgba(0,0,0,.2),0 .0625rem .125rem rgba(0,0,0,.2)}.tui-island:before{display:none}a[tuiButton],a[tuiIconButton],button[tuiButton],button[tuiIconButton]{font-size:.875rem!important;font-weight:500;text-transform:uppercase;font-family:-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',sans-serif}"]
22
- }),
23
- __param(0, Inject(DOCUMENT))
15
+ })
24
16
  ], TuiThemeAndroidComponent);
25
17
 
26
18
  let TuiThemeAndroidModule = class TuiThemeAndroidModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-components-theme-android.js","sources":["ng://@taiga-ui/addon-mobile/components/theme-android/theme-android.component.ts","ng://@taiga-ui/addon-mobile/components/theme-android/theme-android.module.ts","ng://@taiga-ui/addon-mobile/components/theme-android/taiga-ui-addon-mobile-components-theme-android.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-android',\n styleUrls: ['./theme-android.style.less'],\n template: '',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiThemeAndroidComponent extends AbstractTuiThemeSwitcher {\n constructor(@Inject(DOCUMENT) documentRef: Document) {\n super(documentRef);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiThemeAndroidComponent} from './theme-android.component';\n\n@NgModule({\n declarations: [TuiThemeAndroidComponent],\n exports: [TuiThemeAndroidComponent],\n})\nexport class TuiThemeAndroidModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;IAQa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAwB;IAClE,YAA8B,WAAqB;QAC/C,KAAK,CAAC,WAAW,CAAC,CAAC;KACtB;EACJ;;YAH8C,QAAQ,uBAAtC,MAAM,SAAC,QAAQ;;AADnB,wBAAwB;IAPpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAE7B,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;QACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAEe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GADpB,wBAAwB,CAIpC;;ICdY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACPrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-components-theme-android.js","sources":["ng://@taiga-ui/addon-mobile/components/theme-android/theme-android.component.ts","ng://@taiga-ui/addon-mobile/components/theme-android/theme-android.module.ts","ng://@taiga-ui/addon-mobile/components/theme-android/taiga-ui-addon-mobile-components-theme-android.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-android',\n styleUrls: ['./theme-android.style.less'],\n template: '',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiThemeAndroidComponent extends AbstractTuiThemeSwitcher {}\n","import {NgModule} from '@angular/core';\nimport {TuiThemeAndroidComponent} from './theme-android.component';\n\n@NgModule({\n declarations: [TuiThemeAndroidComponent],\n exports: [TuiThemeAndroidComponent],\n})\nexport class TuiThemeAndroidModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;IAQa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAwB;EAAG;AAA5D,wBAAwB;IAPpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAE7B,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;QACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,wBAAwB,CAAoC;;ICJ5D,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACPrC;;;;;;"}
@@ -1,17 +1,10 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { DOCUMENT } from '@angular/common';
3
- import { Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
1
+ import { __decorate } from 'tslib';
2
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
3
  import { AbstractTuiThemeSwitcher } from '@taiga-ui/cdk';
5
4
 
6
5
  // @dynamic
7
6
  let TuiThemeIosComponent = class TuiThemeIosComponent extends AbstractTuiThemeSwitcher {
8
- constructor(documentRef) {
9
- super(documentRef);
10
- }
11
7
  };
12
- TuiThemeIosComponent.ctorParameters = () => [
13
- { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
14
- ];
15
8
  TuiThemeIosComponent = __decorate([
16
9
  Component({
17
10
  selector: 'tui-theme-ios',
@@ -19,8 +12,7 @@ TuiThemeIosComponent = __decorate([
19
12
  encapsulation: ViewEncapsulation.None,
20
13
  changeDetection: ChangeDetectionStrategy.OnPush,
21
14
  styles: ["html{touch-action:manipulation}body{-ms-scroll-chaining:none;overscroll-behavior:none}*{outline:0;scrollbar-width:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}[contenteditable] *,input,textarea{-webkit-user-select:auto!important;-moz-user-select:auto!important;-ms-user-select:auto!important;user-select:auto!important}::-moz-selection{background-color:transparent}::selection{background-color:transparent}.tui-island{padding:1rem;border-radius:.75rem;box-shadow:0 .625rem 1.875rem rgba(0,0,0,.2)}.tui-island:before{display:none}a[tuiButton],a[tuiIconButton],button[tuiButton],button[tuiIconButton]{border-radius:.5rem;font-size:1.0625rem!important;font-family:-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',sans-serif}"]
22
- }),
23
- __param(0, Inject(DOCUMENT))
15
+ })
24
16
  ], TuiThemeIosComponent);
25
17
 
26
18
  let TuiThemeIosModule = class TuiThemeIosModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-components-theme-ios.js","sources":["ng://@taiga-ui/addon-mobile/components/theme-ios/theme-ios.component.ts","ng://@taiga-ui/addon-mobile/components/theme-ios/theme-ios.module.ts","ng://@taiga-ui/addon-mobile/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-ios',\n styleUrls: ['./theme-ios.style.less'],\n template: '',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiThemeIosComponent extends AbstractTuiThemeSwitcher {\n constructor(@Inject(DOCUMENT) documentRef: Document) {\n super(documentRef);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiThemeIosComponent} from './theme-ios.component';\n\n@NgModule({\n declarations: [TuiThemeIosComponent],\n exports: [TuiThemeIosComponent],\n})\nexport class TuiThemeIosModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;IAQa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,wBAAwB;IAC9D,YAA8B,WAAqB;QAC/C,KAAK,CAAC,WAAW,CAAC,CAAC;KACtB;EACJ;;YAH8C,QAAQ,uBAAtC,MAAM,SAAC,QAAQ;;AADnB,oBAAoB;IAPhC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QAEzB,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;QACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAEe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GADpB,oBAAoB,CAIhC;;ICdY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACPjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-components-theme-ios.js","sources":["ng://@taiga-ui/addon-mobile/components/theme-ios/theme-ios.component.ts","ng://@taiga-ui/addon-mobile/components/theme-ios/theme-ios.module.ts","ng://@taiga-ui/addon-mobile/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-ios',\n styleUrls: ['./theme-ios.style.less'],\n template: '',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiThemeIosComponent extends AbstractTuiThemeSwitcher {}\n","import {NgModule} from '@angular/core';\nimport {TuiThemeIosComponent} from './theme-ios.component';\n\n@NgModule({\n declarations: [TuiThemeIosComponent],\n exports: [TuiThemeIosComponent],\n})\nexport class TuiThemeIosModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;IAQa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,wBAAwB;EAAG;AAAxD,oBAAoB;IAPhC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QAEzB,QAAQ,EAAE,EAAE;QACZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;QACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,oBAAoB,CAAoC;;ICJxD,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACPjC;;;;;;"}
@@ -106,10 +106,10 @@ __decorate([
106
106
  TuiSidebarComponent = __decorate([
107
107
  Component({
108
108
  selector: 'aside[tuiSidebar]',
109
- template: "<div\n polymorpheus-outlet\n class=\"t-wrapper\"\n tuiActiveZone\n [content]=\"content\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n></div>\n",
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
110
  changeDetection: ChangeDetectionStrategy.OnPush,
111
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%;height:100vh;content:'';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}"]
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:100vh;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
113
  }),
114
114
  __param(0, Inject(TUI_ANIMATION_OPTIONS)),
115
115
  __param(1, Inject(TuiSidebarDirective))
@@ -22,12 +22,12 @@ TuiPrimitiveCalendarMobileComponent.ctorParameters = () => [
22
22
  TuiPrimitiveCalendarMobileComponent = __decorate([
23
23
  Component({
24
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 [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",
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 [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
26
  changeDetection: ChangeDetectionStrategy.OnPush,
27
27
  host: {
28
28
  '[class._ios]': 'isIOS',
29
29
  },
30
- styles: [":host{font:var(--tui-font-text-m);display:block}.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:#458bf6}.t-cell_disabled{color:rgba(51,51,51,.3)}.t-cell_interval:before{background-color:#dae8fd}.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:#458bf6;color:#fff;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:#fff}: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:#fff;border-radius:0}.t-cell[data-tui-element-range=end]:first-child:before{right:50%;background-color:#dae8fd}: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}}"]
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-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}}"]
31
31
  }),
32
32
  __param(0, Inject(TUI_IS_IOS)),
33
33
  __param(1, Inject(TUI_ORDERED_SHORT_WEEK_DAYS))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js","sources":["ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk';\nimport {TUI_ORDERED_SHORT_WEEK_DAYS, TuiPrimitiveCalendarComponent} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n/**\n * @internal\n * @dynamic\n */\n@Component({\n selector: 'tui-primitive-calendar-mobile',\n templateUrl: './primitive-calendar-mobile.template.html',\n styleUrls: ['./primitive-calendar-mobile.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n weekDays$: Observable<[string, string, string, string, string, string, string]>,\n ) {\n super(weekDays$);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiLetModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiCalendarSheetPipeModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarMobileComponent} from './primitive-calendar-mobile.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [\n TuiRepeatTimesModule,\n TuiCalendarSheetPipeModule,\n TuiRippleModule,\n TuiLetModule,\n ],\n declarations: [TuiPrimitiveCalendarMobileComponent],\n exports: [TuiPrimitiveCalendarMobileComponent],\n})\nexport class TuiPrimitiveCalendarMobileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAKA;;;;IAaa,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,6BAA6B;IAClF,YACiC,KAAc,EAE3C,SAA+E;QAE/E,KAAK,CAAC,SAAS,CAAC,CAAC;QAJY,UAAK,GAAL,KAAK,CAAS;KAK9C;EACJ;;0CANQ,MAAM,SAAC,UAAU;YAEP,UAAU,uBADpB,MAAM,SAAC,2BAA2B;;AAH9B,mCAAmC;IAT/C,SAAS,CAAC;QACP,QAAQ,EAAE,+BAA+B;QACzC,26BAAwD;QAExD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,IAAI,EAAE;YACF,cAAc,EAAE,OAAO;SAC1B;;KACJ,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAH/B,mCAAmC,CAQ/C;;ACnBD;;;IAaa,gCAAgC,GAA7C,MAAa,gCAAgC;EAAG;AAAnC,gCAAgC;IAV5C,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,oBAAoB;YACpB,0BAA0B;YAC1B,eAAe;YACf,YAAY;SACf;QACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;QACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;KACjD,CAAC;GACW,gCAAgC,CAAG;;ACpBhD;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js","sources":["ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.ts","ng://@taiga-ui/addon-mobile/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk';\nimport {TUI_ORDERED_SHORT_WEEK_DAYS, TuiPrimitiveCalendarComponent} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n/**\n * @internal\n * @dynamic\n */\n@Component({\n selector: 'tui-primitive-calendar-mobile',\n templateUrl: './primitive-calendar-mobile.template.html',\n styleUrls: ['./primitive-calendar-mobile.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_ORDERED_SHORT_WEEK_DAYS)\n weekDays$: Observable<[string, string, string, string, string, string, string]>,\n ) {\n super(weekDays$);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TuiLetModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiCalendarSheetPipeModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarMobileComponent} from './primitive-calendar-mobile.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [\n TuiRepeatTimesModule,\n TuiCalendarSheetPipeModule,\n TuiRippleModule,\n TuiLetModule,\n ],\n declarations: [TuiPrimitiveCalendarMobileComponent],\n exports: [TuiPrimitiveCalendarMobileComponent],\n})\nexport class TuiPrimitiveCalendarMobileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAKA;;;;IAaa,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,6BAA6B;IAClF,YACiC,KAAc,EAE3C,SAA+E;QAE/E,KAAK,CAAC,SAAS,CAAC,CAAC;QAJY,UAAK,GAAL,KAAK,CAAS;KAK9C;EACJ;;0CANQ,MAAM,SAAC,UAAU;YAEP,UAAU,uBADpB,MAAM,SAAC,2BAA2B;;AAH9B,mCAAmC;IAT/C,SAAS,CAAC;QACP,QAAQ,EAAE,+BAA+B;QACzC,66BAAwD;QAExD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,IAAI,EAAE;YACF,cAAc,EAAE,OAAO;SAC1B;;KACJ,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAH/B,mCAAmC,CAQ/C;;ACnBD;;;IAaa,gCAAgC,GAA7C,MAAa,gCAAgC;EAAG;AAAnC,gCAAgC;IAV5C,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,oBAAoB;YACpB,0BAA0B;YAC1B,eAAe;YACf,YAAY;SACf;QACD,YAAY,EAAE,CAAC,mCAAmC,CAAC;QACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;KACjD,CAAC;GACW,gCAAgC,CAAG;;ACpBhD;;;;;;"}
@@ -443,10 +443,10 @@ var TuiMobileCalendarComponent = /** @class */ (function () {
443
443
  TuiMobileCalendarComponent = __decorate([
444
444
  Component({
445
445
  selector: 'tui-mobile-calendar',
446
- template: "<header class=\"t-header\">\n <button\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n automation-id=\"tui-mobile-calendar__cancel\"\n icon=\"tuiIconRemoveLarge\"\n shape=\"rounded\"\n appearance=\"\"\n tuiRipple\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{cancelWord$ | async}}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n class=\"t-label\"\n automation-id=\"tui-mobile-calendar__label\"\n >\n {{single ? texts[0] : texts[1]}}\n </h2>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n automation-id=\"tui-mobile-calendar__confirm\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{doneWord$ | async}}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n class=\"t-years\"\n orientation=\"horizontal\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n class=\"t-year\"\n [attr.data-tui-element-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{index}}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div *ngFor=\"let day of weekDays$ | async\" class=\"t-day\">{{day}}</div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{month | tuiMonth | async}}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [month]=\"month\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper : disabledItemHandlerMapper : min : max\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n",
446
+ template: "<header class=\"t-header\">\n <button\n tuiIconButton\n type=\"button\"\n automation-id=\"tui-mobile-calendar__cancel\"\n icon=\"tuiIconRemoveLarge\"\n shape=\"rounded\"\n appearance=\"\"\n tuiRipple\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{ cancelWord$ | async }}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n automation-id=\"tui-mobile-calendar__label\"\n class=\"t-label\"\n >\n {{ single ? texts[0] : texts[1] }}\n </h2>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n automation-id=\"tui-mobile-calendar__confirm\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{ doneWord$ | async }}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n orientation=\"horizontal\"\n class=\"t-years\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n class=\"t-year\"\n [attr.data-tui-element-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{ index }}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div *ngFor=\"let day of weekDays$ | async\" class=\"t-day\">{{ day }}</div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{ month | tuiMonth | async }}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [month]=\"month\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper:min:max\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n",
447
447
  changeDetection: ChangeDetectionStrategy.OnPush,
448
448
  providers: TUI_MOBILE_CALENDAR_PROVIDERS,
449
- styles: [":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:#333;-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid #eaecee}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:#458bf6}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{position:relative;overflow:hidden;flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap}.t-label:after{content:'';position:absolute;top:0;right:0;width:1.875rem;height:100%;background-image:linear-gradient(to right,rgba(255,255,255,0) 0,#fff 80%,#fff 100%);pointer-events:none}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:#f6f7f8;box-shadow:0 .5px #c7c9cc}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;line-height:inherit;outline:0;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-tui-element-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-tui-element-state=active]{color:#458bf6;opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:#9299a2}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px #c7c9cc;overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid #c7c9cc}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}"]
449
+ styles: [":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--tui-text-01);-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:var(--tui-link)}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{position:relative;overflow:hidden;flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap}.t-label:after{content:'';position:absolute;top:0;right:0;width:1.875rem;height:100%;background-image:linear-gradient(to right,transparent 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%);pointer-events:none}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:var(--tui-base-01);box-shadow:0 .5px var(--tui-base-03)}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;line-height:inherit;outline:0;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-tui-element-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-tui-element-state=active]{color:var(--tui-link);opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:var(--tui-text-02)}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px var(--tui-base-03);overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}"]
450
450
  }),
451
451
  __param(0, Inject(TUI_IS_IOS)),
452
452
  __param(1, Inject(DOCUMENT)),