@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,680 +0,0 @@
|
|
|
1
|
-
import { __read, __decorate, __param, __assign, __spread, __extends } from 'tslib';
|
|
2
|
-
import { Inject, ElementRef, Component, ChangeDetectionStrategy, InjectionToken, NgZone, ViewChild, ViewChildren, Input, HostListener, inject, ɵɵdefineInjectable, ɵɵinject, Injectable, Output, Directive, forwardRef, ContentChild, ChangeDetectorRef, TemplateRef, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
-
import { typedFromEvent, tuiZonefree, TuiIdService, TUI_IS_IOS, EMPTY_QUERY, tuiZonefull, tuiPure, clamp, TUI_WINDOW_HEIGHT, TuiDestroyService, tuiDefaultProp, tuiRequiredSetter, TuiLetModule, TuiOverscrollModule } from '@taiga-ui/cdk';
|
|
4
|
-
import { TUI_CLOSE_WORD, TUI_SCROLL_REF, tuiSlideInTop, tuiZonefulMap, TUI_ANIMATION_OPTIONS, tuiFadeIn, TuiButtonModule, TuiScrollbarModule } from '@taiga-ui/core';
|
|
5
|
-
import { TUI_MORE_WORD } from '@taiga-ui/kit';
|
|
6
|
-
import { merge, concat, zip, race, timer, Observable, BehaviorSubject, EMPTY, Subject } from 'rxjs';
|
|
7
|
-
import { map, delay, switchMap, takeUntil, take, share, filter, debounceTime, mapTo, switchMapTo, startWith, distinctUntilChanged, withLatestFrom, throttleTime, ignoreElements, endWith } from 'rxjs/operators';
|
|
8
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
9
|
-
import { WINDOW } from '@ng-web-apis/common';
|
|
10
|
-
import { PolymorpheusTemplate, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13
|
-
function iosScrollFactory(element, documentRef, ngZone) {
|
|
14
|
-
var load$ = typedFromEvent(element, 'load', { capture: true });
|
|
15
|
-
var touchstart$ = typedFromEvent(element, 'touchstart', { passive: true });
|
|
16
|
-
var touchmove$ = typedFromEvent(documentRef, 'touchmove', { passive: true });
|
|
17
|
-
var touchend$ = typedFromEvent(documentRef, 'touchend');
|
|
18
|
-
var scroll$ = typedFromEvent(element, 'scroll').pipe(map(function () { return element.scrollTop; }));
|
|
19
|
-
var result$ = merge(load$.pipe(delay(0), map(function () { return element.scrollTop; })), touchstart$.pipe(switchMap(function (_a) {
|
|
20
|
-
var touches = _a.touches;
|
|
21
|
-
var screenY = touches[0].screenY;
|
|
22
|
-
var scrollTop = element.scrollTop;
|
|
23
|
-
return concat(
|
|
24
|
-
// Sometimes touch is triggered without scroll in iOS, filter that
|
|
25
|
-
zip(touchmove$, scroll$).pipe(map(function (_a) {
|
|
26
|
-
var _b = __read(_a, 1), touches = _b[0].touches;
|
|
27
|
-
return scrollTop + screenY - touches[0].screenY;
|
|
28
|
-
}), takeUntil(touchend$)), scroll$);
|
|
29
|
-
})));
|
|
30
|
-
return concat(scroll$.pipe(take(1)), result$).pipe(tuiZonefree(ngZone), share());
|
|
31
|
-
}
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
33
|
-
function processDragged(dragged$, scroll$) {
|
|
34
|
-
var touchstart$ = dragged$.pipe(filter(Boolean));
|
|
35
|
-
var touchend$ = dragged$.pipe(filter(function (v) { return !v; }));
|
|
36
|
-
var race$ = race(scroll$, timer(100)).pipe(debounceTime(200), take(1), mapTo(false));
|
|
37
|
-
return touchstart$.pipe(switchMapTo(touchend$.pipe(switchMapTo(race$), startWith(true))), startWith(false));
|
|
38
|
-
}
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
40
|
-
function fakeSmoothScroll(_a, offset) {
|
|
41
|
-
var style = _a.style;
|
|
42
|
-
style.transition = 'none';
|
|
43
|
-
style.transform = "scaleX(-1) translate3d(0, " + offset + "px, 0)";
|
|
44
|
-
setTimeout(function () {
|
|
45
|
-
style.transition = '';
|
|
46
|
-
style.transform = '';
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var TUI_SHEET_CLOSE = 'tui-sheet-close';
|
|
51
|
-
var TUI_SHEET_ID = 'tui-sheet-id';
|
|
52
|
-
var TuiSheetHeadingComponent = /** @class */ (function () {
|
|
53
|
-
function TuiSheetHeadingComponent(idService, elementRef, closeWord$) {
|
|
54
|
-
this.idService = idService;
|
|
55
|
-
this.elementRef = elementRef;
|
|
56
|
-
this.closeWord$ = closeWord$;
|
|
57
|
-
this.id = this.idService.generate();
|
|
58
|
-
}
|
|
59
|
-
TuiSheetHeadingComponent.prototype.ngAfterViewInit = function () {
|
|
60
|
-
this.elementRef.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_ID, { bubbles: true, detail: this.id }));
|
|
61
|
-
};
|
|
62
|
-
TuiSheetHeadingComponent.prototype.onClick = function () {
|
|
63
|
-
this.elementRef.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
|
|
64
|
-
};
|
|
65
|
-
TuiSheetHeadingComponent.ctorParameters = function () { return [
|
|
66
|
-
{ type: TuiIdService, decorators: [{ type: Inject, args: [TuiIdService,] }] },
|
|
67
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
68
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_CLOSE_WORD,] }] }
|
|
69
|
-
]; };
|
|
70
|
-
TuiSheetHeadingComponent = __decorate([
|
|
71
|
-
Component({
|
|
72
|
-
selector: '[tuiSheetHeading]',
|
|
73
|
-
template: "<button\n tuiIconButton\n size=\"xs\"\n appearance=\"icon\"\n icon=\"tuiIconCloseLarge\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n",
|
|
74
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
75
|
-
styles: [":host{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-base-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px rgba(255,255,255,.25)}:host:after{content:'';position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}"]
|
|
76
|
-
}),
|
|
77
|
-
__param(0, Inject(TuiIdService)),
|
|
78
|
-
__param(1, Inject(ElementRef)),
|
|
79
|
-
__param(2, Inject(TUI_CLOSE_WORD))
|
|
80
|
-
], TuiSheetHeadingComponent);
|
|
81
|
-
return TuiSheetHeadingComponent;
|
|
82
|
-
}());
|
|
83
|
-
|
|
84
|
-
var TUI_SHEET_SCROLL = new InjectionToken('Current scrollTop of a sheet');
|
|
85
|
-
var TUI_SHEET_DRAGGED = new InjectionToken('The sheet is being dragged');
|
|
86
|
-
/** @deprecated use option argument for each Sheet */
|
|
87
|
-
var TUI_SHEET_OFFSET = new InjectionToken('Offset from the top at which the sheet stops', {
|
|
88
|
-
factory: function () { return 16; },
|
|
89
|
-
});
|
|
90
|
-
var TUI_SHEET_PROVIDERS = [
|
|
91
|
-
{
|
|
92
|
-
provide: TUI_SHEET_DRAGGED,
|
|
93
|
-
deps: [ElementRef],
|
|
94
|
-
useFactory: sheetDraggedFactory,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
provide: TUI_SHEET_SCROLL,
|
|
98
|
-
deps: [ElementRef, NgZone, DOCUMENT, TUI_IS_IOS],
|
|
99
|
-
useFactory: sheetScrollFactory,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
provide: TUI_SCROLL_REF,
|
|
103
|
-
useExisting: ElementRef,
|
|
104
|
-
},
|
|
105
|
-
];
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
107
|
-
function sheetDraggedFactory(_a) {
|
|
108
|
-
var nativeElement = _a.nativeElement;
|
|
109
|
-
return merge(typedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(mapTo(true)), typedFromEvent(nativeElement, 'touchend').pipe(mapTo(false)));
|
|
110
|
-
}
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
112
|
-
function sheetScrollFactory(_a, ngZone, documentRef, isIos) {
|
|
113
|
-
var nativeElement = _a.nativeElement;
|
|
114
|
-
return isIos
|
|
115
|
-
? iosScrollFactory(nativeElement, documentRef, ngZone)
|
|
116
|
-
: merge(typedFromEvent(nativeElement, 'scroll'), typedFromEvent(nativeElement, 'load', { capture: true })).pipe(map(function () { return nativeElement.scrollTop; }), tuiZonefree(ngZone), share());
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// @dynamic
|
|
120
|
-
var TuiSheetComponent = /** @class */ (function () {
|
|
121
|
-
function TuiSheetComponent(scroll$, elementRef, ngZone, isIos, moreWord$) {
|
|
122
|
-
var _this = this;
|
|
123
|
-
this.scroll$ = scroll$;
|
|
124
|
-
this.elementRef = elementRef;
|
|
125
|
-
this.ngZone = ngZone;
|
|
126
|
-
this.isIos = isIos;
|
|
127
|
-
this.moreWord$ = moreWord$;
|
|
128
|
-
this.stopsRefs = EMPTY_QUERY;
|
|
129
|
-
this.id = '';
|
|
130
|
-
this.stuck$ = this.scroll$.pipe(map(function (y) { return Math.floor(y) > _this.contentTop; }));
|
|
131
|
-
}
|
|
132
|
-
Object.defineProperty(TuiSheetComponent.prototype, "stops", {
|
|
133
|
-
get: function () {
|
|
134
|
-
return this.getStops(this.stopsRefs);
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
|
|
140
|
-
get: function () {
|
|
141
|
-
return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
|
|
142
|
-
},
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true
|
|
145
|
-
});
|
|
146
|
-
Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
|
|
147
|
-
get: function () {
|
|
148
|
-
return this.contentTop - this.sheetTop;
|
|
149
|
-
},
|
|
150
|
-
enumerable: true,
|
|
151
|
-
configurable: true
|
|
152
|
-
});
|
|
153
|
-
Object.defineProperty(TuiSheetComponent.prototype, "context", {
|
|
154
|
-
get: function () {
|
|
155
|
-
return __assign(__assign({}, this.item), { scroll$: this.scroll$.pipe(tuiZonefull(this.ngZone)) });
|
|
156
|
-
},
|
|
157
|
-
enumerable: true,
|
|
158
|
-
configurable: true
|
|
159
|
-
});
|
|
160
|
-
TuiSheetComponent.prototype.onId = function (id) {
|
|
161
|
-
this.id = id;
|
|
162
|
-
};
|
|
163
|
-
TuiSheetComponent.prototype.ngAfterViewInit = function () {
|
|
164
|
-
var stops = __spread(this.stops, [this.sheetTop, this.contentTop]);
|
|
165
|
-
this.elementRef.nativeElement.scrollTop = stops[this.item.initial];
|
|
166
|
-
};
|
|
167
|
-
TuiSheetComponent.prototype.scrollTo = function (top) {
|
|
168
|
-
if (top === void 0) { top = this.sheetTop; }
|
|
169
|
-
var nativeElement = this.elementRef.nativeElement;
|
|
170
|
-
if (this.isIos) {
|
|
171
|
-
fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);
|
|
172
|
-
}
|
|
173
|
-
nativeElement.scrollTo({ top: top, behavior: 'smooth' });
|
|
174
|
-
};
|
|
175
|
-
TuiSheetComponent.prototype.close = function () {
|
|
176
|
-
if (this.context.closeable) {
|
|
177
|
-
this.context.$implicit.complete();
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
Object.defineProperty(TuiSheetComponent.prototype, "contentTop", {
|
|
181
|
-
get: function () {
|
|
182
|
-
var _a, _b;
|
|
183
|
-
return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
|
|
184
|
-
},
|
|
185
|
-
enumerable: true,
|
|
186
|
-
configurable: true
|
|
187
|
-
});
|
|
188
|
-
Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
|
|
189
|
-
get: function () {
|
|
190
|
-
var _a, _b;
|
|
191
|
-
return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
|
|
192
|
-
},
|
|
193
|
-
enumerable: true,
|
|
194
|
-
configurable: true
|
|
195
|
-
});
|
|
196
|
-
TuiSheetComponent.prototype.getStops = function (stops) {
|
|
197
|
-
return stops
|
|
198
|
-
.toArray()
|
|
199
|
-
.map(function (_a) {
|
|
200
|
-
var nativeElement = _a.nativeElement;
|
|
201
|
-
return nativeElement.offsetTop + nativeElement.clientHeight;
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
TuiSheetComponent.ctorParameters = function () { return [
|
|
205
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
206
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
207
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
208
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] },
|
|
209
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_MORE_WORD,] }] }
|
|
210
|
-
]; };
|
|
211
|
-
__decorate([
|
|
212
|
-
ViewChild('sheet')
|
|
213
|
-
], TuiSheetComponent.prototype, "sheet", void 0);
|
|
214
|
-
__decorate([
|
|
215
|
-
ViewChild('content')
|
|
216
|
-
], TuiSheetComponent.prototype, "content", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
ViewChildren('stops')
|
|
219
|
-
], TuiSheetComponent.prototype, "stopsRefs", void 0);
|
|
220
|
-
__decorate([
|
|
221
|
-
Input()
|
|
222
|
-
], TuiSheetComponent.prototype, "item", void 0);
|
|
223
|
-
__decorate([
|
|
224
|
-
tuiPure
|
|
225
|
-
], TuiSheetComponent.prototype, "context", null);
|
|
226
|
-
__decorate([
|
|
227
|
-
HostListener(TUI_SHEET_ID, ['$event.detail'])
|
|
228
|
-
], TuiSheetComponent.prototype, "onId", null);
|
|
229
|
-
__decorate([
|
|
230
|
-
tuiPure
|
|
231
|
-
], TuiSheetComponent.prototype, "getStops", null);
|
|
232
|
-
TuiSheetComponent = __decorate([
|
|
233
|
-
Component({
|
|
234
|
-
selector: 'tui-sheet',
|
|
235
|
-
template: "<div\n class=\"t-bumpers\"\n (click)=\"close()\"\n>\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-wrapper\"\n [class.t-wrapper_shadow]=\"!item.image\"\n>\n <header\n *ngIf=\"item.image\"\n polymorpheus-outlet\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n [content]=\"item.image\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <img\n alt=\"\"\n class=\"t-image\"\n [src]=\"content\"\n />\n </ng-template>\n </header>\n <section\n #content\n tuiSheetStop\n class=\"t-sheet\"\n >\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"item.content\"\n [context]=\"context\"\n >\n <ng-template let-content>\n <h2\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ content }}\n </h2>\n </ng-template>\n </div>\n </section>\n</div>\n",
|
|
236
|
-
providers: TUI_SHEET_PROVIDERS,
|
|
237
|
-
animations: [tuiSlideInTop],
|
|
238
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
239
|
-
host: {
|
|
240
|
-
role: 'dialog',
|
|
241
|
-
'[attr.aria-labelledby]': 'id',
|
|
242
|
-
'[class._ios]': 'isIos',
|
|
243
|
-
// '[class._stuck]': 'true', // Initially disable snapping for Firefox
|
|
244
|
-
'[$.class._stuck]': 'stuck$',
|
|
245
|
-
'($.class._stuck)': 'stuck$',
|
|
246
|
-
},
|
|
247
|
-
styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;box-shadow:0 4rem var(--tui-base-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._stuck{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;pointer-events:auto;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12)}.t-top{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:-webkit-sticky;position:sticky;top:0;pointer-events:auto;border-radius:.8rem .8rem 0 0;transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1);box-shadow:0 4rem var(--tui-base-01)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px rgba(255,255,255,.25)}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading{padding-bottom:.5rem;background:var(--tui-elevation-01)}"]
|
|
248
|
-
}),
|
|
249
|
-
__param(0, Inject(TUI_SHEET_SCROLL)),
|
|
250
|
-
__param(1, Inject(ElementRef)),
|
|
251
|
-
__param(2, Inject(NgZone)),
|
|
252
|
-
__param(3, Inject(TUI_IS_IOS)),
|
|
253
|
-
__param(4, Inject(TUI_MORE_WORD))
|
|
254
|
-
], TuiSheetComponent);
|
|
255
|
-
return TuiSheetComponent;
|
|
256
|
-
}());
|
|
257
|
-
|
|
258
|
-
var TuiSheetBarComponent = /** @class */ (function () {
|
|
259
|
-
function TuiSheetBarComponent(sheet, scroll$, ngZone) {
|
|
260
|
-
var _this = this;
|
|
261
|
-
this.sheet = sheet;
|
|
262
|
-
this.scroll$ = scroll$;
|
|
263
|
-
this.ngZone = ngZone;
|
|
264
|
-
this.rotate$ = this.scroll$.pipe(tuiZonefulMap(function (y) { return clamp(10 - (y - _this.stop) / 5, 0, 10); }, this.ngZone));
|
|
265
|
-
}
|
|
266
|
-
Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
|
|
267
|
-
get: function () {
|
|
268
|
-
var _a;
|
|
269
|
-
return (_a = this.sheet.stops[0]) !== null && _a !== void 0 ? _a : 0;
|
|
270
|
-
},
|
|
271
|
-
enumerable: true,
|
|
272
|
-
configurable: true
|
|
273
|
-
});
|
|
274
|
-
TuiSheetBarComponent.ctorParameters = function () { return [
|
|
275
|
-
{ type: TuiSheetComponent, decorators: [{ type: Inject, args: [TuiSheetComponent,] }] },
|
|
276
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
277
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] }
|
|
278
|
-
]; };
|
|
279
|
-
TuiSheetBarComponent = __decorate([
|
|
280
|
-
Component({
|
|
281
|
-
selector: 'tui-sheet-bar',
|
|
282
|
-
template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n style=\"transform: rotate(-{{ deg }}deg)\"\n class=\"t-bar\"\n ></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div\n style=\"transform: rotate({{ deg }}deg)\"\n class=\"t-bar\"\n ></div>\n</ng-container>\n",
|
|
283
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
284
|
-
styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:'';height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}"]
|
|
285
|
-
}),
|
|
286
|
-
__param(0, Inject(TuiSheetComponent)),
|
|
287
|
-
__param(1, Inject(TUI_SHEET_SCROLL)),
|
|
288
|
-
__param(2, Inject(NgZone))
|
|
289
|
-
], TuiSheetBarComponent);
|
|
290
|
-
return TuiSheetBarComponent;
|
|
291
|
-
}());
|
|
292
|
-
|
|
293
|
-
var TUI_SHEET_DEFAULT_OPTIONS = {
|
|
294
|
-
image: '',
|
|
295
|
-
imageSlide: true,
|
|
296
|
-
stops: [],
|
|
297
|
-
initial: 0,
|
|
298
|
-
offset: 16,
|
|
299
|
-
closeable: true,
|
|
300
|
-
overlay: false,
|
|
301
|
-
};
|
|
302
|
-
var TUI_SHEET_OPTIONS = new InjectionToken('Default parameters for sheet component', {
|
|
303
|
-
factory: function () { return (__assign(__assign({}, TUI_SHEET_DEFAULT_OPTIONS), { offset: inject(TUI_SHEET_OFFSET) })); },
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
var TuiSheetService = /** @class */ (function () {
|
|
307
|
-
function TuiSheetService(options) {
|
|
308
|
-
this.options = options;
|
|
309
|
-
this.sheets$ = new BehaviorSubject([]);
|
|
310
|
-
}
|
|
311
|
-
TuiSheetService.prototype.open = function (content, options) {
|
|
312
|
-
var _this = this;
|
|
313
|
-
if (options === void 0) { options = {}; }
|
|
314
|
-
return new Observable(function ($implicit) {
|
|
315
|
-
var completeWith = function (result) {
|
|
316
|
-
$implicit.next(result);
|
|
317
|
-
$implicit.complete();
|
|
318
|
-
};
|
|
319
|
-
var sheet = __assign(__assign(__assign({}, _this.options), options), { content: content,
|
|
320
|
-
completeWith: completeWith,
|
|
321
|
-
$implicit: $implicit, scroll$: EMPTY });
|
|
322
|
-
_this.sheets$.next(__spread(_this.sheets$.value, [sheet]));
|
|
323
|
-
return function () {
|
|
324
|
-
_this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
|
|
325
|
-
};
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
TuiSheetService.ctorParameters = function () { return [
|
|
329
|
-
{ type: undefined, decorators: [{ type: Inject, args: [TUI_SHEET_OPTIONS,] }] }
|
|
330
|
-
]; };
|
|
331
|
-
TuiSheetService.ɵprov = ɵɵdefineInjectable({ factory: function TuiSheetService_Factory() { return new TuiSheetService(ɵɵinject(TUI_SHEET_OPTIONS)); }, token: TuiSheetService, providedIn: "root" });
|
|
332
|
-
TuiSheetService = __decorate([
|
|
333
|
-
Injectable({
|
|
334
|
-
providedIn: 'root',
|
|
335
|
-
}),
|
|
336
|
-
__param(0, Inject(TUI_SHEET_OPTIONS))
|
|
337
|
-
], TuiSheetService);
|
|
338
|
-
return TuiSheetService;
|
|
339
|
-
}());
|
|
340
|
-
|
|
341
|
-
// @dynamic
|
|
342
|
-
var TuiSheetsHostComponent = /** @class */ (function () {
|
|
343
|
-
function TuiSheetsHostComponent(options, service, height$) {
|
|
344
|
-
this.options = options;
|
|
345
|
-
this.service = service;
|
|
346
|
-
this.height$ = height$;
|
|
347
|
-
}
|
|
348
|
-
TuiSheetsHostComponent.prototype.close = function (_a) {
|
|
349
|
-
var closeable = _a.closeable, $implicit = _a.$implicit;
|
|
350
|
-
if (closeable) {
|
|
351
|
-
$implicit.complete();
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
TuiSheetsHostComponent.ctorParameters = function () { return [
|
|
355
|
-
{ type: undefined, decorators: [{ type: Inject, args: [TUI_ANIMATION_OPTIONS,] }] },
|
|
356
|
-
{ type: TuiSheetService, decorators: [{ type: Inject, args: [TuiSheetService,] }] },
|
|
357
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_WINDOW_HEIGHT,] }] }
|
|
358
|
-
]; };
|
|
359
|
-
TuiSheetsHostComponent = __decorate([
|
|
360
|
-
Component({
|
|
361
|
-
selector: 'tui-sheets-host',
|
|
362
|
-
template: "<ng-container *ngIf=\"service.sheets$ | async as items\">\n <div\n *ngFor=\"let item of items\"\n class=\"t-wrapper\"\n [@tuiSlideInTop]=\"options\"\n [@tuiFadeIn]=\"options\"\n [tuiSheetWrapper]=\"item.offset\"\n [class.t-wrapper_overlay]=\"item.overlay\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n (click.self)=\"close(item)\"\n >\n <tui-sheet\n tuiScrollRef\n tuiOverscroll=\"all\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n [item]=\"item\"\n (close)=\"close(item)\"\n ></tui-sheet>\n </div>\n <div\n class=\"t-overlay\"\n (click)=\"close(items[0])\"\n ></div>\n</ng-container>\n",
|
|
363
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
364
|
-
animations: [tuiSlideInTop, tuiFadeIn],
|
|
365
|
-
styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}._overlay~.t-overlay,.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100%;overflow:hidden}.t-wrapper._overlay,.t-wrapper._visible,.t-wrapper_overlay{overflow:visible}"]
|
|
366
|
-
}),
|
|
367
|
-
__param(0, Inject(TUI_ANIMATION_OPTIONS)),
|
|
368
|
-
__param(1, Inject(TuiSheetService)),
|
|
369
|
-
__param(2, Inject(TUI_WINDOW_HEIGHT))
|
|
370
|
-
], TuiSheetsHostComponent);
|
|
371
|
-
return TuiSheetsHostComponent;
|
|
372
|
-
}());
|
|
373
|
-
|
|
374
|
-
// @dynamic
|
|
375
|
-
var TuiSheetCloseDirective = /** @class */ (function () {
|
|
376
|
-
function TuiSheetCloseDirective(ngZone, dragged$, scroll$, windowRef, elementRef, sheet) {
|
|
377
|
-
var _this = this;
|
|
378
|
-
this.ngZone = ngZone;
|
|
379
|
-
this.dragged$ = dragged$;
|
|
380
|
-
this.scroll$ = scroll$;
|
|
381
|
-
this.windowRef = windowRef;
|
|
382
|
-
this.elementRef = elementRef;
|
|
383
|
-
this.sheet = sheet;
|
|
384
|
-
this.close = merge(typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(startWith(false), switchMap(function (dragged) {
|
|
385
|
-
return dragged
|
|
386
|
-
? EMPTY
|
|
387
|
-
: _this.scroll$.pipe(startWith(_this.elementRef.nativeElement.scrollTop));
|
|
388
|
-
}), filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), distinctUntilChanged(), tuiZonefull(this.ngZone)));
|
|
389
|
-
}
|
|
390
|
-
TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
|
|
391
|
-
var height = Math.min(this.windowRef.innerHeight, this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight);
|
|
392
|
-
var min = Math.min(height, this.sheet.stops[0] || Infinity);
|
|
393
|
-
return scrollTop < min / 2;
|
|
394
|
-
};
|
|
395
|
-
TuiSheetCloseDirective.ctorParameters = function () { return [
|
|
396
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
397
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_DRAGGED,] }] },
|
|
398
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
399
|
-
{ type: Window, decorators: [{ type: Inject, args: [WINDOW,] }] },
|
|
400
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
401
|
-
{ type: TuiSheetComponent, decorators: [{ type: Inject, args: [TuiSheetComponent,] }] }
|
|
402
|
-
]; };
|
|
403
|
-
__decorate([
|
|
404
|
-
Output()
|
|
405
|
-
], TuiSheetCloseDirective.prototype, "close", void 0);
|
|
406
|
-
TuiSheetCloseDirective = __decorate([
|
|
407
|
-
Directive({
|
|
408
|
-
selector: 'tui-sheet[close]',
|
|
409
|
-
}),
|
|
410
|
-
__param(0, Inject(NgZone)),
|
|
411
|
-
__param(1, Inject(TUI_SHEET_DRAGGED)),
|
|
412
|
-
__param(2, Inject(TUI_SHEET_SCROLL)),
|
|
413
|
-
__param(3, Inject(WINDOW)),
|
|
414
|
-
__param(4, Inject(ElementRef)),
|
|
415
|
-
__param(5, Inject(TuiSheetComponent))
|
|
416
|
-
], TuiSheetCloseDirective);
|
|
417
|
-
return TuiSheetCloseDirective;
|
|
418
|
-
}());
|
|
419
|
-
|
|
420
|
-
var TuiSheetStopDirective = /** @class */ (function () {
|
|
421
|
-
function TuiSheetStopDirective(elementRef, destroy$, dragged$, scroll$, _a) {
|
|
422
|
-
var nativeElement = _a.nativeElement;
|
|
423
|
-
scroll$
|
|
424
|
-
.pipe(map(function (y) { return Math.floor(y) > elementRef.nativeElement.offsetTop; }), distinctUntilChanged(), withLatestFrom(dragged$), map(function (_a) {
|
|
425
|
-
var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
|
|
426
|
-
return !above && !dragged;
|
|
427
|
-
}), filter(Boolean), throttleTime(100), takeUntil(destroy$))
|
|
428
|
-
.subscribe(function () {
|
|
429
|
-
nativeElement.style.overflow = 'hidden';
|
|
430
|
-
nativeElement.classList.remove('_stuck'); // iOS
|
|
431
|
-
nativeElement.scrollTop = elementRef.nativeElement.offsetTop;
|
|
432
|
-
setTimeout(function () {
|
|
433
|
-
nativeElement.style.overflow = '';
|
|
434
|
-
}, 100);
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
TuiSheetStopDirective.ctorParameters = function () { return [
|
|
438
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
439
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
440
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_DRAGGED,] }] },
|
|
441
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
442
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [TUI_SCROLL_REF,] }] }
|
|
443
|
-
]; };
|
|
444
|
-
TuiSheetStopDirective = __decorate([
|
|
445
|
-
Directive({
|
|
446
|
-
selector: '[tuiSheetStop]',
|
|
447
|
-
providers: [TuiDestroyService],
|
|
448
|
-
}),
|
|
449
|
-
__param(0, Inject(ElementRef)),
|
|
450
|
-
__param(1, Inject(TuiDestroyService)),
|
|
451
|
-
__param(2, Inject(TUI_SHEET_DRAGGED)),
|
|
452
|
-
__param(3, Inject(TUI_SHEET_SCROLL)),
|
|
453
|
-
__param(4, Inject(TUI_SCROLL_REF))
|
|
454
|
-
], TuiSheetStopDirective);
|
|
455
|
-
return TuiSheetStopDirective;
|
|
456
|
-
}());
|
|
457
|
-
|
|
458
|
-
// So that borders get rounded when image is visible for at least 10px
|
|
459
|
-
var OFFSET = 10;
|
|
460
|
-
// @dynamic
|
|
461
|
-
var TuiSheetTopDirective = /** @class */ (function () {
|
|
462
|
-
function TuiSheetTopDirective(scroll$, component, windowRef) {
|
|
463
|
-
var _this = this;
|
|
464
|
-
this.scroll$ = scroll$;
|
|
465
|
-
this.component = component;
|
|
466
|
-
this.windowRef = windowRef;
|
|
467
|
-
this.stop = 0;
|
|
468
|
-
this.transform$ = this.scroll$.pipe(map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
|
|
469
|
-
this.rounded$ = this.scroll$.pipe(map(function (y) { return y < _this.stop + OFFSET; }));
|
|
470
|
-
this.clickthrough$ = this.scroll$.pipe(map(function (y) { return !!Math.round(_this.getY(y)); }));
|
|
471
|
-
}
|
|
472
|
-
TuiSheetTopDirective.prototype.getY = function (scrollTop) {
|
|
473
|
-
var value = scrollTop - this.stop;
|
|
474
|
-
var total = this.windowRef.innerHeight - this.component.item.offset - this.stop;
|
|
475
|
-
return this.stop && clamp(100 - (value / total) * 100, 0, 100);
|
|
476
|
-
};
|
|
477
|
-
TuiSheetTopDirective.ctorParameters = function () { return [
|
|
478
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
479
|
-
{ type: TuiSheetComponent, decorators: [{ type: Inject, args: [forwardRef(function () { return TuiSheetComponent; }),] }] },
|
|
480
|
-
{ type: Window, decorators: [{ type: Inject, args: [WINDOW,] }] }
|
|
481
|
-
]; };
|
|
482
|
-
__decorate([
|
|
483
|
-
Input('tuiSheetTop'),
|
|
484
|
-
tuiDefaultProp()
|
|
485
|
-
], TuiSheetTopDirective.prototype, "stop", void 0);
|
|
486
|
-
TuiSheetTopDirective = __decorate([
|
|
487
|
-
Directive({
|
|
488
|
-
selector: '[tuiSheetTop]',
|
|
489
|
-
host: {
|
|
490
|
-
'[$.style.transform]': 'transform$',
|
|
491
|
-
'($.style.transform)': 'transform$',
|
|
492
|
-
'[$.class._rounded]': 'rounded$',
|
|
493
|
-
'($.class._rounded)': 'rounded$',
|
|
494
|
-
'[$.class._clickthrough]': 'clickthrough$',
|
|
495
|
-
'($.class._clickthrough)': 'clickthrough$',
|
|
496
|
-
},
|
|
497
|
-
}),
|
|
498
|
-
__param(0, Inject(TUI_SHEET_SCROLL)),
|
|
499
|
-
__param(1, Inject(forwardRef(function () { return TuiSheetComponent; }))),
|
|
500
|
-
__param(2, Inject(WINDOW))
|
|
501
|
-
], TuiSheetTopDirective);
|
|
502
|
-
return TuiSheetTopDirective;
|
|
503
|
-
}());
|
|
504
|
-
|
|
505
|
-
// Safety offset for shadow
|
|
506
|
-
var OFFSET$1 = 16;
|
|
507
|
-
// @dynamic
|
|
508
|
-
var TuiSheetWrapperDirective = /** @class */ (function () {
|
|
509
|
-
function TuiSheetWrapperDirective(windowRef) {
|
|
510
|
-
this.windowRef = windowRef;
|
|
511
|
-
this.tuiSheetWrapper = 16;
|
|
512
|
-
// Trying to get overflow: visible as early as possible for Safari
|
|
513
|
-
this.touched = false;
|
|
514
|
-
}
|
|
515
|
-
Object.defineProperty(TuiSheetWrapperDirective.prototype, "overlay$", {
|
|
516
|
-
get: function () {
|
|
517
|
-
var _this = this;
|
|
518
|
-
return this.scroll$.pipe(map(function (y) { return y + 16 > _this.windowRef.innerHeight - _this.tuiSheetWrapper; }));
|
|
519
|
-
},
|
|
520
|
-
enumerable: true,
|
|
521
|
-
configurable: true
|
|
522
|
-
});
|
|
523
|
-
Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
|
|
524
|
-
get: function () {
|
|
525
|
-
return processDragged(this.dragged$, this.scroll$);
|
|
526
|
-
},
|
|
527
|
-
enumerable: true,
|
|
528
|
-
configurable: true
|
|
529
|
-
});
|
|
530
|
-
Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
|
|
531
|
-
get: function () {
|
|
532
|
-
return this.scroll$.pipe(map(this.getHeight.bind(this)));
|
|
533
|
-
},
|
|
534
|
-
enumerable: true,
|
|
535
|
-
configurable: true
|
|
536
|
-
});
|
|
537
|
-
TuiSheetWrapperDirective.prototype.getHeight = function (value) {
|
|
538
|
-
var _a;
|
|
539
|
-
return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay) ? null
|
|
540
|
-
: clamp(this.withImage(value) + OFFSET$1, OFFSET$1, this.windowRef.innerHeight);
|
|
541
|
-
};
|
|
542
|
-
TuiSheetWrapperDirective.prototype.withImage = function (value) {
|
|
543
|
-
var _a;
|
|
544
|
-
return !((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.imageStop) || Math.floor(value) > this.sheet.imageStop
|
|
545
|
-
? value
|
|
546
|
-
: value - this.sheet.imageHeight;
|
|
547
|
-
};
|
|
548
|
-
TuiSheetWrapperDirective.ctorParameters = function () { return [
|
|
549
|
-
{ type: Window, decorators: [{ type: Inject, args: [WINDOW,] }] }
|
|
550
|
-
]; };
|
|
551
|
-
__decorate([
|
|
552
|
-
ContentChild(TuiSheetComponent)
|
|
553
|
-
], TuiSheetWrapperDirective.prototype, "sheet", void 0);
|
|
554
|
-
__decorate([
|
|
555
|
-
ContentChild(TuiSheetComponent, { read: TUI_SHEET_DRAGGED })
|
|
556
|
-
], TuiSheetWrapperDirective.prototype, "dragged$", void 0);
|
|
557
|
-
__decorate([
|
|
558
|
-
ContentChild(TuiSheetComponent, { read: TUI_SHEET_SCROLL })
|
|
559
|
-
], TuiSheetWrapperDirective.prototype, "scroll$", void 0);
|
|
560
|
-
__decorate([
|
|
561
|
-
Input()
|
|
562
|
-
], TuiSheetWrapperDirective.prototype, "tuiSheetWrapper", void 0);
|
|
563
|
-
__decorate([
|
|
564
|
-
tuiPure
|
|
565
|
-
], TuiSheetWrapperDirective.prototype, "overlay$", null);
|
|
566
|
-
__decorate([
|
|
567
|
-
tuiPure
|
|
568
|
-
], TuiSheetWrapperDirective.prototype, "visible$", null);
|
|
569
|
-
__decorate([
|
|
570
|
-
tuiPure
|
|
571
|
-
], TuiSheetWrapperDirective.prototype, "height$", null);
|
|
572
|
-
TuiSheetWrapperDirective = __decorate([
|
|
573
|
-
Directive({
|
|
574
|
-
selector: '[tuiSheetWrapper]',
|
|
575
|
-
host: {
|
|
576
|
-
'[$.class._overlay]': 'overlay$',
|
|
577
|
-
'($.class._overlay)': 'overlay$',
|
|
578
|
-
'[$.class._visible]': 'visible$',
|
|
579
|
-
'($.class._visible)': 'visible$',
|
|
580
|
-
'[$.style.height.px]': 'height$',
|
|
581
|
-
'($.style.height.px)': 'height$',
|
|
582
|
-
},
|
|
583
|
-
}),
|
|
584
|
-
__param(0, Inject(WINDOW))
|
|
585
|
-
], TuiSheetWrapperDirective);
|
|
586
|
-
return TuiSheetWrapperDirective;
|
|
587
|
-
}());
|
|
588
|
-
|
|
589
|
-
var TuiSheetDirective = /** @class */ (function (_super) {
|
|
590
|
-
__extends(TuiSheetDirective, _super);
|
|
591
|
-
function TuiSheetDirective(changeDetectorRef, templateRef, service) {
|
|
592
|
-
var _this = _super.call(this, templateRef, changeDetectorRef) || this;
|
|
593
|
-
_this.service = service;
|
|
594
|
-
_this.open$ = new Subject();
|
|
595
|
-
_this.options = {};
|
|
596
|
-
_this.tuiSheetChange = _this.open$.pipe(switchMap(function (open) {
|
|
597
|
-
return open
|
|
598
|
-
? _this.service
|
|
599
|
-
.open(_this, _this.options)
|
|
600
|
-
.pipe(ignoreElements(), endWith(false))
|
|
601
|
-
: EMPTY;
|
|
602
|
-
}));
|
|
603
|
-
return _this;
|
|
604
|
-
}
|
|
605
|
-
Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
|
|
606
|
-
set: function (open) {
|
|
607
|
-
this.open$.next(open);
|
|
608
|
-
},
|
|
609
|
-
enumerable: true,
|
|
610
|
-
configurable: true
|
|
611
|
-
});
|
|
612
|
-
TuiSheetDirective.ctorParameters = function () { return [
|
|
613
|
-
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
614
|
-
{ type: TemplateRef, decorators: [{ type: Inject, args: [TemplateRef,] }] },
|
|
615
|
-
{ type: TuiSheetService, decorators: [{ type: Inject, args: [TuiSheetService,] }] }
|
|
616
|
-
]; };
|
|
617
|
-
__decorate([
|
|
618
|
-
Input('tuiSheetOptions'),
|
|
619
|
-
tuiDefaultProp()
|
|
620
|
-
], TuiSheetDirective.prototype, "options", void 0);
|
|
621
|
-
__decorate([
|
|
622
|
-
Input(),
|
|
623
|
-
tuiRequiredSetter()
|
|
624
|
-
], TuiSheetDirective.prototype, "tuiSheet", null);
|
|
625
|
-
__decorate([
|
|
626
|
-
Output()
|
|
627
|
-
], TuiSheetDirective.prototype, "tuiSheetChange", void 0);
|
|
628
|
-
TuiSheetDirective = __decorate([
|
|
629
|
-
Directive({
|
|
630
|
-
selector: 'ng-template[tuiSheet]',
|
|
631
|
-
}),
|
|
632
|
-
__param(0, Inject(ChangeDetectorRef)),
|
|
633
|
-
__param(1, Inject(TemplateRef)),
|
|
634
|
-
__param(2, Inject(TuiSheetService))
|
|
635
|
-
], TuiSheetDirective);
|
|
636
|
-
return TuiSheetDirective;
|
|
637
|
-
}(PolymorpheusTemplate));
|
|
638
|
-
|
|
639
|
-
var TuiSheetModule = /** @class */ (function () {
|
|
640
|
-
function TuiSheetModule() {
|
|
641
|
-
}
|
|
642
|
-
TuiSheetModule = __decorate([
|
|
643
|
-
NgModule({
|
|
644
|
-
imports: [
|
|
645
|
-
CommonModule,
|
|
646
|
-
PolymorpheusModule,
|
|
647
|
-
TuiLetModule,
|
|
648
|
-
TuiButtonModule,
|
|
649
|
-
TuiOverscrollModule,
|
|
650
|
-
TuiScrollbarModule,
|
|
651
|
-
],
|
|
652
|
-
declarations: [
|
|
653
|
-
TuiSheetsHostComponent,
|
|
654
|
-
TuiSheetComponent,
|
|
655
|
-
TuiSheetBarComponent,
|
|
656
|
-
TuiSheetHeadingComponent,
|
|
657
|
-
TuiSheetTopDirective,
|
|
658
|
-
TuiSheetDirective,
|
|
659
|
-
TuiSheetWrapperDirective,
|
|
660
|
-
TuiSheetCloseDirective,
|
|
661
|
-
TuiSheetStopDirective,
|
|
662
|
-
],
|
|
663
|
-
exports: [
|
|
664
|
-
TuiSheetsHostComponent,
|
|
665
|
-
TuiSheetComponent,
|
|
666
|
-
TuiSheetHeadingComponent,
|
|
667
|
-
TuiSheetDirective,
|
|
668
|
-
],
|
|
669
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
670
|
-
})
|
|
671
|
-
], TuiSheetModule);
|
|
672
|
-
return TuiSheetModule;
|
|
673
|
-
}());
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* Generated bundle index. Do not edit.
|
|
677
|
-
*/
|
|
678
|
-
|
|
679
|
-
export { TUI_SHEET_CLOSE, TUI_SHEET_DEFAULT_OPTIONS, TUI_SHEET_DRAGGED, TUI_SHEET_ID, TUI_SHEET_OFFSET, TUI_SHEET_OPTIONS, TUI_SHEET_PROVIDERS, TUI_SHEET_SCROLL, TuiSheetBarComponent, TuiSheetCloseDirective, TuiSheetComponent, TuiSheetDirective, TuiSheetHeadingComponent, TuiSheetModule, TuiSheetService, TuiSheetStopDirective, TuiSheetTopDirective, TuiSheetWrapperDirective, TuiSheetsHostComponent, fakeSmoothScroll, iosScrollFactory, processDragged, sheetDraggedFactory, sheetScrollFactory };
|
|
680
|
-
//# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.js.map
|