@taiga-ui/addon-mobile 3.58.0 → 3.59.0-canary.10da730
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/components/app-bar/app-bar-back.component.d.ts +1 -1
- package/components/app-bar/app-bar.component.d.ts +1 -1
- package/components/app-bar/app-bar.directive.d.ts +1 -1
- package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
- package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +1 -1
- package/components/mobile-dialog/mobile-dialog.component.d.ts +1 -1
- package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -1
- package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +1 -1
- package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +1 -1
- package/components/pull-to-refresh/pull-to-refresh.component.d.ts +1 -1
- package/components/sheet/components/sheet/sheet.component.d.ts +1 -1
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +1 -1
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +1 -1
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +1 -1
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +1 -1
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +1 -1
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +1 -1
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
- package/components/sheet/sheet.directive.d.ts +1 -1
- package/components/sheet-dialog/sheet-dialog.component.d.ts +1 -1
- package/components/sheet-dialog/sheet-dialog.directive.d.ts +1 -1
- package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
- package/components/tab-bar/tab-bar-item.component.d.ts +1 -1
- package/components/tab-bar/tab-bar-item.directive.d.ts +1 -1
- package/components/tab-bar/tab-bar.component.d.ts +1 -1
- package/components/theme-android/theme-android.component.d.ts +1 -1
- package/components/theme-ios/theme-ios.component.d.ts +1 -1
- package/const/mobile-alert-options.d.ts +3 -3
- package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -1
- package/directives/mobile-tabs/mobile-tabs.component.d.ts +1 -1
- package/directives/mobile-tabs/mobile-tabs.directive.d.ts +1 -1
- package/directives/ripple/ripple-styles.component.d.ts +1 -1
- package/directives/ripple/ripple.directive.d.ts +1 -1
- package/directives/sidebar/sidebar.component.d.ts +1 -1
- package/directives/sidebar/sidebar.directive.d.ts +1 -1
- package/directives/touchable/touchable.directive.d.ts +1 -1
- package/esm2020/components/app-bar/app-bar-back.component.mjs +11 -0
- package/esm2020/components/app-bar/app-bar.component.mjs +33 -0
- package/{esm2015/components/app-bar/app-bar.directive.js → esm2020/components/app-bar/app-bar.directive.mjs} +3 -3
- package/{esm2015/components/app-bar/app-bar.module.js → esm2020/components/app-bar/app-bar.module.mjs} +5 -5
- package/esm2020/components/mobile-calendar/mobile-calendar.component.mjs +301 -0
- package/{esm2015/components/mobile-calendar/mobile-calendar.module.js → esm2020/components/mobile-calendar/mobile-calendar.module.mjs} +14 -16
- package/esm2020/components/mobile-calendar/mobile-calendar.providers.mjs +29 -0
- package/esm2020/components/mobile-calendar/mobile-calendar.strategy.mjs +125 -0
- package/esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.component.mjs +35 -0
- package/{esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js → esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.module.mjs} +6 -6
- package/esm2020/components/mobile-dialog/mobile-dialog.component.mjs +32 -0
- package/{esm2015/components/mobile-dialog/mobile-dialog.module.js → esm2020/components/mobile-dialog/mobile-dialog.module.mjs} +5 -5
- package/esm2020/components/mobile-dialog/mobile-dialog.service.mjs +29 -0
- package/esm2020/components/pull-to-refresh/loader-android/loader-android.component.mjs +55 -0
- package/esm2020/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +44 -0
- package/esm2020/components/pull-to-refresh/pull-to-refresh.component.mjs +69 -0
- package/{esm2015/components/pull-to-refresh/pull-to-refresh.module.js → esm2020/components/pull-to-refresh/pull-to-refresh.module.mjs} +5 -5
- package/esm2020/components/pull-to-refresh/pull-to-refresh.service.mjs +53 -0
- package/esm2020/components/sheet/components/sheet/sheet.component.mjs +121 -0
- package/esm2020/components/sheet/components/sheet/sheet.providers.mjs +30 -0
- package/{esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js → esm2020/components/sheet/components/sheet-bar/sheet-bar.component.mjs} +7 -12
- package/{esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js → esm2020/components/sheet/components/sheet-heading/sheet-heading.component.mjs} +5 -10
- package/esm2020/components/sheet/components/sheets-host/sheets-host.component.mjs +61 -0
- package/esm2020/components/sheet/directives/sheet-close/sheet-close.directive.mjs +55 -0
- package/esm2020/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +47 -0
- package/esm2020/components/sheet/directives/sheet-top/sheet-top.directive.mjs +54 -0
- package/esm2020/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +78 -0
- package/esm2020/components/sheet/ios.hacks.mjs +28 -0
- package/esm2020/components/sheet/sheet-options.mjs +21 -0
- package/esm2020/components/sheet/sheet.directive.mjs +48 -0
- package/{esm2015/components/sheet/sheet.module.js → esm2020/components/sheet/sheet.module.mjs} +10 -12
- package/esm2020/components/sheet/sheet.service.mjs +56 -0
- package/esm2020/components/sheet-dialog/sheet-dialog.component.mjs +132 -0
- package/{esm2015/components/sheet-dialog/sheet-dialog.directive.js → esm2020/components/sheet-dialog/sheet-dialog.directive.mjs} +3 -3
- package/{esm2015/components/sheet-dialog/sheet-dialog.module.js → esm2020/components/sheet-dialog/sheet-dialog.module.mjs} +5 -5
- package/{esm2015/components/sheet-dialog/sheet-dialog.service.js → esm2020/components/sheet-dialog/sheet-dialog.service.mjs} +8 -5
- package/esm2020/components/tab-bar/tab-bar-item.component.mjs +29 -0
- package/esm2020/components/tab-bar/tab-bar-item.directive.mjs +44 -0
- package/esm2020/components/tab-bar/tab-bar.component.mjs +47 -0
- package/{esm2015/components/tab-bar/tab-bar.module.js → esm2020/components/tab-bar/tab-bar.module.mjs} +5 -5
- package/{esm2015/components/theme-android/theme-android.component.js → esm2020/components/theme-android/theme-android.component.mjs} +5 -11
- package/{esm2015/components/theme-android/theme-android.module.js → esm2020/components/theme-android/theme-android.module.mjs} +4 -4
- package/esm2020/components/theme-ios/theme-ios.component.mjs +12 -0
- package/{esm2015/components/theme-ios/theme-ios.module.js → esm2020/components/theme-ios/theme-ios.module.mjs} +4 -4
- package/esm2020/const/mobile-alert-options.mjs +13 -0
- package/{esm2015/directives/elastic-sticky/elastic-sticky.directive.js → esm2020/directives/elastic-sticky/elastic-sticky.directive.mjs} +3 -3
- package/{esm2015/directives/elastic-sticky/elastic-sticky.module.js → esm2020/directives/elastic-sticky/elastic-sticky.module.mjs} +4 -4
- package/esm2020/directives/elastic-sticky/elastic-sticky.service.mjs +40 -0
- package/esm2020/directives/mobile-tabs/mobile-tabs.component.mjs +13 -0
- package/{esm2015/directives/mobile-tabs/mobile-tabs.directive.js → esm2020/directives/mobile-tabs/mobile-tabs.directive.mjs} +3 -3
- package/{esm2015/directives/mobile-tabs/mobile-tabs.module.js → esm2020/directives/mobile-tabs/mobile-tabs.module.mjs} +4 -4
- package/{esm2015/directives/ripple/ripple-styles.component.js → esm2020/directives/ripple/ripple-styles.component.mjs} +6 -12
- package/esm2020/directives/ripple/ripple.directive.mjs +66 -0
- package/{esm2015/directives/ripple/ripple.module.js → esm2020/directives/ripple/ripple.module.mjs} +4 -4
- package/esm2020/directives/ripple/ripple.providers.mjs +42 -0
- package/esm2020/directives/sidebar/sidebar.component.mjs +58 -0
- package/esm2020/directives/sidebar/sidebar.directive.mjs +72 -0
- package/{esm2015/directives/sidebar/sidebar.module.js → esm2020/directives/sidebar/sidebar.module.mjs} +5 -5
- package/esm2020/directives/touchable/touchable.directive.mjs +82 -0
- package/{esm2015/directives/touchable/touchable.module.js → esm2020/directives/touchable/touchable.module.mjs} +4 -4
- package/esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.mjs +34 -0
- package/{esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js → esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.mjs} +8 -10
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs +103 -0
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +16 -19
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs +539 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs +91 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +257 -0
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs +215 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs +687 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs +137 -0
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components-theme-android.js → taiga-ui-addon-mobile-components-theme-android.mjs} +9 -15
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components-theme-ios.js → taiga-ui-addon-mobile-components-theme-ios.mjs} +9 -15
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components.js → taiga-ui-addon-mobile-components.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-const.js → taiga-ui-addon-mobile-const.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-const.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +85 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +87 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs +136 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs +143 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs +104 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-directives.js → taiga-ui-addon-mobile-directives.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs +4 -0
- package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs +72 -0
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-internal.js → taiga-ui-addon-mobile-internal.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-internal.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-types.mjs +4 -0
- package/fesm2015/taiga-ui-addon-mobile-types.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-utils.js → taiga-ui-addon-mobile-utils.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile.js → taiga-ui-addon-mobile.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-app-bar.js → fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs} +19 -34
- package/fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs +69 -0
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js → fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +36 -51
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js → fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +22 -25
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js → fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +25 -42
- package/fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js → fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +25 -31
- package/fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-sheet.js → fesm2020/taiga-ui-addon-mobile-components-sheet.mjs} +86 -108
- package/fesm2020/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-tab-bar.js → fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs} +19 -30
- package/fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs +32 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs +32 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components.mjs +15 -0
- package/fesm2020/taiga-ui-addon-mobile-components.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-const.mjs +19 -0
- package/fesm2020/taiga-ui-addon-mobile-const.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js → fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +12 -13
- package/fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +85 -0
- package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-ripple.js → fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs} +14 -21
- package/fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-sidebar.js → fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs} +28 -28
- package/fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-touchable.js → fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs} +10 -11
- package/fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-directives.mjs +10 -0
- package/fesm2020/taiga-ui-addon-mobile-directives.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs +4 -0
- package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +13 -21
- package/fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-internal.mjs +6 -0
- package/fesm2020/taiga-ui-addon-mobile-internal.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-types.mjs +4 -0
- package/fesm2020/taiga-ui-addon-mobile-types.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-utils.mjs +16 -0
- package/fesm2020/taiga-ui-addon-mobile-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile.mjs +11 -0
- package/fesm2020/taiga-ui-addon-mobile.mjs.map +1 -0
- package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +1 -1
- package/package.json +229 -32
- package/styles/android/checkbox.less +16 -12
- package/styles/android/radio.less +5 -3
- package/styles/android/toggle.less +3 -4
- package/styles/ios/checkbox.less +15 -7
- package/styles/ios/toggle.less +8 -11
- package/types/touch-mode.d.ts +1 -1
- package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +0 -149
- package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +0 -129
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +0 -929
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +0 -450
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +0 -677
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +0 -596
- package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +0 -1153
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +0 -188
- package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +0 -391
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +0 -391
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components.umd.js +0 -75
- package/bundles/taiga-ui-addon-mobile-components.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-const.umd.js +0 -24
- package/bundles/taiga-ui-addon-mobile-const.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +0 -437
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +0 -131
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +0 -195
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +0 -524
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +0 -144
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives.umd.js +0 -45
- package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +0 -429
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-internal.umd.js +0 -21
- package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-types.umd.js +0 -11
- package/bundles/taiga-ui-addon-mobile-types.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.js +0 -26
- package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile.umd.js +0 -51
- package/bundles/taiga-ui-addon-mobile.umd.js.map +0 -1
- package/components/app-bar/package.json +0 -10
- package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +0 -5
- package/components/mobile-calendar/package.json +0 -10
- package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +0 -5
- package/components/mobile-calendar-dialog/package.json +0 -10
- package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +0 -5
- package/components/mobile-dialog/package.json +0 -10
- package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/pull-to-refresh/package.json +0 -10
- package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +0 -5
- package/components/sheet/package.json +0 -10
- package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +0 -5
- package/components/sheet-dialog/package.json +0 -10
- package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +0 -5
- package/components/tab-bar/package.json +0 -10
- package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +0 -5
- package/components/taiga-ui-addon-mobile-components.d.ts +0 -5
- package/components/theme-android/package.json +0 -10
- package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +0 -5
- package/components/theme-ios/package.json +0 -10
- package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +0 -5
- package/const/package.json +0 -10
- package/const/taiga-ui-addon-mobile-const.d.ts +0 -5
- package/directives/elastic-sticky/package.json +0 -10
- package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +0 -5
- package/directives/mobile-tabs/package.json +0 -10
- package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +0 -5
- package/directives/package.json +0 -10
- package/directives/ripple/package.json +0 -10
- package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +0 -5
- package/directives/sidebar/package.json +0 -10
- package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +0 -5
- package/directives/taiga-ui-addon-mobile-directives.d.ts +0 -5
- package/directives/touchable/package.json +0 -10
- package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +0 -5
- package/esm2015/components/app-bar/app-bar-back.component.js +0 -16
- package/esm2015/components/app-bar/app-bar.component.js +0 -43
- package/esm2015/components/mobile-calendar/mobile-calendar.component.js +0 -314
- package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +0 -30
- package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +0 -126
- package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -45
- package/esm2015/components/mobile-dialog/mobile-dialog.component.js +0 -38
- package/esm2015/components/mobile-dialog/mobile-dialog.service.js +0 -26
- package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +0 -60
- package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -49
- package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +0 -75
- package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +0 -54
- package/esm2015/components/sheet/components/sheet/sheet.component.js +0 -128
- package/esm2015/components/sheet/components/sheet/sheet.providers.js +0 -31
- package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +0 -68
- package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
- package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -47
- package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -54
- package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -81
- package/esm2015/components/sheet/ios.hacks.js +0 -29
- package/esm2015/components/sheet/sheet-options.js +0 -19
- package/esm2015/components/sheet/sheet.directive.js +0 -49
- package/esm2015/components/sheet/sheet.service.js +0 -51
- package/esm2015/components/sheet-dialog/sheet-dialog.component.js +0 -141
- package/esm2015/components/tab-bar/tab-bar-item.component.js +0 -35
- package/esm2015/components/tab-bar/tab-bar-item.directive.js +0 -44
- package/esm2015/components/tab-bar/tab-bar.component.js +0 -52
- package/esm2015/components/theme-ios/theme-ios.component.js +0 -18
- package/esm2015/const/mobile-alert-options.js +0 -7
- package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +0 -41
- package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +0 -19
- package/esm2015/directives/ripple/ripple.directive.js +0 -67
- package/esm2015/directives/ripple/ripple.providers.js +0 -43
- package/esm2015/directives/sidebar/sidebar.component.js +0 -58
- package/esm2015/directives/sidebar/sidebar.directive.js +0 -72
- package/esm2015/directives/touchable/touchable.directive.js +0 -83
- package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -40
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-const.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -91
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js +0 -4
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-internal.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-types.js +0 -4
- package/fesm2015/taiga-ui-addon-mobile-types.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile.js.map +0 -1
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +0 -5
- package/internal/package.json +0 -10
- package/internal/primitive-calendar-mobile/package.json +0 -10
- package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +0 -5
- package/internal/taiga-ui-addon-mobile-internal.d.ts +0 -5
- package/taiga-ui-addon-mobile.d.ts +0 -5
- package/types/package.json +0 -10
- package/types/taiga-ui-addon-mobile-types.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-addon-mobile-utils.d.ts +0 -5
- /package/{esm2015/components/app-bar/app-bar.providers.js → esm2020/components/app-bar/app-bar.providers.mjs} +0 -0
- /package/{esm2015/components/app-bar/index.js → esm2020/components/app-bar/index.mjs} +0 -0
- /package/{esm2015/components/app-bar/taiga-ui-addon-mobile-components-app-bar.js → esm2020/components/app-bar/taiga-ui-addon-mobile-components-app-bar.mjs} +0 -0
- /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar/index.js → esm2020/components/mobile-calendar/index.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar/mobile-calendar.const.js → esm2020/components/mobile-calendar/mobile-calendar.const.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js → esm2020/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar-dialog/index.js → esm2020/components/mobile-calendar-dialog/index.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → esm2020/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/index.js → esm2020/components/mobile-dialog/index.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/mobile-dialog-options.js → esm2020/components/mobile-dialog/mobile-dialog-options.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/mobile-dialog.options.js → esm2020/components/mobile-dialog/mobile-dialog.options.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js → esm2020/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +0 -0
- /package/{esm2015/components/pull-to-refresh/index.js → esm2020/components/pull-to-refresh/index.mjs} +0 -0
- /package/{esm2015/components/pull-to-refresh/pull-to-refresh.providers.js → esm2020/components/pull-to-refresh/pull-to-refresh.providers.mjs} +0 -0
- /package/{esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js → esm2020/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +0 -0
- /package/{esm2015/components/sheet/index.js → esm2020/components/sheet/index.mjs} +0 -0
- /package/{esm2015/components/sheet/sheet-tokens.js → esm2020/components/sheet/sheet-tokens.mjs} +0 -0
- /package/{esm2015/components/sheet/sheet.js → esm2020/components/sheet/sheet.mjs} +0 -0
- /package/{esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js → esm2020/components/sheet/taiga-ui-addon-mobile-components-sheet.mjs} +0 -0
- /package/{esm2015/components/sheet-dialog/index.js → esm2020/components/sheet-dialog/index.mjs} +0 -0
- /package/{esm2015/components/sheet-dialog/sheet-dialog.options.js → esm2020/components/sheet-dialog/sheet-dialog.options.mjs} +0 -0
- /package/{esm2015/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.js → esm2020/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +0 -0
- /package/{esm2015/components/tab-bar/index.js → esm2020/components/tab-bar/index.mjs} +0 -0
- /package/{esm2015/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.js → esm2020/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-addon-mobile-components.js → esm2020/components/taiga-ui-addon-mobile-components.mjs} +0 -0
- /package/{esm2015/components/theme-android/index.js → esm2020/components/theme-android/index.mjs} +0 -0
- /package/{esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js → esm2020/components/theme-android/taiga-ui-addon-mobile-components-theme-android.mjs} +0 -0
- /package/{esm2015/components/theme-ios/index.js → esm2020/components/theme-ios/index.mjs} +0 -0
- /package/{esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js → esm2020/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.mjs} +0 -0
- /package/{esm2015/const/index.js → esm2020/const/index.mjs} +0 -0
- /package/{esm2015/const/taiga-ui-addon-mobile-const.js → esm2020/const/taiga-ui-addon-mobile-const.mjs} +0 -0
- /package/{esm2015/directives/elastic-sticky/index.js → esm2020/directives/elastic-sticky/index.mjs} +0 -0
- /package/{esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js → esm2020/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +0 -0
- /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
- /package/{esm2015/directives/mobile-tabs/index.js → esm2020/directives/mobile-tabs/index.mjs} +0 -0
- /package/{esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js → esm2020/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.mjs} +0 -0
- /package/{esm2015/directives/ripple/index.js → esm2020/directives/ripple/index.mjs} +0 -0
- /package/{esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js → esm2020/directives/ripple/taiga-ui-addon-mobile-directives-ripple.mjs} +0 -0
- /package/{esm2015/directives/sidebar/index.js → esm2020/directives/sidebar/index.mjs} +0 -0
- /package/{esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js → esm2020/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.mjs} +0 -0
- /package/{esm2015/directives/taiga-ui-addon-mobile-directives.js → esm2020/directives/taiga-ui-addon-mobile-directives.mjs} +0 -0
- /package/{esm2015/directives/touchable/index.js → esm2020/directives/touchable/index.mjs} +0 -0
- /package/{esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js → esm2020/directives/touchable/taiga-ui-addon-mobile-directives-touchable.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
- /package/{esm2015/interfaces/mobile-alert-data.js → esm2020/interfaces/mobile-alert-data.mjs} +0 -0
- /package/{esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js → esm2020/interfaces/taiga-ui-addon-mobile-interfaces.mjs} +0 -0
- /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
- /package/{esm2015/internal/primitive-calendar-mobile/index.js → esm2020/internal/primitive-calendar-mobile/index.mjs} +0 -0
- /package/{esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → esm2020/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +0 -0
- /package/{esm2015/internal/taiga-ui-addon-mobile-internal.js → esm2020/internal/taiga-ui-addon-mobile-internal.mjs} +0 -0
- /package/{esm2015/taiga-ui-addon-mobile.js → esm2020/taiga-ui-addon-mobile.mjs} +0 -0
- /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-addon-mobile-types.js → esm2020/types/taiga-ui-addon-mobile-types.mjs} +0 -0
- /package/{esm2015/types/touch-mode.js → esm2020/types/touch-mode.mjs} +0 -0
- /package/{esm2015/utils/find-touch-index.js → esm2020/utils/find-touch-index.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-addon-mobile-utils.js → esm2020/utils/taiga-ui-addon-mobile-utils.mjs} +0 -0
|
@@ -1,677 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/cdk'), require('rxjs'), require('@angular/common'), require('rxjs/operators'), require('@taiga-ui/core')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/pull-to-refresh', ['exports', '@angular/core', '@tinkoff/ng-polymorpheus', '@taiga-ui/cdk', 'rxjs', '@angular/common', 'rxjs/operators', '@taiga-ui/core'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = global["taiga-ui"]["addon-mobile"] || {}, global["taiga-ui"]["addon-mobile"].components = global["taiga-ui"]["addon-mobile"].components || {}, global["taiga-ui"]["addon-mobile"].components["pull-to-refresh"] = {}), global.ng.core, global.i1, global.i1$1, global.rxjs, global.ng.common, global.rxjs.operators, global.core));
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i3, i2, operators, core) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
29
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
-
|
|
31
|
-
var LOADED_STEP = 8;
|
|
32
|
-
var ROTATE_X_STEP = 30;
|
|
33
|
-
var TuiMobileLoaderIOSComponent = /** @class */ (function () {
|
|
34
|
-
function TuiMobileLoaderIOSComponent(context, threshold) {
|
|
35
|
-
this.context = context;
|
|
36
|
-
this.threshold = threshold;
|
|
37
|
-
this.steps = 12;
|
|
38
|
-
}
|
|
39
|
-
Object.defineProperty(TuiMobileLoaderIOSComponent.prototype, "finished", {
|
|
40
|
-
get: function () {
|
|
41
|
-
return this.percent >= 100;
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(TuiMobileLoaderIOSComponent.prototype, "percent", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return (this.context.$implicit * 100) / this.threshold;
|
|
49
|
-
},
|
|
50
|
-
enumerable: false,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
TuiMobileLoaderIOSComponent.prototype.isShown = function (index) {
|
|
54
|
-
return this.percent > (index + 1) * LOADED_STEP;
|
|
55
|
-
};
|
|
56
|
-
TuiMobileLoaderIOSComponent.prototype.calculateTransform = function (index) {
|
|
57
|
-
return "rotate(" + index * ROTATE_X_STEP + " 50 50)";
|
|
58
|
-
};
|
|
59
|
-
TuiMobileLoaderIOSComponent.prototype.calculateAnimationBegin = function (index) {
|
|
60
|
-
return (index * LOADED_STEP) / 100 + "s";
|
|
61
|
-
};
|
|
62
|
-
return TuiMobileLoaderIOSComponent;
|
|
63
|
-
}());
|
|
64
|
-
TuiMobileLoaderIOSComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileLoaderIOSComponent, deps: [{ token: i1.POLYMORPHEUS_CONTEXT }, { token: TUI_PULL_TO_REFRESH_THRESHOLD }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
65
|
-
TuiMobileLoaderIOSComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMobileLoaderIOSComponent, selector: "tui-mobile-ios-loader", ngImport: i0__namespace, template: "<svg\n height=\"36\"\n preserveAspectRatio=\"xMidYMid\"\n viewBox=\"0 0 100 100\"\n width=\"36\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n <ng-container *tuiRepeatTimes=\"let index of steps\">\n <g\n *ngIf=\"isShown(index)\"\n [attr.transform]=\"calculateTransform(index)\"\n >\n <rect\n fill=\"#c7c9cc\"\n height=\"16\"\n rx=\"7.05\"\n ry=\"3.3\"\n width=\"6\"\n x=\"47\"\n y=\"22\"\n >\n <animate\n *ngIf=\"finished\"\n attributeName=\"opacity\"\n dur=\"1s\"\n keyTimes=\"0;1\"\n repeatCount=\"indefinite\"\n values=\"1;0\"\n [attr.begin]=\"calculateAnimationBegin(index)\"\n ></animate>\n </rect>\n </g>\n </ng-container>\n</svg>\n", styles: [":host{position:absolute;top:-.5rem;left:50%;margin-left:-1.125rem}\n"], directives: [{ type: i1__namespace.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
66
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileLoaderIOSComponent, decorators: [{
|
|
67
|
-
type: i0.Component,
|
|
68
|
-
args: [{
|
|
69
|
-
selector: 'tui-mobile-ios-loader',
|
|
70
|
-
templateUrl: './loader-ios.template.html',
|
|
71
|
-
styleUrls: ['./loader-ios.style.less'],
|
|
72
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
73
|
-
}]
|
|
74
|
-
}], ctorParameters: function () {
|
|
75
|
-
return [{ type: undefined, decorators: [{
|
|
76
|
-
type: i0.Inject,
|
|
77
|
-
args: [i1.POLYMORPHEUS_CONTEXT]
|
|
78
|
-
}] }, { type: undefined, decorators: [{
|
|
79
|
-
type: i0.Inject,
|
|
80
|
-
args: [TUI_PULL_TO_REFRESH_THRESHOLD]
|
|
81
|
-
}] }];
|
|
82
|
-
} });
|
|
83
|
-
var TUI_IOS_LOADER = new i1.PolymorpheusComponent(TuiMobileLoaderIOSComponent);
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Stream that emits when loading is over
|
|
87
|
-
*/
|
|
88
|
-
var TUI_PULL_TO_REFRESH_LOADED = i1$1.tuiCreateToken(i3.EMPTY);
|
|
89
|
-
/**
|
|
90
|
-
* Pull threshold in pixels until loading starts
|
|
91
|
-
*/
|
|
92
|
-
var TUI_PULL_TO_REFRESH_THRESHOLD = i1$1.tuiCreateToken(50);
|
|
93
|
-
/**
|
|
94
|
-
* Loading indicator component that gets current pull distance in pixels as context
|
|
95
|
-
*/
|
|
96
|
-
var TUI_PULL_TO_REFRESH_COMPONENT = i1$1.tuiCreateTokenFromFactory(function () { return (i0.inject(i1$1.TUI_IS_IOS) ? TUI_IOS_LOADER : TUI_ANDROID_LOADER); });
|
|
97
|
-
/**
|
|
98
|
-
* @deprecated renamed to {@link TUI_PULL_TO_REFRESH_LOADED}
|
|
99
|
-
*/
|
|
100
|
-
var TUI_LOADED = TUI_PULL_TO_REFRESH_LOADED;
|
|
101
|
-
|
|
102
|
-
/*! *****************************************************************************
|
|
103
|
-
Copyright (c) Microsoft Corporation.
|
|
104
|
-
|
|
105
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
106
|
-
purpose with or without fee is hereby granted.
|
|
107
|
-
|
|
108
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
109
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
110
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
111
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
112
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
113
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
114
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
115
|
-
***************************************************************************** */
|
|
116
|
-
/* global Reflect, Promise */
|
|
117
|
-
var extendStatics = function (d, b) {
|
|
118
|
-
extendStatics = Object.setPrototypeOf ||
|
|
119
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
120
|
-
function (d, b) { for (var p in b)
|
|
121
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
122
|
-
d[p] = b[p]; };
|
|
123
|
-
return extendStatics(d, b);
|
|
124
|
-
};
|
|
125
|
-
function __extends(d, b) {
|
|
126
|
-
if (typeof b !== "function" && b !== null)
|
|
127
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
128
|
-
extendStatics(d, b);
|
|
129
|
-
function __() { this.constructor = d; }
|
|
130
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
131
|
-
}
|
|
132
|
-
var __assign = function () {
|
|
133
|
-
__assign = Object.assign || function __assign(t) {
|
|
134
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
135
|
-
s = arguments[i];
|
|
136
|
-
for (var p in s)
|
|
137
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
138
|
-
t[p] = s[p];
|
|
139
|
-
}
|
|
140
|
-
return t;
|
|
141
|
-
};
|
|
142
|
-
return __assign.apply(this, arguments);
|
|
143
|
-
};
|
|
144
|
-
function __rest(s, e) {
|
|
145
|
-
var t = {};
|
|
146
|
-
for (var p in s)
|
|
147
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
148
|
-
t[p] = s[p];
|
|
149
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
150
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
151
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
152
|
-
t[p[i]] = s[p[i]];
|
|
153
|
-
}
|
|
154
|
-
return t;
|
|
155
|
-
}
|
|
156
|
-
function __decorate(decorators, target, key, desc) {
|
|
157
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
158
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
159
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
160
|
-
else
|
|
161
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
162
|
-
if (d = decorators[i])
|
|
163
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
164
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
165
|
-
}
|
|
166
|
-
function __param(paramIndex, decorator) {
|
|
167
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
168
|
-
}
|
|
169
|
-
function __metadata(metadataKey, metadataValue) {
|
|
170
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
171
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
172
|
-
}
|
|
173
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
174
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
175
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
176
|
-
function fulfilled(value) { try {
|
|
177
|
-
step(generator.next(value));
|
|
178
|
-
}
|
|
179
|
-
catch (e) {
|
|
180
|
-
reject(e);
|
|
181
|
-
} }
|
|
182
|
-
function rejected(value) { try {
|
|
183
|
-
step(generator["throw"](value));
|
|
184
|
-
}
|
|
185
|
-
catch (e) {
|
|
186
|
-
reject(e);
|
|
187
|
-
} }
|
|
188
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
189
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
function __generator(thisArg, body) {
|
|
193
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
194
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
195
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
196
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
197
|
-
function step(op) {
|
|
198
|
-
if (f)
|
|
199
|
-
throw new TypeError("Generator is already executing.");
|
|
200
|
-
while (_)
|
|
201
|
-
try {
|
|
202
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
203
|
-
return t;
|
|
204
|
-
if (y = 0, t)
|
|
205
|
-
op = [op[0] & 2, t.value];
|
|
206
|
-
switch (op[0]) {
|
|
207
|
-
case 0:
|
|
208
|
-
case 1:
|
|
209
|
-
t = op;
|
|
210
|
-
break;
|
|
211
|
-
case 4:
|
|
212
|
-
_.label++;
|
|
213
|
-
return { value: op[1], done: false };
|
|
214
|
-
case 5:
|
|
215
|
-
_.label++;
|
|
216
|
-
y = op[1];
|
|
217
|
-
op = [0];
|
|
218
|
-
continue;
|
|
219
|
-
case 7:
|
|
220
|
-
op = _.ops.pop();
|
|
221
|
-
_.trys.pop();
|
|
222
|
-
continue;
|
|
223
|
-
default:
|
|
224
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
225
|
-
_ = 0;
|
|
226
|
-
continue;
|
|
227
|
-
}
|
|
228
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
229
|
-
_.label = op[1];
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
233
|
-
_.label = t[1];
|
|
234
|
-
t = op;
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
if (t && _.label < t[2]) {
|
|
238
|
-
_.label = t[2];
|
|
239
|
-
_.ops.push(op);
|
|
240
|
-
break;
|
|
241
|
-
}
|
|
242
|
-
if (t[2])
|
|
243
|
-
_.ops.pop();
|
|
244
|
-
_.trys.pop();
|
|
245
|
-
continue;
|
|
246
|
-
}
|
|
247
|
-
op = body.call(thisArg, _);
|
|
248
|
-
}
|
|
249
|
-
catch (e) {
|
|
250
|
-
op = [6, e];
|
|
251
|
-
y = 0;
|
|
252
|
-
}
|
|
253
|
-
finally {
|
|
254
|
-
f = t = 0;
|
|
255
|
-
}
|
|
256
|
-
if (op[0] & 5)
|
|
257
|
-
throw op[1];
|
|
258
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
262
|
-
if (k2 === undefined)
|
|
263
|
-
k2 = k;
|
|
264
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
265
|
-
}) : (function (o, m, k, k2) {
|
|
266
|
-
if (k2 === undefined)
|
|
267
|
-
k2 = k;
|
|
268
|
-
o[k2] = m[k];
|
|
269
|
-
});
|
|
270
|
-
function __exportStar(m, o) {
|
|
271
|
-
for (var p in m)
|
|
272
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
273
|
-
__createBinding(o, m, p);
|
|
274
|
-
}
|
|
275
|
-
function __values(o) {
|
|
276
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
277
|
-
if (m)
|
|
278
|
-
return m.call(o);
|
|
279
|
-
if (o && typeof o.length === "number")
|
|
280
|
-
return {
|
|
281
|
-
next: function () {
|
|
282
|
-
if (o && i >= o.length)
|
|
283
|
-
o = void 0;
|
|
284
|
-
return { value: o && o[i++], done: !o };
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
288
|
-
}
|
|
289
|
-
function __read(o, n) {
|
|
290
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
291
|
-
if (!m)
|
|
292
|
-
return o;
|
|
293
|
-
var i = m.call(o), r, ar = [], e;
|
|
294
|
-
try {
|
|
295
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
296
|
-
ar.push(r.value);
|
|
297
|
-
}
|
|
298
|
-
catch (error) {
|
|
299
|
-
e = { error: error };
|
|
300
|
-
}
|
|
301
|
-
finally {
|
|
302
|
-
try {
|
|
303
|
-
if (r && !r.done && (m = i["return"]))
|
|
304
|
-
m.call(i);
|
|
305
|
-
}
|
|
306
|
-
finally {
|
|
307
|
-
if (e)
|
|
308
|
-
throw e.error;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return ar;
|
|
312
|
-
}
|
|
313
|
-
/** @deprecated */
|
|
314
|
-
function __spread() {
|
|
315
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
316
|
-
ar = ar.concat(__read(arguments[i]));
|
|
317
|
-
return ar;
|
|
318
|
-
}
|
|
319
|
-
/** @deprecated */
|
|
320
|
-
function __spreadArrays() {
|
|
321
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
322
|
-
s += arguments[i].length;
|
|
323
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
324
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
325
|
-
r[k] = a[j];
|
|
326
|
-
return r;
|
|
327
|
-
}
|
|
328
|
-
function __spreadArray(to, from, pack) {
|
|
329
|
-
if (pack || arguments.length === 2)
|
|
330
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
331
|
-
if (ar || !(i in from)) {
|
|
332
|
-
if (!ar)
|
|
333
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
334
|
-
ar[i] = from[i];
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
return to.concat(ar || from);
|
|
338
|
-
}
|
|
339
|
-
function __await(v) {
|
|
340
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
341
|
-
}
|
|
342
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
343
|
-
if (!Symbol.asyncIterator)
|
|
344
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
345
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
346
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
347
|
-
function verb(n) { if (g[n])
|
|
348
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
349
|
-
function resume(n, v) { try {
|
|
350
|
-
step(g[n](v));
|
|
351
|
-
}
|
|
352
|
-
catch (e) {
|
|
353
|
-
settle(q[0][3], e);
|
|
354
|
-
} }
|
|
355
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
356
|
-
function fulfill(value) { resume("next", value); }
|
|
357
|
-
function reject(value) { resume("throw", value); }
|
|
358
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
359
|
-
resume(q[0][0], q[0][1]); }
|
|
360
|
-
}
|
|
361
|
-
function __asyncDelegator(o) {
|
|
362
|
-
var i, p;
|
|
363
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
364
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
365
|
-
}
|
|
366
|
-
function __asyncValues(o) {
|
|
367
|
-
if (!Symbol.asyncIterator)
|
|
368
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
369
|
-
var m = o[Symbol.asyncIterator], i;
|
|
370
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
371
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
372
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
373
|
-
}
|
|
374
|
-
function __makeTemplateObject(cooked, raw) {
|
|
375
|
-
if (Object.defineProperty) {
|
|
376
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
cooked.raw = raw;
|
|
380
|
-
}
|
|
381
|
-
return cooked;
|
|
382
|
-
}
|
|
383
|
-
;
|
|
384
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
385
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
386
|
-
}) : function (o, v) {
|
|
387
|
-
o["default"] = v;
|
|
388
|
-
};
|
|
389
|
-
function __importStar(mod) {
|
|
390
|
-
if (mod && mod.__esModule)
|
|
391
|
-
return mod;
|
|
392
|
-
var result = {};
|
|
393
|
-
if (mod != null)
|
|
394
|
-
for (var k in mod)
|
|
395
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
396
|
-
__createBinding(result, mod, k);
|
|
397
|
-
__setModuleDefault(result, mod);
|
|
398
|
-
return result;
|
|
399
|
-
}
|
|
400
|
-
function __importDefault(mod) {
|
|
401
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
402
|
-
}
|
|
403
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
404
|
-
if (kind === "a" && !f)
|
|
405
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
406
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
407
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
408
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
409
|
-
}
|
|
410
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
411
|
-
if (kind === "m")
|
|
412
|
-
throw new TypeError("Private method is not writable");
|
|
413
|
-
if (kind === "a" && !f)
|
|
414
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
415
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
416
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
417
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
var MICRO_OFFSET = Math.pow(10, -6);
|
|
421
|
-
var TuiPullToRefreshService = /** @class */ (function (_super) {
|
|
422
|
-
__extends(TuiPullToRefreshService, _super);
|
|
423
|
-
function TuiPullToRefreshService(el, scrollRef, loaded$, threshold, component) {
|
|
424
|
-
var _this = _super.call(this, function (subscriber) { return (component ? _this.pulling$ : i3.EMPTY).subscribe(subscriber); }) || this;
|
|
425
|
-
_this.el = el;
|
|
426
|
-
_this.scrollRef = scrollRef;
|
|
427
|
-
_this.loaded$ = loaded$;
|
|
428
|
-
_this.threshold = threshold;
|
|
429
|
-
// Hack for iOS to determine if pulling stopped due to scroll
|
|
430
|
-
// because Safari does not support `touch-action: pan-down`
|
|
431
|
-
_this.touched = false;
|
|
432
|
-
_this.pulling$ = _this.loaded$.pipe(operators.startWith(null), operators.switchMap(function () { return i1$1.tuiTypedFromEvent(_this.element, "touchstart", { passive: true }).pipe(operators.filter(function () { return !_this.scrollTop; }), operators.map(function (_a) {
|
|
433
|
-
var touches = _a.touches;
|
|
434
|
-
return touches[0].clientY;
|
|
435
|
-
}), operators.switchMap(function (start) { return i1$1.tuiTypedFromEvent(_this.element, "touchmove").pipe(operators.tap(function () {
|
|
436
|
-
_this.touched = true;
|
|
437
|
-
}), operators.map(function (_a) {
|
|
438
|
-
var touches = _a.touches;
|
|
439
|
-
return touches[0].clientY - start;
|
|
440
|
-
}), operators.filter(function (distance) { return distance > 0; }), operators.takeUntil(i1$1.tuiTypedFromEvent(_this.element, "touchend").pipe(operators.tap(function () {
|
|
441
|
-
_this.touched = false;
|
|
442
|
-
}))), operators.takeUntil(i1$1.tuiScrollFrom(_this.scrollRef.nativeElement)), operators.endWith(0)); }), operators.scan(function (prev, current) { return !current && !_this.touched && prev > _this.threshold
|
|
443
|
-
? _this.threshold
|
|
444
|
-
: current + current * MICRO_OFFSET; }, 0), operators.takeWhile(function (distance) { return distance !== _this.threshold; }, true), operators.startWith(0)); }), operators.distinctUntilChanged(), operators.share());
|
|
445
|
-
return _this;
|
|
446
|
-
}
|
|
447
|
-
Object.defineProperty(TuiPullToRefreshService.prototype, "element", {
|
|
448
|
-
get: function () {
|
|
449
|
-
return this.el.nativeElement;
|
|
450
|
-
},
|
|
451
|
-
enumerable: false,
|
|
452
|
-
configurable: true
|
|
453
|
-
});
|
|
454
|
-
Object.defineProperty(TuiPullToRefreshService.prototype, "scrollTop", {
|
|
455
|
-
get: function () {
|
|
456
|
-
return this.scrollRef.nativeElement.scrollTop;
|
|
457
|
-
},
|
|
458
|
-
enumerable: false,
|
|
459
|
-
configurable: true
|
|
460
|
-
});
|
|
461
|
-
return TuiPullToRefreshService;
|
|
462
|
-
}(i3.Observable));
|
|
463
|
-
TuiPullToRefreshService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshService, deps: [{ token: i0.ElementRef }, { token: i1$1.TUI_SCROLL_REF }, { token: TUI_PULL_TO_REFRESH_LOADED }, { token: TUI_PULL_TO_REFRESH_THRESHOLD }, { token: TUI_PULL_TO_REFRESH_COMPONENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
464
|
-
TuiPullToRefreshService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshService });
|
|
465
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshService, decorators: [{
|
|
466
|
-
type: i0.Injectable
|
|
467
|
-
}], ctorParameters: function () {
|
|
468
|
-
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
469
|
-
type: i0.Inject,
|
|
470
|
-
args: [i0.ElementRef]
|
|
471
|
-
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
472
|
-
type: i0.Inject,
|
|
473
|
-
args: [i1$1.TUI_SCROLL_REF]
|
|
474
|
-
}] }, { type: i3__namespace.Observable, decorators: [{
|
|
475
|
-
type: i0.Inject,
|
|
476
|
-
args: [TUI_PULL_TO_REFRESH_LOADED]
|
|
477
|
-
}] }, { type: undefined, decorators: [{
|
|
478
|
-
type: i0.Inject,
|
|
479
|
-
args: [TUI_PULL_TO_REFRESH_THRESHOLD]
|
|
480
|
-
}] }, { type: undefined, decorators: [{
|
|
481
|
-
type: i0.Inject,
|
|
482
|
-
args: [TUI_PULL_TO_REFRESH_COMPONENT]
|
|
483
|
-
}] }];
|
|
484
|
-
} });
|
|
485
|
-
|
|
486
|
-
var ROTATE_X_DEFAULT = 180;
|
|
487
|
-
var ROTATE_X_MAX = 500;
|
|
488
|
-
var ROTATE_X_MULTIPLIER = 2.3;
|
|
489
|
-
var TuiMobileLoaderAndroidComponent = /** @class */ (function () {
|
|
490
|
-
function TuiMobileLoaderAndroidComponent(context, threshold) {
|
|
491
|
-
this.context = context;
|
|
492
|
-
this.threshold = threshold;
|
|
493
|
-
}
|
|
494
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "transform", {
|
|
495
|
-
get: function () {
|
|
496
|
-
var rotateX = Math.min(ROTATE_X_DEFAULT + this.percent * ROTATE_X_MULTIPLIER, ROTATE_X_MAX);
|
|
497
|
-
return "rotate(" + rotateX + " 0 0)";
|
|
498
|
-
},
|
|
499
|
-
enumerable: false,
|
|
500
|
-
configurable: true
|
|
501
|
-
});
|
|
502
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "percent", {
|
|
503
|
-
get: function () {
|
|
504
|
-
return (this.context.$implicit * 100) / this.threshold;
|
|
505
|
-
},
|
|
506
|
-
enumerable: false,
|
|
507
|
-
configurable: true
|
|
508
|
-
});
|
|
509
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "opacity", {
|
|
510
|
-
get: function () {
|
|
511
|
-
return this.context.$implicit / (this.threshold * 1.5);
|
|
512
|
-
},
|
|
513
|
-
enumerable: false,
|
|
514
|
-
configurable: true
|
|
515
|
-
});
|
|
516
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "dropped", {
|
|
517
|
-
get: function () {
|
|
518
|
-
return (this.context.$implicit <= MICRO_OFFSET ||
|
|
519
|
-
this.context.$implicit === this.threshold);
|
|
520
|
-
},
|
|
521
|
-
enumerable: false,
|
|
522
|
-
configurable: true
|
|
523
|
-
});
|
|
524
|
-
Object.defineProperty(TuiMobileLoaderAndroidComponent.prototype, "hostTransform", {
|
|
525
|
-
get: function () {
|
|
526
|
-
return "translateY(" + Math.min(this.context.$implicit, this.threshold * 1.5) + "px)";
|
|
527
|
-
},
|
|
528
|
-
enumerable: false,
|
|
529
|
-
configurable: true
|
|
530
|
-
});
|
|
531
|
-
return TuiMobileLoaderAndroidComponent;
|
|
532
|
-
}());
|
|
533
|
-
TuiMobileLoaderAndroidComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileLoaderAndroidComponent, deps: [{ token: i1.POLYMORPHEUS_CONTEXT }, { token: TUI_PULL_TO_REFRESH_THRESHOLD }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
534
|
-
TuiMobileLoaderAndroidComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiMobileLoaderAndroidComponent, selector: "tui-mobile-android-loader", host: { properties: { "class._visible": "this.percent", "class._dropped": "this.dropped", "style.transform": "this.hostTransform" } }, ngImport: i0__namespace, template: "<div class=\"t-wrapper\">\n <svg\n *ngIf=\"percent !== 100; else loading\"\n fill=\"none\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n [attr.transform]=\"transform\"\n [style.opacity]=\"opacity\"\n >\n <defs>\n <mask id=\"mask-1\">\n <path\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 fill-rule=\"evenodd\"\n />\n </mask>\n </defs>\n <g mask=\"url(#mask-1)\">\n <path\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 fill-rule=\"evenodd\"\n />\n </g>\n </svg>\n</div>\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", styles: [":host{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;display:block;height:0;opacity:0}:host._visible{opacity:1}:host._dropped{transition:transform var(--tui-duration) cubic-bezier(.4,0,.2,1),opacity var(--tui-duration) var(--tui-duration)}.t-wrapper{position:absolute;top:-2.5rem;left:50%;display:flex;box-shadow:var(--tui-shadow-dropdown);height:2.25rem;width:2.25rem;background-color:var(--tui-secondary);border-radius:6.25rem;align-items:center;justify-content:center;margin-left:-1.125rem}.t-loading{display:block;width:1rem;border-radius:100%;animation:tuiLoaderRotate 3s linear infinite}.t-circle{fill:none;stroke:var(--tui-text-01);stroke-width:1.5rem;animation:tuiLoaderDashOffset 3s linear infinite}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
535
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiMobileLoaderAndroidComponent, decorators: [{
|
|
536
|
-
type: i0.Component,
|
|
537
|
-
args: [{
|
|
538
|
-
selector: 'tui-mobile-android-loader',
|
|
539
|
-
templateUrl: './loader-android.template.html',
|
|
540
|
-
styleUrls: ['./loader-android.style.less'],
|
|
541
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
542
|
-
}]
|
|
543
|
-
}], ctorParameters: function () {
|
|
544
|
-
return [{ type: undefined, decorators: [{
|
|
545
|
-
type: i0.Inject,
|
|
546
|
-
args: [i1.POLYMORPHEUS_CONTEXT]
|
|
547
|
-
}] }, { type: undefined, decorators: [{
|
|
548
|
-
type: i0.Inject,
|
|
549
|
-
args: [TUI_PULL_TO_REFRESH_THRESHOLD]
|
|
550
|
-
}] }];
|
|
551
|
-
}, propDecorators: { percent: [{
|
|
552
|
-
type: i0.HostBinding,
|
|
553
|
-
args: ['class._visible']
|
|
554
|
-
}], dropped: [{
|
|
555
|
-
type: i0.HostBinding,
|
|
556
|
-
args: ['class._dropped']
|
|
557
|
-
}], hostTransform: [{
|
|
558
|
-
type: i0.HostBinding,
|
|
559
|
-
args: ['style.transform']
|
|
560
|
-
}] } });
|
|
561
|
-
var TUI_ANDROID_LOADER = new i1.PolymorpheusComponent(TuiMobileLoaderAndroidComponent);
|
|
562
|
-
|
|
563
|
-
var TuiPullToRefreshComponent = /** @class */ (function () {
|
|
564
|
-
function TuiPullToRefreshComponent(zone, destroy$, _a, isIOS, threshold, component, pulling$) {
|
|
565
|
-
var _this = this;
|
|
566
|
-
var nativeElement = _a.nativeElement;
|
|
567
|
-
this.isIOS = isIOS;
|
|
568
|
-
this.threshold = threshold;
|
|
569
|
-
this.component = component;
|
|
570
|
-
this.pulling$ = pulling$;
|
|
571
|
-
this.styleHandler = this.isIOS
|
|
572
|
-
? function (distance) { return ({ top: i1$1.tuiPx(distance / 2) }); }
|
|
573
|
-
: function () { return null; };
|
|
574
|
-
this.pulled = this.pulling$.pipe(operators.filter(function (distance) { return distance === _this.threshold; }));
|
|
575
|
-
this.dropped$ = this.pulling$.pipe(operators.map(function (distance) { return distance <= MICRO_OFFSET || distance === _this.threshold; }), operators.distinctUntilChanged());
|
|
576
|
-
// Ensure scrolling down is impossible while pulling
|
|
577
|
-
if (this.component) {
|
|
578
|
-
i1$1.tuiScrollFrom(nativeElement)
|
|
579
|
-
.pipe(operators.startWith(null), i1$1.tuiZonefree(zone), operators.takeUntil(destroy$))
|
|
580
|
-
.subscribe(function () {
|
|
581
|
-
if (nativeElement.scrollTop) {
|
|
582
|
-
nativeElement.style.touchAction = '';
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
nativeElement.style.touchAction = 'pan-down';
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
return TuiPullToRefreshComponent;
|
|
591
|
-
}());
|
|
592
|
-
TuiPullToRefreshComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshComponent, deps: [{ token: i0.NgZone }, { token: i1$1.TuiDestroyService, self: true }, { token: i1$1.TUI_SCROLL_REF }, { token: i1$1.TUI_IS_IOS }, { token: TUI_PULL_TO_REFRESH_THRESHOLD }, { token: TUI_PULL_TO_REFRESH_COMPONENT }, { token: TuiPullToRefreshService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
593
|
-
TuiPullToRefreshComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiPullToRefreshComponent, selector: "tui-pull-to-refresh", inputs: { styleHandler: "styleHandler" }, outputs: { pulled: "pulled" }, providers: [TuiPullToRefreshService, i1$1.TuiDestroyService], ngImport: i0__namespace, template: "<ng-container *polymorpheusOutlet=\"component; context: {$implicit: (pulling$ | async) || 0}\"></ng-container>\n\n<div\n [class.t-drop]=\"dropped$ | async\"\n [ngStyle]=\"styleHandler((pulling$ | async) || 0)\"\n [style.position]=\"'relative'\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".t-drop{transition:all var(--tui-duration) cubic-bezier(.4,0,.2,1)}\n"], directives: [{ type: i1__namespace$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
594
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshComponent, decorators: [{
|
|
595
|
-
type: i0.Component,
|
|
596
|
-
args: [{
|
|
597
|
-
selector: 'tui-pull-to-refresh',
|
|
598
|
-
templateUrl: './pull-to-refresh.template.html',
|
|
599
|
-
styleUrls: ['./pull-to-refresh.style.less'],
|
|
600
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
601
|
-
providers: [TuiPullToRefreshService, i1$1.TuiDestroyService],
|
|
602
|
-
}]
|
|
603
|
-
}], ctorParameters: function () {
|
|
604
|
-
return [{ type: i0__namespace.NgZone, decorators: [{
|
|
605
|
-
type: i0.Inject,
|
|
606
|
-
args: [i0.NgZone]
|
|
607
|
-
}] }, { type: i3__namespace.Observable, decorators: [{
|
|
608
|
-
type: i0.Inject,
|
|
609
|
-
args: [i1$1.TuiDestroyService]
|
|
610
|
-
}, {
|
|
611
|
-
type: i0.Self
|
|
612
|
-
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
613
|
-
type: i0.Inject,
|
|
614
|
-
args: [i1$1.TUI_SCROLL_REF]
|
|
615
|
-
}] }, { type: undefined, decorators: [{
|
|
616
|
-
type: i0.Inject,
|
|
617
|
-
args: [i1$1.TUI_IS_IOS]
|
|
618
|
-
}] }, { type: undefined, decorators: [{
|
|
619
|
-
type: i0.Inject,
|
|
620
|
-
args: [TUI_PULL_TO_REFRESH_THRESHOLD]
|
|
621
|
-
}] }, { type: undefined, decorators: [{
|
|
622
|
-
type: i0.Inject,
|
|
623
|
-
args: [TUI_PULL_TO_REFRESH_COMPONENT]
|
|
624
|
-
}] }, { type: i3__namespace.Observable, decorators: [{
|
|
625
|
-
type: i0.Inject,
|
|
626
|
-
args: [TuiPullToRefreshService]
|
|
627
|
-
}] }];
|
|
628
|
-
}, propDecorators: { styleHandler: [{
|
|
629
|
-
type: i0.Input
|
|
630
|
-
}], pulled: [{
|
|
631
|
-
type: i0.Output
|
|
632
|
-
}] } });
|
|
633
|
-
|
|
634
|
-
var TuiPullToRefreshModule = /** @class */ (function () {
|
|
635
|
-
function TuiPullToRefreshModule() {
|
|
636
|
-
}
|
|
637
|
-
return TuiPullToRefreshModule;
|
|
638
|
-
}());
|
|
639
|
-
TuiPullToRefreshModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
640
|
-
TuiPullToRefreshModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshModule, declarations: [TuiPullToRefreshComponent,
|
|
641
|
-
TuiMobileLoaderAndroidComponent,
|
|
642
|
-
TuiMobileLoaderIOSComponent], imports: [i2.CommonModule, core.TuiSvgModule, i1$1.TuiRepeatTimesModule, i1.PolymorpheusModule], exports: [TuiPullToRefreshComponent] });
|
|
643
|
-
TuiPullToRefreshModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshModule, imports: [[i2.CommonModule, core.TuiSvgModule, i1$1.TuiRepeatTimesModule, i1.PolymorpheusModule]] });
|
|
644
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiPullToRefreshModule, decorators: [{
|
|
645
|
-
type: i0.NgModule,
|
|
646
|
-
args: [{
|
|
647
|
-
imports: [i2.CommonModule, core.TuiSvgModule, i1$1.TuiRepeatTimesModule, i1.PolymorpheusModule],
|
|
648
|
-
declarations: [
|
|
649
|
-
TuiPullToRefreshComponent,
|
|
650
|
-
TuiMobileLoaderAndroidComponent,
|
|
651
|
-
TuiMobileLoaderIOSComponent,
|
|
652
|
-
],
|
|
653
|
-
exports: [TuiPullToRefreshComponent],
|
|
654
|
-
}]
|
|
655
|
-
}] });
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* Generated bundle index. Do not edit.
|
|
659
|
-
*/
|
|
660
|
-
|
|
661
|
-
exports.MICRO_OFFSET = MICRO_OFFSET;
|
|
662
|
-
exports.TUI_ANDROID_LOADER = TUI_ANDROID_LOADER;
|
|
663
|
-
exports.TUI_IOS_LOADER = TUI_IOS_LOADER;
|
|
664
|
-
exports.TUI_LOADED = TUI_LOADED;
|
|
665
|
-
exports.TUI_PULL_TO_REFRESH_COMPONENT = TUI_PULL_TO_REFRESH_COMPONENT;
|
|
666
|
-
exports.TUI_PULL_TO_REFRESH_LOADED = TUI_PULL_TO_REFRESH_LOADED;
|
|
667
|
-
exports.TUI_PULL_TO_REFRESH_THRESHOLD = TUI_PULL_TO_REFRESH_THRESHOLD;
|
|
668
|
-
exports.TuiMobileLoaderAndroidComponent = TuiMobileLoaderAndroidComponent;
|
|
669
|
-
exports.TuiMobileLoaderIOSComponent = TuiMobileLoaderIOSComponent;
|
|
670
|
-
exports.TuiPullToRefreshComponent = TuiPullToRefreshComponent;
|
|
671
|
-
exports.TuiPullToRefreshModule = TuiPullToRefreshModule;
|
|
672
|
-
exports.TuiPullToRefreshService = TuiPullToRefreshService;
|
|
673
|
-
|
|
674
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
675
|
-
|
|
676
|
-
}));
|
|
677
|
-
//# sourceMappingURL=taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map
|