@taiga-ui/addon-mobile 3.51.0 → 3.52.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.
- package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +40 -4
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +7 -0
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +19 -0
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +9 -0
- package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +43 -2
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-const.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-const.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +13 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +3 -1
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +10 -0
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-internal.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-types.umd.js +3 -1
- package/bundles/taiga-ui-addon-mobile-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile.umd.js +4 -0
- package/bundles/taiga-ui-addon-mobile.umd.js.map +1 -1
- package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +3 -0
- package/components/mobile-calendar/mobile-calendar.component.d.ts +2 -2
- package/components/mobile-calendar/mobile-calendar.providers.d.ts +3 -0
- package/components/mobile-calendar/mobile-calendar.strategy.d.ts +6 -0
- package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +3 -0
- package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +2 -2
- package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +3 -0
- package/components/mobile-dialog/mobile-dialog.options.d.ts +3 -0
- package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +3 -0
- package/components/pull-to-refresh/pull-to-refresh.providers.d.ts +12 -0
- package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +3 -0
- package/components/sheet/sheet-options.d.ts +10 -0
- package/components/sheet/sheet-tokens.d.ts +9 -0
- package/components/sheet/sheet.d.ts +6 -0
- package/components/sheet/sheet.directive.d.ts +4 -0
- package/components/sheet/sheet.module.d.ts +4 -0
- package/components/sheet/sheet.service.d.ts +4 -0
- package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +3 -0
- package/components/sheet-dialog/sheet-dialog.options.d.ts +3 -0
- package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +3 -0
- package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +3 -0
- package/components/taiga-ui-addon-mobile-components.d.ts +3 -0
- package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +3 -0
- package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +3 -0
- package/const/taiga-ui-addon-mobile-const.d.ts +3 -0
- package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +3 -0
- package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +3 -0
- package/directives/ripple/ripple.providers.d.ts +6 -0
- package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +3 -0
- package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +3 -0
- package/directives/taiga-ui-addon-mobile-directives.d.ts +3 -0
- package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +3 -0
- package/esm2015/components/app-bar/taiga-ui-addon-mobile-components-app-bar.js +4 -1
- package/esm2015/components/mobile-calendar/mobile-calendar.component.js +29 -6
- package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +4 -1
- package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +7 -1
- package/esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +4 -1
- package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +1 -1
- package/esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +4 -1
- package/esm2015/components/mobile-dialog/mobile-dialog.options.js +4 -1
- package/esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +4 -1
- package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +2 -1
- package/esm2015/components/pull-to-refresh/pull-to-refresh.providers.js +13 -1
- package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +3 -1
- package/esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +4 -1
- package/esm2015/components/sheet/components/sheet/sheet.component.js +2 -1
- package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +3 -1
- package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +2 -2
- package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +2 -1
- package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +2 -1
- package/esm2015/components/sheet/ios.hacks.js +6 -2
- package/esm2015/components/sheet/sheet-options.js +8 -1
- package/esm2015/components/sheet/sheet-tokens.js +10 -1
- package/esm2015/components/sheet/sheet.directive.js +5 -1
- package/esm2015/components/sheet/sheet.js +1 -1
- package/esm2015/components/sheet/sheet.module.js +5 -1
- package/esm2015/components/sheet/sheet.service.js +5 -1
- package/esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js +4 -1
- package/esm2015/components/sheet-dialog/sheet-dialog.component.js +3 -1
- package/esm2015/components/sheet-dialog/sheet-dialog.options.js +4 -1
- package/esm2015/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.js +4 -1
- package/esm2015/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.js +4 -1
- package/esm2015/components/taiga-ui-addon-mobile-components.js +4 -1
- package/esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +4 -1
- package/esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +4 -1
- package/esm2015/const/taiga-ui-addon-mobile-const.js +4 -1
- package/esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +4 -1
- package/esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +4 -1
- package/esm2015/directives/ripple/ripple.directive.js +4 -2
- package/esm2015/directives/ripple/ripple.providers.js +7 -1
- package/esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +4 -1
- package/esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +4 -1
- package/esm2015/directives/taiga-ui-addon-mobile-directives.js +4 -1
- package/esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +4 -1
- package/esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js +4 -1
- package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +4 -1
- package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +4 -1
- package/esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +4 -1
- package/esm2015/internal/taiga-ui-addon-mobile-internal.js +4 -1
- package/esm2015/taiga-ui-addon-mobile.js +4 -1
- package/esm2015/types/taiga-ui-addon-mobile-types.js +4 -1
- package/esm2015/utils/taiga-ui-addon-mobile-utils.js +4 -1
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +41 -5
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +7 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +19 -0
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js +9 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +43 -2
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-const.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-const.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js +13 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-directives.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js +3 -1
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +10 -0
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-internal.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-internal.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-types.js +3 -1
- package/fesm2015/taiga-ui-addon-mobile-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile.js +4 -0
- package/fesm2015/taiga-ui-addon-mobile.js.map +1 -1
- package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +3 -0
- package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +3 -0
- package/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.d.ts +3 -0
- package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +3 -0
- package/internal/taiga-ui-addon-mobile-internal.d.ts +3 -0
- package/package.json +4 -4
- package/taiga-ui-addon-mobile.d.ts +3 -0
- package/types/taiga-ui-addon-mobile-types.d.ts +3 -0
- package/utils/taiga-ui-addon-mobile-utils.d.ts +3 -0
|
@@ -133,6 +133,10 @@
|
|
|
133
133
|
}]
|
|
134
134
|
}] });
|
|
135
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Generated bundle index. Do not edit.
|
|
138
|
+
*/
|
|
139
|
+
|
|
136
140
|
exports.TUI_APP_BAR_PROVIDERS = TUI_APP_BAR_PROVIDERS;
|
|
137
141
|
exports.TuiAppBarBackComponent = TuiAppBarBackComponent;
|
|
138
142
|
exports.TuiAppBarComponent = TuiAppBarComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-components-app-bar.umd.js","sources":["../../../projects/addon-mobile/components/app-bar/app-bar.providers.ts","../../../projects/addon-mobile/components/app-bar/app-bar.component.ts","../../../projects/addon-mobile/components/app-bar/app-bar.template.html","../../../projects/addon-mobile/components/app-bar/app-bar.directive.ts","../../../projects/addon-mobile/components/app-bar/app-bar-back.component.ts","../../../projects/addon-mobile/components/app-bar/app-bar-back.template.html","../../../projects/addon-mobile/components/app-bar/app-bar.module.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core';\n\nexport const TUI_APP_BAR_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiResizeService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {\n characterData: true,\n childList: true,\n subtree: true,\n },\n },\n tuiButtonOptionsProvider({\n size: `m`,\n appearance: ``,\n }),\n];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {EMPTY_QUERY, TuiResizeService} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_APP_BAR_PROVIDERS} from './app-bar.providers';\n\n@Component({\n selector: 'tui-app-bar',\n templateUrl: './app-bar.template.html',\n styleUrls: ['./app-bar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_APP_BAR_PROVIDERS,\n})\nexport class TuiAppBarComponent {\n @ViewChildren('side')\n private readonly side: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n readonly width$ = merge(this.resize$, this.mutation$).pipe(\n map(\n () =>\n 2 *\n Math.max(\n this.side.first?.nativeElement.clientWidth,\n this.side.last?.nativeElement.clientWidth,\n ),\n ),\n );\n\n constructor(\n @Inject(TuiResizeService) private readonly resize$: Observable<unknown>,\n @Inject(MutationObserverService) private readonly mutation$: Observable<unknown>,\n ) {}\n}\n","<div\n #side\n class=\"t-left\"\n>\n <ng-content select=\"[tuiSlot='left']\"></ng-content>\n</div>\n<div\n class=\"t-content\"\n [style.--sides.px]=\"width$ | async\"\n>\n <ng-content></ng-content>\n</div>\n<div\n #side\n class=\"t-right\"\n>\n <ng-content select=\"[tuiSlot='right']\"></ng-content>\n</div>\n","import {Directive, Input} from '@angular/core';\n\n@Directive({\n selector: '[tuiSlot]',\n})\nexport class TuiAppBarDirective {\n @Input()\n tuiSlot: string | 'left' | 'right' = 'left';\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: 'button[tuiAppBarBack], a[tuiAppBarBack]',\n templateUrl: './app-bar-back.template.html',\n styleUrls: ['./app-bar-back.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiAppBarBackComponent {}\n","<svg\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <path\n d=\"M7.44025 12L14.9826 4.43872C15.5391 3.88083 15.5391 2.97631 14.9826 2.41842C14.4261 1.86053 13.5239 1.86053 12.9674 2.41842L4.41737 10.9898C3.86088 11.5477 3.86088 12.4523 4.41737 13.0102L12.9674 21.5816C13.5239 22.1395 14.4261 22.1395 14.9826 21.5816C15.5391 21.0237 15.5391 20.1192 14.9826 19.5613L7.44025 12Z\"\n fill=\"currentColor\"\n />\n</svg>\n<ng-content></ng-content>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiAppBarComponent} from './app-bar.component';\nimport {TuiAppBarDirective} from './app-bar.directive';\nimport {TuiAppBarBackComponent} from './app-bar-back.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiAppBarComponent, TuiAppBarDirective, TuiAppBarBackComponent],\n exports: [TuiAppBarComponent, TuiAppBarDirective, TuiAppBarBackComponent],\n})\nexport class TuiAppBarModule {}\n"],"names":["TuiDestroyService","TuiResizeService","MutationObserverService","MUTATION_OBSERVER_INIT","tuiButtonOptionsProvider","EMPTY_QUERY","merge","map","i0","i1","Component","ChangeDetectionStrategy","Inject","ViewChildren","Directive","Input","CommonModule","TuiSvgModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQa,QAAA,qBAAqB,GAAe;QAC7CA,qBAAiB;QACjBC,oBAAgB;QAChBC,wCAAuB;IACvB,IAAA;IACI,QAAA,OAAO,EAAEC,uCAAsB;IAC/B,QAAA,QAAQ,EAAE;IACN,YAAA,aAAa,EAAE,IAAI;IACnB,YAAA,SAAS,EAAE,IAAI;IACf,YAAA,OAAO,EAAE,IAAI;IAChB,SAAA;IACJ,KAAA;IACD,IAAAC,6BAAwB,CAAC;IACrB,QAAA,IAAI,EAAE,GAAG;IACT,QAAA,UAAU,EAAE,EAAE;SACjB,CAAC;;;ACDN,QAAA,kBAAA,kBAAA,YAAA;QAeI,SAC+C,kBAAA,CAAA,OAA4B,EACrB,SAA8B,EAAA;YAFpF,IAGI,KAAA,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CAAA,CAAA;sHAI5B,eAAe,EAAA,UAAA,EAAA,CAAA;sBAL3BC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACN,oBAAA,OAAO,EAAE,CAACF,eAAY,EAAEC,iBAAY,CAAC;IACrC,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,CAAC;IAC9E,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,CAAC;qBAC5E,CAAA
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-components-app-bar.umd.js","sources":["../../../projects/addon-mobile/components/app-bar/app-bar.providers.ts","../../../projects/addon-mobile/components/app-bar/app-bar.component.ts","../../../projects/addon-mobile/components/app-bar/app-bar.template.html","../../../projects/addon-mobile/components/app-bar/app-bar.directive.ts","../../../projects/addon-mobile/components/app-bar/app-bar-back.component.ts","../../../projects/addon-mobile/components/app-bar/app-bar-back.template.html","../../../projects/addon-mobile/components/app-bar/app-bar.module.ts","../../../projects/addon-mobile/components/app-bar/taiga-ui-addon-mobile-components-app-bar.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core';\n\nexport const TUI_APP_BAR_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiResizeService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: {\n characterData: true,\n childList: true,\n subtree: true,\n },\n },\n tuiButtonOptionsProvider({\n size: `m`,\n appearance: ``,\n }),\n];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {EMPTY_QUERY, TuiResizeService} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_APP_BAR_PROVIDERS} from './app-bar.providers';\n\n@Component({\n selector: 'tui-app-bar',\n templateUrl: './app-bar.template.html',\n styleUrls: ['./app-bar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_APP_BAR_PROVIDERS,\n})\nexport class TuiAppBarComponent {\n @ViewChildren('side')\n private readonly side: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n readonly width$ = merge(this.resize$, this.mutation$).pipe(\n map(\n () =>\n 2 *\n Math.max(\n this.side.first?.nativeElement.clientWidth,\n this.side.last?.nativeElement.clientWidth,\n ),\n ),\n );\n\n constructor(\n @Inject(TuiResizeService) private readonly resize$: Observable<unknown>,\n @Inject(MutationObserverService) private readonly mutation$: Observable<unknown>,\n ) {}\n}\n","<div\n #side\n class=\"t-left\"\n>\n <ng-content select=\"[tuiSlot='left']\"></ng-content>\n</div>\n<div\n class=\"t-content\"\n [style.--sides.px]=\"width$ | async\"\n>\n <ng-content></ng-content>\n</div>\n<div\n #side\n class=\"t-right\"\n>\n <ng-content select=\"[tuiSlot='right']\"></ng-content>\n</div>\n","import {Directive, Input} from '@angular/core';\n\n@Directive({\n selector: '[tuiSlot]',\n})\nexport class TuiAppBarDirective {\n @Input()\n tuiSlot: string | 'left' | 'right' = 'left';\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: 'button[tuiAppBarBack], a[tuiAppBarBack]',\n templateUrl: './app-bar-back.template.html',\n styleUrls: ['./app-bar-back.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiAppBarBackComponent {}\n","<svg\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <path\n d=\"M7.44025 12L14.9826 4.43872C15.5391 3.88083 15.5391 2.97631 14.9826 2.41842C14.4261 1.86053 13.5239 1.86053 12.9674 2.41842L4.41737 10.9898C3.86088 11.5477 3.86088 12.4523 4.41737 13.0102L12.9674 21.5816C13.5239 22.1395 14.4261 22.1395 14.9826 21.5816C15.5391 21.0237 15.5391 20.1192 14.9826 19.5613L7.44025 12Z\"\n fill=\"currentColor\"\n />\n</svg>\n<ng-content></ng-content>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiAppBarComponent} from './app-bar.component';\nimport {TuiAppBarDirective} from './app-bar.directive';\nimport {TuiAppBarBackComponent} from './app-bar-back.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiAppBarComponent, TuiAppBarDirective, TuiAppBarBackComponent],\n exports: [TuiAppBarComponent, TuiAppBarDirective, TuiAppBarBackComponent],\n})\nexport class TuiAppBarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TuiDestroyService","TuiResizeService","MutationObserverService","MUTATION_OBSERVER_INIT","tuiButtonOptionsProvider","EMPTY_QUERY","merge","map","i0","i1","Component","ChangeDetectionStrategy","Inject","ViewChildren","Directive","Input","CommonModule","TuiSvgModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQa,QAAA,qBAAqB,GAAe;QAC7CA,qBAAiB;QACjBC,oBAAgB;QAChBC,wCAAuB;IACvB,IAAA;IACI,QAAA,OAAO,EAAEC,uCAAsB;IAC/B,QAAA,QAAQ,EAAE;IACN,YAAA,aAAa,EAAE,IAAI;IACnB,YAAA,SAAS,EAAE,IAAI;IACf,YAAA,OAAO,EAAE,IAAI;IAChB,SAAA;IACJ,KAAA;IACD,IAAAC,6BAAwB,CAAC;IACrB,QAAA,IAAI,EAAE,GAAG;IACT,QAAA,UAAU,EAAE,EAAE;SACjB,CAAC;;;ACDN,QAAA,kBAAA,kBAAA,YAAA;QAeI,SAC+C,kBAAA,CAAA,OAA4B,EACrB,SAA8B,EAAA;YAFpF,IAGI,KA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AA,CAAA,CAAA;sHAI5B,eAAe,EAAA,UAAA,EAAA,CAAA;sBAL3BC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACN,oBAAA,OAAO,EAAE,CAACF,eAAY,EAAEC,iBAAY,CAAC;IACrC,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,CAAC;IAC9E,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,CAAC;qBAC5E,CAAA;;;ICZD;;IAEG;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js","sources":["../../../projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts","../../../projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.template.html","../../../projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.module.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiDialogContext} from '@taiga-ui/core';\nimport {TuiMobileCalendarData} from '@taiga-ui/kit';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-mobile-calendar-dialog',\n templateUrl: './mobile-calendar-dialog.template.html',\n styleUrls: ['./mobile-calendar-dialog.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMobileCalendarDialogComponent {\n constructor(\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialogContext<\n TuiDay | TuiDayRange,\n TuiMobileCalendarData | undefined\n >,\n ) {}\n\n get single(): boolean {\n return this.context.data?.single !== false;\n }\n\n get min(): TuiDay {\n return this.context.data?.min || TUI_FIRST_DAY;\n }\n\n get max(): TuiDay {\n return this.context.data?.max || TUI_LAST_DAY;\n }\n\n get disabledItemHandler(): TuiBooleanHandler<TuiDay> {\n return this.context.data?.disabledItemHandler || ALWAYS_FALSE_HANDLER;\n }\n}\n","<tui-mobile-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [max]=\"max\"\n [min]=\"min\"\n [single]=\"single\"\n (cancel)=\"context.$implicit.complete()\"\n (confirm)=\"context.completeWith($event)\"\n></tui-mobile-calendar>\n","import {NgModule} from '@angular/core';\nimport {TuiMobileCalendarModule} from '@taiga-ui/addon-mobile/components/mobile-calendar';\nimport {TUI_MOBILE_CALENDAR} from '@taiga-ui/kit';\n\nimport {TuiMobileCalendarDialogComponent} from './mobile-calendar-dialog.component';\n\n@NgModule({\n imports: [TuiMobileCalendarModule],\n declarations: [TuiMobileCalendarDialogComponent],\n exports: [TuiMobileCalendarDialogComponent],\n providers: [\n {\n provide: TUI_MOBILE_CALENDAR,\n useValue: TuiMobileCalendarDialogComponent,\n },\n ],\n})\nexport class TuiMobileCalendarDialogModule {}\n"],"names":["TUI_FIRST_DAY","TUI_LAST_DAY","ALWAYS_FALSE_HANDLER","i0","POLYMORPHEUS_CONTEXT","i1","Component","ChangeDetectionStrategy","Inject","TuiMobileCalendarModule","TUI_MOBILE_CALENDAR","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,QAAA,gCAAA,kBAAA,YAAA;IACI,IAAA,SAAA,gCAAA,CAEa,OAGR,EAAA;IAHQ,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAGf;SACD;IAEJ,IAAA,MAAA,CAAA,cAAA,CAAI,gCAAM,CAAA,SAAA,EAAA,QAAA,EAAA;IAAV,QAAA,GAAA,EAAA,YAAA;;IACI,YAAA,OAAO,CAAA,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,CAAC,IAAI,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,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,gCAAgC,CAAA,EAAA,CAAA,CAAA;IAQjC,6BAAA,CAAA,IAAA,GAAAN,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,6BAA6B,EAP3B,SAAA,EAAA;IACP,QAAA;IACI,YAAA,OAAO,EAAEO,uBAAmB;IAC5B,YAAA,QAAQ,EAAE,gCAAgC;IAC7C,SAAA;SACJ,EARQ,OAAA,EAAA,CAAA,CAACD,0BAAuB,CAAC,CAAA,EAAA,CAAA,CAAA;sHAUzB,6BAA6B,EAAA,UAAA,EAAA,CAAA;sBAXzCE,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,OAAO,EAAE,CAACF,0BAAuB,CAAC;wBAClC,YAAY,EAAE,CAAC,gCAAgC,CAAC;wBAChD,OAAO,EAAE,CAAC,gCAAgC,CAAC;IAC3C,oBAAA,SAAS,EAAE;IACP,wBAAA;IACI,4BAAA,OAAO,EAAEC,uBAAmB;IAC5B,4BAAA,QAAQ,EAAE,gCAAgC;IAC7C,yBAAA;IACJ,qBAAA;qBACJ,CAAA
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js","sources":["../../../projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts","../../../projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.template.html","../../../projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.module.ts","../../../projects/addon-mobile/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiDialogContext} from '@taiga-ui/core';\nimport {TuiMobileCalendarData} from '@taiga-ui/kit';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-mobile-calendar-dialog',\n templateUrl: './mobile-calendar-dialog.template.html',\n styleUrls: ['./mobile-calendar-dialog.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMobileCalendarDialogComponent {\n constructor(\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialogContext<\n TuiDay | TuiDayRange | readonly TuiDay[],\n TuiMobileCalendarData | undefined\n >,\n ) {}\n\n get single(): boolean {\n return this.context.data?.single !== false;\n }\n\n get min(): TuiDay {\n return this.context.data?.min || TUI_FIRST_DAY;\n }\n\n get max(): TuiDay {\n return this.context.data?.max || TUI_LAST_DAY;\n }\n\n get disabledItemHandler(): TuiBooleanHandler<TuiDay> {\n return this.context.data?.disabledItemHandler || ALWAYS_FALSE_HANDLER;\n }\n}\n","<tui-mobile-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [max]=\"max\"\n [min]=\"min\"\n [single]=\"single\"\n (cancel)=\"context.$implicit.complete()\"\n (confirm)=\"context.completeWith($event)\"\n></tui-mobile-calendar>\n","import {NgModule} from '@angular/core';\nimport {TuiMobileCalendarModule} from '@taiga-ui/addon-mobile/components/mobile-calendar';\nimport {TUI_MOBILE_CALENDAR} from '@taiga-ui/kit';\n\nimport {TuiMobileCalendarDialogComponent} from './mobile-calendar-dialog.component';\n\n@NgModule({\n imports: [TuiMobileCalendarModule],\n declarations: [TuiMobileCalendarDialogComponent],\n exports: [TuiMobileCalendarDialogComponent],\n providers: [\n {\n provide: TUI_MOBILE_CALENDAR,\n useValue: TuiMobileCalendarDialogComponent,\n },\n ],\n})\nexport class TuiMobileCalendarDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TUI_FIRST_DAY","TUI_LAST_DAY","ALWAYS_FALSE_HANDLER","i0","POLYMORPHEUS_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;;;;;;"}
|
|
@@ -385,6 +385,11 @@
|
|
|
385
385
|
: sum; }, 0)
|
|
386
386
|
: total; }, 0);
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* This scroll strategy is hard wired with styles for iOS and Android.
|
|
390
|
+
* It is dependent on month height on those platforms and is designed to
|
|
391
|
+
* work for {@link TuiMobileCalendarComponent} with years 1906 to 2102
|
|
392
|
+
*/
|
|
388
393
|
var TuiMobileCalendarStrategy = /** @class */ (function () {
|
|
389
394
|
function TuiMobileCalendarStrategy(isIos, scrollService) {
|
|
390
395
|
this.isIos = isIos;
|
|
@@ -417,6 +422,7 @@
|
|
|
417
422
|
this.updateRenderedRange(this.viewport);
|
|
418
423
|
}
|
|
419
424
|
};
|
|
425
|
+
/** These do not matter for this case */
|
|
420
426
|
TuiMobileCalendarStrategy.prototype.onDataLengthChanged = function () { };
|
|
421
427
|
TuiMobileCalendarStrategy.prototype.onContentRendered = function () { };
|
|
422
428
|
TuiMobileCalendarStrategy.prototype.onRenderedOffsetChanged = function () { };
|
|
@@ -494,6 +500,9 @@
|
|
|
494
500
|
i7.tuiPure
|
|
495
501
|
], TuiMobileCalendarStrategy.prototype, "scrolledIndexChange", null);
|
|
496
502
|
|
|
503
|
+
/**
|
|
504
|
+
* Stream for updating value
|
|
505
|
+
*/
|
|
497
506
|
var TUI_VALUE_STREAM = new i0.InjectionToken("[TUI_VALUE_STREAM]");
|
|
498
507
|
var TUI_MOBILE_CALENDAR_PROVIDERS = [
|
|
499
508
|
i7.TuiDestroyService,
|
|
@@ -557,6 +566,7 @@
|
|
|
557
566
|
TuiMobileCalendarComponent.prototype.ngAfterViewInit = function () {
|
|
558
567
|
this.activeYear = this.initialYear;
|
|
559
568
|
this.activeMonth = this.initialMonth;
|
|
569
|
+
// Virtual scroll has not yet rendered items even in ngAfterViewInit
|
|
560
570
|
this.waitScrolledChange();
|
|
561
571
|
};
|
|
562
572
|
TuiMobileCalendarComponent.prototype.onClose = function () {
|
|
@@ -571,13 +581,16 @@
|
|
|
571
581
|
}
|
|
572
582
|
};
|
|
573
583
|
TuiMobileCalendarComponent.prototype.onDayClick = function (day) {
|
|
584
|
+
var _a, _b;
|
|
574
585
|
if (this.single) {
|
|
575
586
|
this.value = day;
|
|
576
587
|
return;
|
|
577
588
|
}
|
|
578
|
-
if (this.value
|
|
579
|
-
this.value
|
|
580
|
-
|
|
589
|
+
if (!(this.value instanceof i7.TuiDayRange) && !(this.value instanceof i7.TuiDay)) {
|
|
590
|
+
this.value = kit.tuiImmutableUpdateInputDateMulti((_a = this.value) !== null && _a !== void 0 ? _a : [], day);
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
if (this.value instanceof i7.TuiDay || !((_b = this.value) === null || _b === void 0 ? void 0 : _b.isSingleDay)) {
|
|
581
594
|
this.value = new i7.TuiDayRange(day, day);
|
|
582
595
|
return;
|
|
583
596
|
}
|
|
@@ -593,6 +606,7 @@
|
|
|
593
606
|
return null;
|
|
594
607
|
};
|
|
595
608
|
TuiMobileCalendarComponent.prototype.onMonthChange = function (month) {
|
|
609
|
+
// Skipping initial callback where index === 0
|
|
596
610
|
if (!month || this.activeMonth === month) {
|
|
597
611
|
return;
|
|
598
612
|
}
|
|
@@ -612,18 +626,23 @@
|
|
|
612
626
|
this.activeMonth += this.getMonthOffset(year);
|
|
613
627
|
this.activeYear = year;
|
|
614
628
|
this.scrollToActiveYear('smooth');
|
|
629
|
+
// Delay is required to run months scroll in the next frame to prevent flicker
|
|
615
630
|
setTimeout(function () {
|
|
616
631
|
_this.scrollToActiveMonth();
|
|
617
632
|
});
|
|
618
633
|
};
|
|
619
634
|
Object.defineProperty(TuiMobileCalendarComponent.prototype, "initialYear", {
|
|
620
635
|
get: function () {
|
|
636
|
+
var _a, _b, _c;
|
|
621
637
|
if (!this.value) {
|
|
622
638
|
return this.today.year;
|
|
623
639
|
}
|
|
624
640
|
if (this.value instanceof i7.TuiDay) {
|
|
625
641
|
return this.value.year;
|
|
626
642
|
}
|
|
643
|
+
if (!(this.value instanceof i7.TuiDayRange)) {
|
|
644
|
+
return (_c = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.year) !== null && _c !== void 0 ? _c : this.today.year;
|
|
645
|
+
}
|
|
627
646
|
return this.value.from.year;
|
|
628
647
|
},
|
|
629
648
|
enumerable: false,
|
|
@@ -631,12 +650,18 @@
|
|
|
631
650
|
});
|
|
632
651
|
Object.defineProperty(TuiMobileCalendarComponent.prototype, "initialMonth", {
|
|
633
652
|
get: function () {
|
|
653
|
+
var _a, _b, _c, _d, _e, _f;
|
|
634
654
|
if (!this.value) {
|
|
635
655
|
return this.today.month + (this.today.year - STARTING_YEAR) * i7.MONTHS_IN_YEAR;
|
|
636
656
|
}
|
|
637
657
|
if (this.value instanceof i7.TuiDay) {
|
|
638
658
|
return this.value.month + (this.value.year - STARTING_YEAR) * i7.MONTHS_IN_YEAR;
|
|
639
659
|
}
|
|
660
|
+
if (!(this.value instanceof i7.TuiDayRange)) {
|
|
661
|
+
return (((_c = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.month) !== null && _c !== void 0 ? _c : this.today.month) +
|
|
662
|
+
(((_f = (_e = (_d = this.value) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.year) !== null && _f !== void 0 ? _f : this.today.year) - STARTING_YEAR) *
|
|
663
|
+
i7.MONTHS_IN_YEAR);
|
|
664
|
+
}
|
|
640
665
|
return (this.value.from.month +
|
|
641
666
|
(this.value.from.year - STARTING_YEAR) * i7.MONTHS_IN_YEAR);
|
|
642
667
|
},
|
|
@@ -676,9 +701,14 @@
|
|
|
676
701
|
var touchstart$ = i7.tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'touchstart');
|
|
677
702
|
var touchend$ = i7.tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'touchend');
|
|
678
703
|
var click$ = i7.tuiTypedFromEvent(yearsScrollRef.elementRef.nativeElement, 'click');
|
|
704
|
+
// Refresh activeYear
|
|
679
705
|
yearsScrollRef
|
|
680
706
|
.elementScrolled()
|
|
681
|
-
.pipe(
|
|
707
|
+
.pipe(
|
|
708
|
+
// Ignore smooth scroll resulting from click on the exact year
|
|
709
|
+
operators.windowToggle(touchstart$, function () { return click$; }), operators.mergeMap(function (x) { return x; }),
|
|
710
|
+
// Delay is required to run months scroll in the next frame to prevent flicker
|
|
711
|
+
operators.delay(0), operators.map(function () { return Math.round(yearsScrollRef.measureScrollOffset() / _this.yearWidth) +
|
|
682
712
|
Math.floor(YEARS_IN_ROW / 2) +
|
|
683
713
|
STARTING_YEAR; }), operators.filter(function (activeYear) { return activeYear !== _this.activeYear; }), operators.takeUntil(this.destroy$))
|
|
684
714
|
.subscribe(function (activeYear) {
|
|
@@ -686,6 +716,7 @@
|
|
|
686
716
|
_this.activeYear = activeYear;
|
|
687
717
|
_this.scrollToActiveMonth();
|
|
688
718
|
});
|
|
719
|
+
// Smooth scroll to activeYear after scrolling is done
|
|
689
720
|
touchstart$
|
|
690
721
|
.pipe(operators.switchMap(function () { return touchend$; }), operators.switchMap(function () { return i8.race(yearsScrollRef.elementScrolled(), i8.timer(SCROLL_DEBOUNCE_TIME)).pipe(operators.debounceTime(SCROLL_DEBOUNCE_TIME * 2), operators.take(1), operators.takeUntil(touchstart$)); }), operators.takeUntil(this.destroy$))
|
|
691
722
|
.subscribe(function () { return _this.scrollToActiveYear('smooth'); });
|
|
@@ -698,6 +729,7 @@
|
|
|
698
729
|
}
|
|
699
730
|
var touchstart$ = i7.tuiTypedFromEvent(monthsScrollRef.elementRef.nativeElement, 'touchstart', { passive: true });
|
|
700
731
|
var touchend$ = i7.tuiTypedFromEvent(monthsScrollRef.elementRef.nativeElement, 'touchend');
|
|
732
|
+
// Smooth scroll to the closest month after scrolling is done
|
|
701
733
|
touchstart$
|
|
702
734
|
.pipe(operators.switchMap(function () { return touchend$; }), operators.switchMap(function () { return i8.race(monthsScrollRef.elementScrolled(), i8.timer(SCROLL_DEBOUNCE_TIME)).pipe(operators.debounceTime(SCROLL_DEBOUNCE_TIME * 2), operators.take(1), operators.takeUntil(touchstart$)); }), operators.takeUntil(this.destroy$))
|
|
703
735
|
.subscribe(function () { return _this.scrollToActiveMonth('smooth'); });
|
|
@@ -843,6 +875,10 @@
|
|
|
843
875
|
}]
|
|
844
876
|
}] });
|
|
845
877
|
|
|
878
|
+
/**
|
|
879
|
+
* Generated bundle index. Do not edit.
|
|
880
|
+
*/
|
|
881
|
+
|
|
846
882
|
exports.ANDROID_CYCLE = ANDROID_CYCLE;
|
|
847
883
|
exports.ANDROID_LABEL = ANDROID_LABEL;
|
|
848
884
|
exports.ANDROID_WEEK = ANDROID_WEEK;
|