@taiga-ui/addon-mobile 2.54.0 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +69 -283
- 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 +538 -406
- 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 +417 -294
- 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 +437 -324
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +878 -688
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +374 -265
- 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 +374 -265
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components.umd.js +17 -31
- package/bundles/taiga-ui-addon-mobile-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-const.umd.js +10 -255
- package/bundles/taiga-ui-addon-mobile-const.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +418 -305
- 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 +119 -325
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +103 -314
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +435 -315
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +414 -298
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives.umd.js +13 -23
- package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +2 -2
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +405 -282
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-internal.umd.js +5 -7
- package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-tokens.umd.js +8 -4
- package/bundles/taiga-ui-addon-mobile-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-types.umd.js +2 -2
- package/bundles/taiga-ui-addon-mobile-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.js +8 -10
- package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile.umd.js +24 -30
- package/bundles/taiga-ui-addon-mobile.umd.js.map +1 -1
- package/components/mobile-calendar/mobile-calendar.component.d.ts +21 -2
- package/components/mobile-calendar/mobile-calendar.module.d.ts +12 -0
- package/components/mobile-calendar/package.json +2 -5
- package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +1 -0
- package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +3 -0
- package/components/mobile-calendar-dialog/mobile-calendar-dialog.module.d.ts +6 -2
- package/components/mobile-calendar-dialog/package.json +2 -5
- package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +1 -0
- package/components/mobile-dialog/mobile-dialog.component.d.ts +3 -0
- package/components/mobile-dialog/mobile-dialog.module.d.ts +9 -0
- package/components/mobile-dialog/mobile-dialog.service.d.ts +4 -1
- package/components/mobile-dialog/package.json +2 -5
- package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +1 -0
- package/components/package.json +2 -5
- package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +3 -0
- package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +3 -0
- package/components/pull-to-refresh/package.json +2 -5
- package/components/pull-to-refresh/pull-to-refresh.component.d.ts +3 -0
- package/components/pull-to-refresh/pull-to-refresh.module.d.ts +10 -0
- package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +1 -0
- package/components/sheet/components/sheet/sheet.component.d.ts +5 -2
- package/components/sheet/components/sheet/sheet.providers.d.ts +1 -5
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +5 -2
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +3 -0
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +3 -0
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +3 -0
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +3 -0
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +5 -2
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +3 -0
- package/components/sheet/package.json +2 -5
- package/components/sheet/sheet-options.d.ts +1 -1
- package/components/sheet/sheet-tokens.d.ts +5 -0
- package/components/sheet/sheet.d.ts +4 -0
- package/components/sheet/sheet.directive.d.ts +3 -0
- package/components/sheet/sheet.module.d.ts +17 -0
- package/components/sheet/sheet.service.d.ts +3 -0
- package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +1 -0
- package/components/taiga-ui-addon-mobile-components.d.ts +1 -0
- package/components/theme-android/package.json +2 -5
- package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +1 -0
- package/components/theme-android/theme-android.component.d.ts +3 -0
- package/components/theme-android/theme-android.module.d.ts +5 -0
- package/components/theme-ios/package.json +2 -5
- package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +1 -0
- package/components/theme-ios/theme-ios.component.d.ts +3 -0
- package/components/theme-ios/theme-ios.module.d.ts +5 -0
- package/const/package.json +2 -5
- package/const/taiga-ui-addon-mobile-const.d.ts +1 -0
- package/directives/elastic-sticky/elastic-sticky.directive.d.ts +3 -0
- package/directives/elastic-sticky/elastic-sticky.module.d.ts +5 -0
- package/directives/elastic-sticky/elastic-sticky.service.d.ts +3 -0
- package/directives/elastic-sticky/package.json +2 -5
- package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +1 -0
- package/directives/mobile-tabs/mobile-tabs.component.d.ts +3 -0
- package/directives/mobile-tabs/mobile-tabs.directive.d.ts +3 -0
- package/directives/mobile-tabs/mobile-tabs.module.d.ts +6 -0
- package/directives/mobile-tabs/package.json +2 -5
- package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +1 -0
- package/directives/package.json +2 -5
- package/directives/ripple/package.json +2 -5
- package/directives/ripple/ripple-styles.component.d.ts +3 -0
- package/directives/ripple/ripple.directive.d.ts +3 -0
- package/directives/ripple/ripple.module.d.ts +6 -0
- package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +1 -1
- package/directives/sidebar/package.json +2 -5
- package/directives/sidebar/sidebar.component.d.ts +3 -0
- package/directives/sidebar/sidebar.directive.d.ts +5 -2
- package/directives/sidebar/sidebar.module.d.ts +8 -0
- package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +1 -0
- package/directives/taiga-ui-addon-mobile-directives.d.ts +1 -0
- package/directives/touchable/package.json +2 -5
- package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +1 -0
- package/directives/touchable/touchable.directive.d.ts +6 -3
- package/directives/touchable/touchable.module.d.ts +5 -0
- package/esm2015/components/index.js +1 -1
- package/esm2015/components/mobile-calendar/index.js +1 -1
- package/esm2015/components/mobile-calendar/mobile-calendar.component.js +83 -63
- package/esm2015/components/mobile-calendar/mobile-calendar.const.js +1 -1
- package/esm2015/components/mobile-calendar/mobile-calendar.module.js +34 -13
- package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +2 -2
- package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +2 -2
- package/esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +1 -1
- package/esm2015/components/mobile-calendar-dialog/index.js +1 -1
- package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +19 -17
- package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +27 -21
- package/esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +1 -1
- package/esm2015/components/mobile-dialog/index.js +2 -1
- package/esm2015/components/mobile-dialog/mobile-dialog-options.js +2 -1
- package/esm2015/components/mobile-dialog/mobile-dialog.component.js +28 -22
- package/esm2015/components/mobile-dialog/mobile-dialog.module.js +29 -20
- package/esm2015/components/mobile-dialog/mobile-dialog.service.js +13 -14
- package/esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +1 -1
- package/esm2015/components/pull-to-refresh/index.js +1 -1
- package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +21 -19
- package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +19 -16
- package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +31 -24
- package/esm2015/components/pull-to-refresh/pull-to-refresh.module.js +21 -16
- package/esm2015/components/pull-to-refresh/pull-to-refresh.providers.js +3 -3
- package/esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -1
- package/esm2015/components/sheet/components/sheet/sheet.component.js +67 -55
- package/esm2015/components/sheet/components/sheet/sheet.providers.js +10 -10
- package/esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js +29 -26
- package/esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js +31 -25
- package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +33 -23
- package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +36 -29
- package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +33 -28
- package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +36 -31
- package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +38 -36
- package/esm2015/components/sheet/index.js +2 -1
- package/esm2015/components/sheet/ios.hacks.js +9 -9
- package/esm2015/components/sheet/sheet-options.js +5 -6
- package/esm2015/components/sheet/sheet-tokens.js +5 -0
- package/esm2015/components/sheet/sheet.directive.js +30 -23
- package/esm2015/components/sheet/sheet.js +2 -1
- package/esm2015/components/sheet/sheet.module.js +55 -29
- package/esm2015/components/sheet/sheet.service.js +14 -16
- package/esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js +1 -1
- package/esm2015/components/taiga-ui-addon-mobile-components.js +1 -1
- package/esm2015/components/theme-android/index.js +1 -1
- package/esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +1 -1
- package/esm2015/components/theme-android/theme-android.component.js +16 -14
- package/esm2015/components/theme-android/theme-android.module.js +14 -11
- package/esm2015/components/theme-ios/index.js +1 -1
- package/esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +1 -1
- package/esm2015/components/theme-ios/theme-ios.component.js +16 -14
- package/esm2015/components/theme-ios/theme-ios.module.js +14 -11
- package/esm2015/const/index.js +1 -1
- package/esm2015/const/mobile-alert-options.js +2 -2
- package/esm2015/const/taiga-ui-addon-mobile-const.js +1 -1
- package/esm2015/directives/elastic-sticky/elastic-sticky.directive.js +20 -19
- package/esm2015/directives/elastic-sticky/elastic-sticky.module.js +14 -11
- package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +29 -24
- package/esm2015/directives/elastic-sticky/index.js +1 -1
- package/esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +1 -1
- package/esm2015/directives/index.js +1 -1
- package/esm2015/directives/mobile-tabs/index.js +1 -1
- package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +14 -12
- package/esm2015/directives/mobile-tabs/mobile-tabs.directive.js +38 -29
- package/esm2015/directives/mobile-tabs/mobile-tabs.module.js +15 -12
- package/esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +1 -1
- package/esm2015/directives/ripple/index.js +1 -1
- package/esm2015/directives/ripple/ripple-styles.component.js +14 -12
- package/esm2015/directives/ripple/ripple.directive.js +41 -34
- package/esm2015/directives/ripple/ripple.module.js +15 -12
- package/esm2015/directives/ripple/ripple.providers.js +10 -10
- package/esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +1 -2
- package/esm2015/directives/sidebar/index.js +1 -1
- package/esm2015/directives/sidebar/sidebar.component.js +34 -29
- package/esm2015/directives/sidebar/sidebar.directive.js +39 -34
- package/esm2015/directives/sidebar/sidebar.module.js +16 -13
- package/esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +1 -1
- package/esm2015/directives/taiga-ui-addon-mobile-directives.js +1 -1
- package/esm2015/directives/touchable/index.js +1 -1
- package/esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +1 -1
- package/esm2015/directives/touchable/touchable.directive.js +49 -39
- package/esm2015/directives/touchable/touchable.module.js +14 -11
- package/esm2015/index.js +3 -2
- package/esm2015/interfaces/index.js +2 -1
- package/esm2015/interfaces/mobile-alert-data.js +2 -1
- package/esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js +2 -1
- package/esm2015/internal/index.js +1 -1
- package/esm2015/internal/primitive-calendar-mobile/index.js +1 -1
- package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +28 -23
- package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +24 -13
- package/esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +1 -1
- package/esm2015/internal/taiga-ui-addon-mobile-internal.js +1 -1
- package/esm2015/taiga-ui-addon-mobile.js +1 -1
- package/esm2015/tokens/index.js +1 -1
- package/esm2015/tokens/loaded.js +2 -2
- package/esm2015/tokens/taiga-ui-addon-mobile-tokens.js +1 -1
- package/esm2015/types/index.js +2 -1
- package/esm2015/types/taiga-ui-addon-mobile-types.js +2 -1
- package/esm2015/types/touch-mode.js +2 -1
- package/esm2015/utils/find-touch-index.js +2 -7
- package/esm2015/utils/index.js +1 -1
- package/esm2015/utils/taiga-ui-addon-mobile-utils.js +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +45 -35
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +117 -74
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js +68 -50
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +84 -68
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +444 -366
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js +27 -20
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js +27 -20
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-const.js +1 -1
- package/fesm2015/taiga-ui-addon-mobile-const.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js +58 -47
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +63 -46
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js +76 -61
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js +82 -68
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js +61 -46
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +50 -32
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-internal.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-tokens.js +1 -1
- package/fesm2015/taiga-ui-addon-mobile-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.js +2 -7
- package/fesm2015/taiga-ui-addon-mobile-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile.js +2 -1
- package/fesm2015/taiga-ui-addon-mobile.js.map +1 -1
- package/index.d.ts +0 -1
- package/interfaces/package.json +2 -5
- package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +1 -0
- package/internal/package.json +2 -5
- package/internal/primitive-calendar-mobile/package.json +2 -5
- package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +3 -0
- package/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.d.ts +8 -0
- package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +1 -0
- package/internal/taiga-ui-addon-mobile-internal.d.ts +1 -0
- package/package.json +12 -15
- package/taiga-ui-addon-mobile.d.ts +1 -0
- package/tokens/package.json +2 -5
- package/tokens/taiga-ui-addon-mobile-tokens.d.ts +1 -0
- package/types/package.json +2 -5
- package/types/taiga-ui-addon-mobile-types.d.ts +1 -0
- package/types/touch-mode.d.ts +1 -1
- package/utils/find-touch-index.d.ts +1 -5
- package/utils/package.json +2 -5
- package/utils/taiga-ui-addon-mobile-utils.d.ts +1 -0
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-components.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-const.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-const.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-directives.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-enums.umd.js +0 -20
- package/bundles/taiga-ui-addon-mobile-enums.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-enums.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-enums.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-internal.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-internal.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-tokens.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-types.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-types.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile-utils.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-mobile.umd.min.js.map +0 -1
- package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +0 -1
- package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.metadata.json +0 -1
- package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.metadata.json +0 -1
- package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +0 -1
- package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +0 -1
- package/components/taiga-ui-addon-mobile-components.metadata.json +0 -1
- package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.metadata.json +0 -1
- package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.metadata.json +0 -1
- package/const/taiga-ui-addon-mobile-const.metadata.json +0 -1
- package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.metadata.json +0 -1
- package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.metadata.json +0 -1
- package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.metadata.json +0 -1
- package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.metadata.json +0 -1
- package/directives/taiga-ui-addon-mobile-directives.metadata.json +0 -1
- package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.metadata.json +0 -1
- package/enums/index.d.ts +0 -1
- package/enums/package.json +0 -13
- package/enums/taiga-ui-addon-mobile-enums.d.ts +0 -4
- package/enums/taiga-ui-addon-mobile-enums.metadata.json +0 -1
- package/enums/touch-mode.d.ts +0 -8
- package/esm2015/enums/index.js +0 -2
- package/esm2015/enums/taiga-ui-addon-mobile-enums.js +0 -5
- package/esm2015/enums/touch-mode.js +0 -10
- package/esm5/components/index.js +0 -8
- package/esm5/components/mobile-calendar/index.js +0 -6
- package/esm5/components/mobile-calendar/mobile-calendar.component.js +0 -295
- package/esm5/components/mobile-calendar/mobile-calendar.const.js +0 -25
- package/esm5/components/mobile-calendar/mobile-calendar.module.js +0 -34
- package/esm5/components/mobile-calendar/mobile-calendar.providers.js +0 -31
- package/esm5/components/mobile-calendar/mobile-calendar.strategy.js +0 -134
- package/esm5/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -5
- package/esm5/components/mobile-calendar-dialog/index.js +0 -3
- package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -57
- package/esm5/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js +0 -28
- package/esm5/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -5
- package/esm5/components/mobile-dialog/index.js +0 -4
- package/esm5/components/mobile-dialog/mobile-dialog-options.js +0 -1
- package/esm5/components/mobile-dialog/mobile-dialog.component.js +0 -34
- package/esm5/components/mobile-dialog/mobile-dialog.module.js +0 -31
- package/esm5/components/mobile-dialog/mobile-dialog.service.js +0 -34
- package/esm5/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -5
- package/esm5/components/pull-to-refresh/index.js +0 -6
- package/esm5/components/pull-to-refresh/loader-android/loader-android.component.js +0 -43
- package/esm5/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -41
- package/esm5/components/pull-to-refresh/pull-to-refresh.component.js +0 -56
- package/esm5/components/pull-to-refresh/pull-to-refresh.module.js +0 -26
- package/esm5/components/pull-to-refresh/pull-to-refresh.providers.js +0 -32
- package/esm5/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -5
- package/esm5/components/sheet/components/sheet/sheet.component.js +0 -150
- package/esm5/components/sheet/components/sheet/sheet.providers.js +0 -42
- package/esm5/components/sheet/components/sheet-bar/sheet-bar.component.js +0 -43
- package/esm5/components/sheet/components/sheet-heading/sheet-heading.component.js +0 -40
- package/esm5/components/sheet/components/sheets-host/sheets-host.component.js +0 -40
- package/esm5/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
- package/esm5/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -46
- package/esm5/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -56
- package/esm5/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -93
- package/esm5/components/sheet/index.js +0 -15
- package/esm5/components/sheet/ios.hacks.js +0 -42
- package/esm5/components/sheet/sheet-options.js +0 -16
- package/esm5/components/sheet/sheet.directive.js +0 -58
- package/esm5/components/sheet/sheet.js +0 -1
- package/esm5/components/sheet/sheet.module.js +0 -52
- package/esm5/components/sheet/sheet.service.js +0 -42
- package/esm5/components/sheet/taiga-ui-addon-mobile-components-sheet.js +0 -5
- package/esm5/components/taiga-ui-addon-mobile-components.js +0 -5
- package/esm5/components/theme-android/index.js +0 -3
- package/esm5/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js +0 -5
- package/esm5/components/theme-android/theme-android.component.js +0 -22
- package/esm5/components/theme-android/theme-android.module.js +0 -16
- package/esm5/components/theme-ios/index.js +0 -3
- package/esm5/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js +0 -5
- package/esm5/components/theme-ios/theme-ios.component.js +0 -22
- package/esm5/components/theme-ios/theme-ios.module.js +0 -16
- package/esm5/const/index.js +0 -2
- package/esm5/const/mobile-alert-options.js +0 -8
- package/esm5/const/taiga-ui-addon-mobile-const.js +0 -5
- package/esm5/directives/elastic-sticky/elastic-sticky.directive.js +0 -26
- package/esm5/directives/elastic-sticky/elastic-sticky.module.js +0 -16
- package/esm5/directives/elastic-sticky/elastic-sticky.service.js +0 -58
- package/esm5/directives/elastic-sticky/index.js +0 -4
- package/esm5/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -5
- package/esm5/directives/index.js +0 -6
- package/esm5/directives/mobile-tabs/index.js +0 -4
- package/esm5/directives/mobile-tabs/mobile-tabs.component.js +0 -16
- package/esm5/directives/mobile-tabs/mobile-tabs.directive.js +0 -51
- package/esm5/directives/mobile-tabs/mobile-tabs.module.js +0 -18
- package/esm5/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -5
- package/esm5/directives/ripple/index.js +0 -4
- package/esm5/directives/ripple/ripple-styles.component.js +0 -16
- package/esm5/directives/ripple/ripple.directive.js +0 -63
- package/esm5/directives/ripple/ripple.module.js +0 -18
- package/esm5/directives/ripple/ripple.providers.js +0 -54
- package/esm5/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js +0 -6
- package/esm5/directives/sidebar/index.js +0 -4
- package/esm5/directives/sidebar/sidebar.component.js +0 -68
- package/esm5/directives/sidebar/sidebar.directive.js +0 -78
- package/esm5/directives/sidebar/sidebar.module.js +0 -21
- package/esm5/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js +0 -5
- package/esm5/directives/taiga-ui-addon-mobile-directives.js +0 -5
- package/esm5/directives/touchable/index.js +0 -3
- package/esm5/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js +0 -5
- package/esm5/directives/touchable/touchable.directive.js +0 -90
- package/esm5/directives/touchable/touchable.module.js +0 -16
- package/esm5/enums/index.js +0 -2
- package/esm5/enums/taiga-ui-addon-mobile-enums.js +0 -5
- package/esm5/enums/touch-mode.js +0 -10
- package/esm5/index.js +0 -7
- package/esm5/interfaces/index.js +0 -1
- package/esm5/interfaces/mobile-alert-data.js +0 -1
- package/esm5/interfaces/taiga-ui-addon-mobile-interfaces.js +0 -4
- package/esm5/internal/index.js +0 -2
- package/esm5/internal/primitive-calendar-mobile/index.js +0 -3
- package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -37
- package/esm5/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js +0 -28
- package/esm5/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -5
- package/esm5/internal/taiga-ui-addon-mobile-internal.js +0 -5
- package/esm5/taiga-ui-addon-mobile.js +0 -5
- package/esm5/tokens/index.js +0 -2
- package/esm5/tokens/loaded.js +0 -6
- package/esm5/tokens/taiga-ui-addon-mobile-tokens.js +0 -5
- package/esm5/types/index.js +0 -1
- package/esm5/types/taiga-ui-addon-mobile-types.js +0 -4
- package/esm5/types/touch-mode.js +0 -1
- package/esm5/utils/find-touch-index.js +0 -15
- package/esm5/utils/index.js +0 -2
- package/esm5/utils/taiga-ui-addon-mobile-utils.js +0 -5
- package/fesm2015/taiga-ui-addon-mobile-enums.js +0 -16
- package/fesm2015/taiga-ui-addon-mobile-enums.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js +0 -87
- package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +0 -502
- package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js +0 -91
- package/fesm5/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +0 -185
- package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-sheet.js +0 -680
- package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-theme-android.js +0 -40
- package/fesm5/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js +0 -40
- package/fesm5/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-components.js +0 -12
- package/fesm5/taiga-ui-addon-mobile-components.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-const.js +0 -15
- package/fesm5/taiga-ui-addon-mobile-const.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js +0 -97
- package/fesm5/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -82
- package/fesm5/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-directives-ripple.js +0 -143
- package/fesm5/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js +0 -161
- package/fesm5/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-directives-touchable.js +0 -108
- package/fesm5/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-directives.js +0 -10
- package/fesm5/taiga-ui-addon-mobile-directives.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-enums.js +0 -16
- package/fesm5/taiga-ui-addon-mobile-enums.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-interfaces.js +0 -4
- package/fesm5/taiga-ui-addon-mobile-interfaces.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js +0 -65
- package/fesm5/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-internal.js +0 -6
- package/fesm5/taiga-ui-addon-mobile-internal.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-tokens.js +0 -13
- package/fesm5/taiga-ui-addon-mobile-tokens.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-types.js +0 -4
- package/fesm5/taiga-ui-addon-mobile-types.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile-utils.js +0 -21
- package/fesm5/taiga-ui-addon-mobile-utils.js.map +0 -1
- package/fesm5/taiga-ui-addon-mobile.js +0 -11
- package/fesm5/taiga-ui-addon-mobile.js.map +0 -1
- package/interfaces/taiga-ui-addon-mobile-interfaces.metadata.json +0 -1
- package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.metadata.json +0 -1
- package/internal/taiga-ui-addon-mobile-internal.metadata.json +0 -1
- package/taiga-ui-addon-mobile.metadata.json +0 -1
- package/tokens/taiga-ui-addon-mobile-tokens.metadata.json +0 -1
- package/types/taiga-ui-addon-mobile-types.metadata.json +0 -1
- package/utils/taiga-ui-addon-mobile-utils.metadata.json +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __extends } from 'tslib';
|
|
2
|
-
import { Inject, Component, ChangeDetectionStrategy, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule } from '@angular/core';
|
|
3
|
-
import { TUI_IS_IOS, AbstractTuiDialogService, TUI_DIALOGS } from '@taiga-ui/cdk';
|
|
4
|
-
import { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import { TuiRippleModule } from '@taiga-ui/addon-mobile/directives/ripple';
|
|
7
|
-
import { TuiButtonModule } from '@taiga-ui/core';
|
|
8
|
-
import { TuiIdService } from '@taiga-ui/cdk/services';
|
|
9
|
-
|
|
10
|
-
// @dynamic
|
|
11
|
-
var TuiMobileDialogComponent = /** @class */ (function () {
|
|
12
|
-
function TuiMobileDialogComponent(isIOS, context) {
|
|
13
|
-
this.isIOS = isIOS;
|
|
14
|
-
this.context = context;
|
|
15
|
-
}
|
|
16
|
-
TuiMobileDialogComponent.prototype.onAction = function (index) {
|
|
17
|
-
this.context.completeWith(index);
|
|
18
|
-
};
|
|
19
|
-
TuiMobileDialogComponent.ctorParameters = function () { return [
|
|
20
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] },
|
|
21
|
-
{ type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] }
|
|
22
|
-
]; };
|
|
23
|
-
TuiMobileDialogComponent = __decorate([
|
|
24
|
-
Component({
|
|
25
|
-
selector: 'tui-mobile-dialog',
|
|
26
|
-
template: "<h2\n *ngIf=\"!!context.label\"\n class=\"t-heading\"\n [id]=\"context.id\"\n>\n {{ context.label }}\n</h2>\n<div\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"context.content\"\n [context]=\"context\"\n></div>\n<button\n *ngFor=\"let action of context.actions; let index = index\"\n tuiButton\n tuiRipple\n type=\"button\"\n size=\"s\"\n appearance=\"flat\"\n class=\"t-button\"\n [class.t-button_column]=\"context.actions.length > 2\"\n (click)=\"onAction(index)\"\n>\n {{ action }}\n</button>\n",
|
|
27
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
28
|
-
host: {
|
|
29
|
-
'[class._ios]': 'isIOS',
|
|
30
|
-
},
|
|
31
|
-
styles: [":host{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;background:var(--tui-base-01);word-break:break-word;overflow:hidden;padding:1.25rem .75rem 0 1.5rem}:host:not(._ios){max-width:17.5rem;border-radius:.125rem;text-align:left;box-shadow:0 1.5rem 1.5rem 0 rgba(0,0,0,.32)}:host._ios{max-width:16.875rem;padding:1.5rem 0 0;border-radius:.75rem;text-align:center}.t-heading{font-size:1rem}:host._ios .t-heading{font-weight:700;font-size:1.125rem}.t-content{margin-top:.75rem;font-size:.875rem;line-height:1.25rem;padding-right:.75rem}:host._ios .t-content{margin-top:.25rem;padding-left:1.5rem;padding-right:1.5rem}.t-button{border-radius:0}:host._ios .t-button{border-top:1px solid #b8b8b8;height:2.625rem;width:100%}:host._ios .t-button:first-of-type{margin-top:1.125rem}:host:not(._ios) .t-button{margin:.5rem 0 .5rem .5rem;float:right}:host:not(._ios) .t-button_column{display:block;float:none;margin-left:auto}"]
|
|
32
|
-
}),
|
|
33
|
-
__param(0, Inject(TUI_IS_IOS)),
|
|
34
|
-
__param(1, Inject(POLYMORPHEUS_CONTEXT))
|
|
35
|
-
], TuiMobileDialogComponent);
|
|
36
|
-
return TuiMobileDialogComponent;
|
|
37
|
-
}());
|
|
38
|
-
|
|
39
|
-
var DIALOG = new PolymorpheusComponent(TuiMobileDialogComponent);
|
|
40
|
-
var DEFAULT_OPTIONS = {
|
|
41
|
-
label: '',
|
|
42
|
-
actions: ['OK'],
|
|
43
|
-
};
|
|
44
|
-
var TuiMobileDialogService = /** @class */ (function (_super) {
|
|
45
|
-
__extends(TuiMobileDialogService, _super);
|
|
46
|
-
function TuiMobileDialogService() {
|
|
47
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
-
_this.component = DIALOG;
|
|
49
|
-
_this.defaultOptions = DEFAULT_OPTIONS;
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
TuiMobileDialogService.prototype.open = function (content, options) {
|
|
53
|
-
if (options === void 0) { options = {}; }
|
|
54
|
-
return _super.prototype.open.call(this, content, options);
|
|
55
|
-
};
|
|
56
|
-
TuiMobileDialogService.ɵprov = ɵɵdefineInjectable({ factory: function TuiMobileDialogService_Factory() { return new TuiMobileDialogService(ɵɵinject(TuiIdService)); }, token: TuiMobileDialogService, providedIn: "root" });
|
|
57
|
-
TuiMobileDialogService = __decorate([
|
|
58
|
-
Injectable({
|
|
59
|
-
providedIn: 'root',
|
|
60
|
-
})
|
|
61
|
-
], TuiMobileDialogService);
|
|
62
|
-
return TuiMobileDialogService;
|
|
63
|
-
}(AbstractTuiDialogService));
|
|
64
|
-
|
|
65
|
-
var TuiMobileDialogModule = /** @class */ (function () {
|
|
66
|
-
function TuiMobileDialogModule() {
|
|
67
|
-
}
|
|
68
|
-
TuiMobileDialogModule = __decorate([
|
|
69
|
-
NgModule({
|
|
70
|
-
imports: [CommonModule, TuiButtonModule, TuiRippleModule, PolymorpheusModule],
|
|
71
|
-
declarations: [TuiMobileDialogComponent],
|
|
72
|
-
exports: [TuiMobileDialogComponent],
|
|
73
|
-
providers: [
|
|
74
|
-
{
|
|
75
|
-
provide: TUI_DIALOGS,
|
|
76
|
-
useExisting: TuiMobileDialogService,
|
|
77
|
-
multi: true,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
entryComponents: [TuiMobileDialogComponent],
|
|
81
|
-
})
|
|
82
|
-
], TuiMobileDialogModule);
|
|
83
|
-
return TuiMobileDialogModule;
|
|
84
|
-
}());
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Generated bundle index. Do not edit.
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
export { TuiMobileDialogComponent, TuiMobileDialogModule, TuiMobileDialogService };
|
|
91
|
-
//# sourceMappingURL=taiga-ui-addon-mobile-components-mobile-dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-components-mobile-dialog.js","sources":["ng://@taiga-ui/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts","ng://@taiga-ui/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts","ng://@taiga-ui/addon-mobile/components/mobile-dialog/mobile-dialog.module.ts","ng://@taiga-ui/addon-mobile/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {TUI_IS_IOS, TuiDialog} from '@taiga-ui/cdk';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiMobileDialogOptions} from './mobile-dialog-options';\n\n// @dynamic\n@Component({\n selector: 'tui-mobile-dialog',\n templateUrl: './mobile-dialog.template.html',\n styleUrls: ['./mobile-dialog.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiMobileDialogComponent<I> {\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiMobileDialogOptions<I>, number>,\n ) {}\n\n onAction(index: number): void {\n this.context.completeWith(index);\n }\n}\n","import {Injectable} from '@angular/core';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiMobileDialogComponent} from './mobile-dialog.component';\nimport {TuiMobileDialogOptions} from './mobile-dialog-options';\n\nconst DIALOG = new PolymorpheusComponent(TuiMobileDialogComponent);\nconst DEFAULT_OPTIONS = {\n label: '',\n actions: ['OK'],\n} as const;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiMobileDialogService extends AbstractTuiDialogService<\n TuiMobileDialogOptions<any>\n> {\n protected readonly component = DIALOG;\n protected readonly defaultOptions: TuiMobileDialogOptions<any> =\n DEFAULT_OPTIONS as any;\n\n open<I, O = number>(\n content: PolymorpheusContent<TuiBaseDialogContext<O> & TuiMobileDialogOptions<I>>,\n options: Partial<TuiMobileDialogOptions<I>> = {},\n ): Observable<O> {\n return super.open(content, options);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRippleModule} from '@taiga-ui/addon-mobile/directives/ripple';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiMobileDialogComponent} from './mobile-dialog.component';\nimport {TuiMobileDialogService} from './mobile-dialog.service';\n\n@NgModule({\n imports: [CommonModule, TuiButtonModule, TuiRippleModule, PolymorpheusModule],\n declarations: [TuiMobileDialogComponent],\n exports: [TuiMobileDialogComponent],\n providers: [\n {\n provide: TUI_DIALOGS,\n useExisting: TuiMobileDialogService,\n multi: true,\n },\n ],\n entryComponents: [TuiMobileDialogComponent],\n})\nexport class TuiMobileDialogModule {}\n","/**\n * Generated bund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CAAC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,CAAC;YAC7E,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;YACnC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,WAAW;oBACpB,WAAW,EAAE,sBAAsB;oBACnC,KAAK,EAAE,IAAI;iBACd;aACJ;YACD,eAAe,EAAE,CAAC,wBAAwB,CAAC;SAC9C,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACvBA;;;;;;"}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { Input, HostBinding, Component, ChangeDetectionStrategy, InjectionToken, ElementRef, Inject, Output, NgModule } from '@angular/core';
|
|
3
|
-
import { TuiDestroyService, TUI_IS_IOS, typedFromEvent, tuiPure, TuiOverscrollModule, TuiRepeatTimesModule } from '@taiga-ui/cdk';
|
|
4
|
-
import { merge, of, Observable } from 'rxjs';
|
|
5
|
-
import { filter, switchMap, map, takeUntil, endWith, mapTo, scan, distinctUntilChanged } from 'rxjs/operators';
|
|
6
|
-
import { TUI_LOADED } from '@taiga-ui/addon-mobile/tokens';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { TuiSvgModule } from '@taiga-ui/core';
|
|
9
|
-
|
|
10
|
-
var HIDDEN_DISTANCE = 2;
|
|
11
|
-
var ROTATE_X_DEFAULT = 180;
|
|
12
|
-
var ROTATE_X_MAX = 500;
|
|
13
|
-
var ROTATE_X_MULTIPLIER = 2.3;
|
|
14
|
-
var TuiMobileLoaderAndroidComponent = /** @class */ (function () {
|
|
15
|
-
function TuiMobileLoaderAndroidComponent() {
|
|
16
|
-
this.pulled = 0;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "transform", {
|
|
19
|
-
get: function () {
|
|
20
|
-
var rotateX = Math.min(ROTATE_X_DEFAULT + this.pulled * ROTATE_X_MULTIPLIER, ROTATE_X_MAX);
|
|
21
|
-
return "rotate(" + rotateX + " 0 0)";
|
|
22
|
-
},
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "hidden", {
|
|
27
|
-
get: function () {
|
|
28
|
-
return this.pulled < HIDDEN_DISTANCE;
|
|
29
|
-
},
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true
|
|
32
|
-
});
|
|
33
|
-
__decorate([
|
|
34
|
-
Input()
|
|
35
|
-
], TuiMobileLoaderAndroidComponent.prototype, "pulled", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
HostBinding('class._hidden')
|
|
38
|
-
], TuiMobileLoaderAndroidComponent.prototype, "hidden", null);
|
|
39
|
-
TuiMobileLoaderAndroidComponent = __decorate([
|
|
40
|
-
Component({
|
|
41
|
-
selector: 'tui-mobile-android-loader',
|
|
42
|
-
template: "<svg\n *ngIf=\"pulled !== 100; else loading\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n [attr.transform]=\"transform\"\n>\n <defs>\n <mask id=\"mask-1\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z\"\n fill=\"white\"\n />\n </mask>\n </defs>\n <g mask=\"url(#mask-1)\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z\"\n fill=\"black\"\n />\n </g>\n</svg>\n<ng-template #loading>\n <svg\n viewBox=\"0 0 100 100\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-loading\"\n >\n <circle\n cx=\"50\"\n cy=\"50\"\n r=\"50\"\n stroke-dasharray=\"314\"\n class=\"t-circle\"\n ></circle>\n </svg>\n</ng-template>\n",
|
|
43
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
-
styles: [":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:flex;height:2.25rem;width:2.25rem;background-color:#fff;border-radius:6.25rem;align-items:center;justify-content:center}:host._hidden{visibility:hidden;transition:none}.t-loading{display:block;width:1rem;border-radius:100%;-webkit-animation:3s linear infinite tuiLoaderRotate;animation:3s linear infinite tuiLoaderRotate}.t-circle{fill:none;stroke:var(--tui-text-01);stroke-width:1.5rem;-webkit-animation:3s linear infinite tuiLoaderDashOffset;animation:3s linear infinite tuiLoaderDashOffset}"]
|
|
45
|
-
})
|
|
46
|
-
], TuiMobileLoaderAndroidComponent);
|
|
47
|
-
return TuiMobileLoaderAndroidComponent;
|
|
48
|
-
}());
|
|
49
|
-
|
|
50
|
-
var LOADED_STEP = 8;
|
|
51
|
-
var ROTATE_X_STEP = 30;
|
|
52
|
-
var TuiMobileLoaderIOSComponent = /** @class */ (function () {
|
|
53
|
-
function TuiMobileLoaderIOSComponent() {
|
|
54
|
-
this.pulled = 0;
|
|
55
|
-
this.steps = 12;
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(TuiMobileLoaderIOSComponent.prototype, "finished", {
|
|
58
|
-
get: function () {
|
|
59
|
-
return this.pulled >= 100;
|
|
60
|
-
},
|
|
61
|
-
enumerable: true,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
TuiMobileLoaderIOSComponent.prototype.isShown = function (index) {
|
|
65
|
-
return this.pulled > (index + 1) * LOADED_STEP;
|
|
66
|
-
};
|
|
67
|
-
TuiMobileLoaderIOSComponent.prototype.calculateTransform = function (index) {
|
|
68
|
-
return "rotate(" + index * ROTATE_X_STEP + " 50 50)";
|
|
69
|
-
};
|
|
70
|
-
TuiMobileLoaderIOSComponent.prototype.calculateAnimationBegin = function (index) {
|
|
71
|
-
return (index * LOADED_STEP) / 100 + "s";
|
|
72
|
-
};
|
|
73
|
-
__decorate([
|
|
74
|
-
Input()
|
|
75
|
-
], TuiMobileLoaderIOSComponent.prototype, "pulled", void 0);
|
|
76
|
-
TuiMobileLoaderIOSComponent = __decorate([
|
|
77
|
-
Component({
|
|
78
|
-
selector: 'tui-mobile-ios-loader',
|
|
79
|
-
template: "<svg\n width=\"36\"\n height=\"36\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"xMidYMid\"\n>\n <ng-container *tuiRepeatTimes=\"let index of steps\">\n <g\n *ngIf=\"isShown(index)\"\n [attr.transform]=\"calculateTransform(index)\"\n >\n <rect\n x=\"47\"\n y=\"22\"\n rx=\"7.05\"\n ry=\"3.3\"\n width=\"6\"\n height=\"16\"\n fill=\"#c7c9cc\"\n >\n <animate\n *ngIf=\"finished\"\n attributeName=\"opacity\"\n values=\"1;0\"\n keyTimes=\"0;1\"\n dur=\"1s\"\n repeatCount=\"indefinite\"\n [attr.begin]=\"calculateAnimationBegin(index)\"\n ></animate>\n </rect>\n </g>\n </ng-container>\n</svg>\n",
|
|
80
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
81
|
-
providers: [TuiDestroyService]
|
|
82
|
-
})
|
|
83
|
-
], TuiMobileLoaderIOSComponent);
|
|
84
|
-
return TuiMobileLoaderIOSComponent;
|
|
85
|
-
}());
|
|
86
|
-
|
|
87
|
-
var MICRO_OFFSET = Math.pow(10, -6);
|
|
88
|
-
var PULLED_DISTANCE = 50;
|
|
89
|
-
var TUI_PULLING = new InjectionToken('Stream that emits content pulling');
|
|
90
|
-
var TUI_PULL_TO_REFRESH_PROVIDERS = [
|
|
91
|
-
{
|
|
92
|
-
provide: TUI_PULLING,
|
|
93
|
-
deps: [TUI_IS_IOS, TUI_LOADED, ElementRef],
|
|
94
|
-
useFactory: pullingFactory,
|
|
95
|
-
},
|
|
96
|
-
];
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
98
|
-
function pullingFactory(isIOS, loaded$, _a) {
|
|
99
|
-
var nativeElement = _a.nativeElement;
|
|
100
|
-
return merge(typedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(filter(function () { return nativeElement.scrollTop === 0; }), switchMap(function (touchStart) {
|
|
101
|
-
return typedFromEvent(nativeElement, 'touchmove').pipe(map(function (touchMove) {
|
|
102
|
-
return touchMove.touches[0].clientY - touchStart.touches[0].clientY;
|
|
103
|
-
}), takeUntil(typedFromEvent(nativeElement, 'touchend')), endWith(0));
|
|
104
|
-
})), loaded$.pipe(mapTo(NaN))).pipe(scan(function (max, current) {
|
|
105
|
-
if (isNaN(current)) {
|
|
106
|
-
return 0;
|
|
107
|
-
}
|
|
108
|
-
var androidLoading = !isIOS && max === PULLED_DISTANCE;
|
|
109
|
-
var dropped = current === 0 && max > PULLED_DISTANCE;
|
|
110
|
-
return androidLoading || dropped ? PULLED_DISTANCE : current + MICRO_OFFSET;
|
|
111
|
-
}, 0));
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
var IOS_LOADING_DISTANCE = PULLED_DISTANCE / 2;
|
|
115
|
-
var ANDROID_MAX_DISTANCE = PULLED_DISTANCE * 1.5;
|
|
116
|
-
function translateY(distance) {
|
|
117
|
-
return "translateY(" + distance + "px)";
|
|
118
|
-
}
|
|
119
|
-
var TuiPullToRefreshComponent = /** @class */ (function () {
|
|
120
|
-
function TuiPullToRefreshComponent(isIOS, pulling$) {
|
|
121
|
-
this.isIOS = isIOS;
|
|
122
|
-
this.pulling$ = pulling$;
|
|
123
|
-
this.pulled = this.pulling$.pipe(distinctUntilChanged(), filter(function (distance) { return distance === PULLED_DISTANCE; }), mapTo(undefined));
|
|
124
|
-
this.pulledInPercent$ = this.pulling$.pipe(map(function (distance) { return (distance * 100) / PULLED_DISTANCE; }));
|
|
125
|
-
this.dropped$ = this.pulling$.pipe(map(function (distance) { return distance <= MICRO_OFFSET || distance === PULLED_DISTANCE; }), distinctUntilChanged());
|
|
126
|
-
this.contentTransform$ = this.isIOS
|
|
127
|
-
? this.pulling$.pipe(map(function (distance) {
|
|
128
|
-
return distance === PULLED_DISTANCE ? IOS_LOADING_DISTANCE : distance;
|
|
129
|
-
}), map(translateY))
|
|
130
|
-
: of(null);
|
|
131
|
-
}
|
|
132
|
-
Object.defineProperty(TuiPullToRefreshComponent.prototype, "loaderTransform$", {
|
|
133
|
-
get: function () {
|
|
134
|
-
return this.pulling$.pipe(map(function (distance) { return translateY(Math.min(distance, ANDROID_MAX_DISTANCE)); }));
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
});
|
|
139
|
-
TuiPullToRefreshComponent.ctorParameters = function () { return [
|
|
140
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] },
|
|
141
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_PULLING,] }] }
|
|
142
|
-
]; };
|
|
143
|
-
__decorate([
|
|
144
|
-
Output()
|
|
145
|
-
], TuiPullToRefreshComponent.prototype, "pulled", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
tuiPure
|
|
148
|
-
], TuiPullToRefreshComponent.prototype, "loaderTransform$", null);
|
|
149
|
-
TuiPullToRefreshComponent = __decorate([
|
|
150
|
-
Component({
|
|
151
|
-
selector: 'tui-pull-to-refresh',
|
|
152
|
-
template: "<div\n tuiOverscroll\n [class.t-drop-animation]=\"dropped$ | async\"\n [style.transform]=\"contentTransform$ | async\"\n>\n <ng-content></ng-content>\n</div>\n\n<tui-mobile-ios-loader\n *ngIf=\"isIOS; else androidLoader\"\n class=\"t-ios-spinner\"\n [pulled]=\"(pulledInPercent$ | async) || 0\"\n></tui-mobile-ios-loader>\n\n<ng-template #androidLoader>\n <tui-mobile-android-loader\n class=\"t-android-loader\"\n [class.t-drop-animation]=\"dropped$ | async\"\n [style.transform]=\"loaderTransform$ | async\"\n [pulled]=\"(pulledInPercent$ | async) || 0\"\n ></tui-mobile-android-loader>\n</ng-template>\n",
|
|
153
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
154
|
-
providers: [TUI_PULL_TO_REFRESH_PROVIDERS],
|
|
155
|
-
styles: [":host{position:relative;display:block;overflow:hidden}.t-ios-spinner{position:absolute;top:-.5rem;left:50%;margin-left:-1.125rem}.t-android-loader{position:absolute;top:-1.5rem;left:50%;margin-left:-1.125rem}.t-drop-animation{transition:all var(--tui-duration) cubic-bezier(.4,0,.2,1)}"]
|
|
156
|
-
}),
|
|
157
|
-
__param(0, Inject(TUI_IS_IOS)),
|
|
158
|
-
__param(1, Inject(TUI_PULLING))
|
|
159
|
-
], TuiPullToRefreshComponent);
|
|
160
|
-
return TuiPullToRefreshComponent;
|
|
161
|
-
}());
|
|
162
|
-
|
|
163
|
-
var TuiPullToRefreshModule = /** @class */ (function () {
|
|
164
|
-
function TuiPullToRefreshModule() {
|
|
165
|
-
}
|
|
166
|
-
TuiPullToRefreshModule = __decorate([
|
|
167
|
-
NgModule({
|
|
168
|
-
imports: [CommonModule, TuiSvgModule, TuiOverscrollModule, TuiRepeatTimesModule],
|
|
169
|
-
declarations: [
|
|
170
|
-
TuiPullToRefreshComponent,
|
|
171
|
-
TuiMobileLoaderAndroidComponent,
|
|
172
|
-
TuiMobileLoaderIOSComponent,
|
|
173
|
-
],
|
|
174
|
-
exports: [TuiPullToRefreshComponent],
|
|
175
|
-
})
|
|
176
|
-
], TuiPullToRefreshModule);
|
|
177
|
-
return TuiPullToRefreshModule;
|
|
178
|
-
}());
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Generated bundle index. Do not edit.
|
|
182
|
-
*/
|
|
183
|
-
|
|
184
|
-
export { MICRO_OFFSET, PULLED_DISTANCE, TUI_PULLING, TUI_PULL_TO_REFRESH_PROVIDERS, TuiMobileLoaderAndroidComponent, TuiMobileLoaderIOSComponent, TuiPullToRefreshComponent, TuiPullToRefreshModule, pullingFactory };
|
|
185
|
-
//# sourceMappingURL=taiga-ui-addon-mobile-components-pull-to-refresh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-components-pull-to-refresh.js","sources":["ng://@taiga-ui/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts","ng://@taiga-ui/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts","ng://@taiga-ui/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts","ng://@taiga-ui/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts","ng://@taiga-ui/addon-mobile/components/pull-to-refresh/pull-to-refresh.module.ts","ng://@taiga-ui/addon-mobile/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\n\nconst HIDDEN_DISTANCE = 2;\nconst ROTATE_X_DEFAULT = 180;\nconst ROTATE_X_MAX = 500;\nconst ROTATE_X_MULTIPLIER = 2.3;\n\n@Component({\n selector: 'tui-mobile-android-loader',\n templateUrl: './loader-android.template.html',\n styleUrls: ['./loader-android.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMobileLoaderAndroidComponent {\n @Input()\n pulled = 0;\n\n get transform(): string {\n const rotateX = Math.min(\n ROTATE_X_DEFAULT + this.pulled * ROTATE_X_MULTIPLIER,\n ROTATE_X_MAX,\n );\n\n return `rotate(${rotateX} 0 0)`;\n }\n\n @HostBinding('class._hidden')\n get hidden(): boolean {\n return this.pulled < HIDDEN_DISTANCE;\n }\n}\n","import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\n\nconst LOADED_STEP = 8;\nconst ROTATE_X_STEP = 30;\n\n@Component({\n selector: 'tui-mobile-ios-loader',\n templateUrl: './loader-ios.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiMobileLoaderIOSComponent {\n @Input()\n pulled = 0;\n\n readonly steps = 12;\n\n get finished(): boolean {\n return this.pulled >= 100;\n }\n\n isShown(index: number): boolean {\n return this.pulled > (index + 1) * LOADED_STEP;\n }\n\n calculateTransform(index: number): string {\n return `rotate(${index * ROTATE_X_STEP} 50 50)`;\n }\n\n calculateAnimationBegin(index: number): string {\n return `${(index * LOADED_STEP) / 100}s`;\n }\n}\n","import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {TUI_LOADED} from '@taiga-ui/addon-mobile/tokens';\nimport {TUI_IS_IOS, typedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {endWith, filter, map, mapTo, scan, switchMap, takeUntil} from 'rxjs/operators';\n\nexport const MICRO_OFFSET = 10 ** -6;\nexport const PULLED_DISTANCE = 50;\n\nexport const TUI_PULLING = new InjectionToken<Observable<number>>(\n 'Stream that emits content pulling',\n);\n\nexport const TUI_PULL_TO_REFRESH_PROVIDERS: Provider[] = [\n {\n provide: TUI_PULLING,\n deps: [TUI_IS_IOS, TUI_LOADED, ElementRef],\n useFactory: pullingFactory,\n },\n];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function pullingFactory(\n isIOS: boolean,\n loaded$: Observable<unknown>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<number> {\n return merge(\n typedFromEvent(nativeElement, 'touchstart', {passive: true}).pipe(\n filter(() => nativeElement.scrollTop === 0),\n switchMap(touchStart =>\n typedFromEvent(nativeElement, 'touchmove').pipe(\n map(\n touchMove =>\n touchMove.touches[0].clientY - touchStart.touches[0].clientY,\n ),\n takeUntil(typedFromEvent(nativeElement, 'touchend')),\n endWith(0),\n ),\n ),\n ),\n loaded$.pipe(mapTo(NaN)),\n ).pipe(\n scan((max, current) => {\n if (isNaN(current)) {\n return 0;\n }\n\n const androidLoading = !isIOS && max === PULLED_DISTANCE;\n const dropped = current === 0 && max > PULLED_DISTANCE;\n\n return androidLoading || dropped ? PULLED_DISTANCE : current + MICRO_OFFSET;\n }, 0),\n );\n}\n","import {ChangeDetectionStrategy, Component, Inject, Output} from '@angular/core';\nimport {TUI_IS_IOS, tuiPure} from '@taiga-ui/cdk';\nimport {Observable, of} from 'rxjs';\nimport {distinctUntilChanged, filter, map, mapTo} from 'rxjs/operators';\n\nimport {\n MICRO_OFFSET,\n PULLED_DISTANCE,\n TUI_PULL_TO_REFRESH_PROVIDERS,\n TUI_PULLING,\n} from './pull-to-refresh.providers';\n\nconst IOS_LOADING_DISTANCE = PULLED_DISTANCE / 2;\nconst ANDROID_MAX_DISTANCE = PULLED_DISTANCE * 1.5;\n\nfunction translateY(distance: number): string {\n return `translateY(${distance}px)`;\n}\n\n@Component({\n selector: 'tui-pull-to-refresh',\n templateUrl: './pull-to-refresh.template.html',\n styleUrls: ['./pull-to-refresh.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TUI_PULL_TO_REFRESH_PROVIDERS],\n})\nexport class TuiPullToRefreshComponent {\n @Output()\n readonly pulled: Observable<void> = this.pulling$.pipe(\n distinctUntilChanged(),\n filter(distance => distance === PULLED_DISTANCE),\n mapTo(undefined),\n );\n\n readonly pulledInPercent$: Observable<number> = this.pulling$.pipe(\n map(distance => (distance * 100) / PULLED_DISTANCE),\n );\n\n readonly dropped$: Observable<boolean> = this.pulling$.pipe(\n map(distance => distance <= MICRO_OFFSET || distance === PULLED_DISTANCE),\n distinctUntilChanged(),\n );\n\n readonly contentTransform$: Observable<string | null> = this.isIOS\n ? this.pulling$.pipe(\n map(distance =>\n distance === PULLED_DISTANCE ? IOS_LOADING_DISTANCE : distance,\n ),\n map(translateY),\n )\n : of(null);\n\n constructor(\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_PULLING) private readonly pulling$: Observable<number>,\n ) {}\n\n @tuiPure\n get loaderTransform$(): Observable<string> {\n return this.pulling$.pipe(\n map(distance => translateY(Math.min(distance, ANDROID_MAX_DISTANCE))),\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiOverscrollModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiMobileLoaderAndroidComponent} from './loader-android/loader-android.component';\nimport {TuiMobileLoaderIOSComponent} from './loader-ios/loader-ios.component';\nimport {TuiPullToRefreshComponent} from './pull-to-refresh.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, TuiOverscrollModule, TuiRepeatTimesModule],\n declarations: [\n TuiPullToRefreshComponent,\n TuiMobileLoaderAndroidComponent,\n TuiMobileLoaderIOSComponent,\n ],\n exports: [TuiPullToRefreshComponent],\n})\nexport class TuiPullToRefreshModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEA,IAAM,eAAe,GAAG,CAAC,CAAC;AAC1B,IAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,IAAM,YAAY,GAAG,GAAG,CAAC;AACzB,IAAM,mBAAmB,GAAG,GAAG,CAAC;;IAQhC;QAEI,WAAM,GAAG,CAAC,CAAC;KAed;IAbG,sBAAI,sDAAS;aAAb;YACI,IAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CACpB,gBAAgB,GAAG,IAAI,CAAC,MAAM,GAAG,mBAAmB,EACpD,YAAY,CACf,CAAC;YAEF,OAAO,YAAU,OAAO,UAAO,CAAC;SACnC;;;OAAA;IAGD,sBAAI,mDAAM;aA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