@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,298 +1,405 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs'), require('rxjs
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/sheet', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs', 'rxjs
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs/operators'), require('rxjs'), require('@angular/common'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/sheet', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs/operators', 'rxjs', '@angular/common', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus'], 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.sheet = {}), global.ng.core, global.i3, global.i1$1, global.kit, global.rxjs.operators, global.rxjs, global.ng.common, global.common, global.i5));
|
|
5
|
+
})(this, (function (exports, i0, i3, i1$1, kit, operators, i1, i2, common, i5) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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 i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
27
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
28
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
31
|
+
|
|
32
|
+
/******************************************************************************
|
|
33
|
+
Copyright (c) Microsoft Corporation.
|
|
34
|
+
|
|
35
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
36
|
+
purpose with or without fee is hereby granted.
|
|
37
|
+
|
|
38
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
39
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
40
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
41
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
42
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
43
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
44
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
45
|
+
***************************************************************************** */
|
|
46
|
+
/* global Reflect, Promise */
|
|
47
|
+
var extendStatics = function (d, b) {
|
|
48
|
+
extendStatics = Object.setPrototypeOf ||
|
|
49
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
50
|
+
function (d, b) { for (var p in b)
|
|
51
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
52
|
+
d[p] = b[p]; };
|
|
53
|
+
return extendStatics(d, b);
|
|
54
|
+
};
|
|
55
|
+
function __extends(d, b) {
|
|
56
|
+
if (typeof b !== "function" && b !== null)
|
|
57
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
58
|
+
extendStatics(d, b);
|
|
59
|
+
function __() { this.constructor = d; }
|
|
60
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
61
|
+
}
|
|
62
|
+
var __assign = function () {
|
|
63
|
+
__assign = Object.assign || function __assign(t) {
|
|
64
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
65
|
+
s = arguments[i];
|
|
66
|
+
for (var p in s)
|
|
67
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
68
|
+
t[p] = s[p];
|
|
69
|
+
}
|
|
70
|
+
return t;
|
|
71
|
+
};
|
|
72
|
+
return __assign.apply(this, arguments);
|
|
73
|
+
};
|
|
74
|
+
function __rest(s, e) {
|
|
75
|
+
var t = {};
|
|
76
|
+
for (var p in s)
|
|
77
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
78
|
+
t[p] = s[p];
|
|
79
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
80
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
81
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
82
|
+
t[p[i]] = s[p[i]];
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
}
|
|
86
|
+
function __decorate(decorators, target, key, desc) {
|
|
87
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
88
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
89
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
90
|
+
else
|
|
91
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
92
|
+
if (d = decorators[i])
|
|
93
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
94
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
95
|
+
}
|
|
96
|
+
function __param(paramIndex, decorator) {
|
|
97
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
98
|
+
}
|
|
99
|
+
function __metadata(metadataKey, metadataValue) {
|
|
100
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
101
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
102
|
+
}
|
|
103
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
104
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
105
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
106
|
+
function fulfilled(value) { try {
|
|
107
|
+
step(generator.next(value));
|
|
108
|
+
}
|
|
109
|
+
catch (e) {
|
|
110
|
+
reject(e);
|
|
111
|
+
} }
|
|
112
|
+
function rejected(value) { try {
|
|
113
|
+
step(generator["throw"](value));
|
|
114
|
+
}
|
|
115
|
+
catch (e) {
|
|
116
|
+
reject(e);
|
|
117
|
+
} }
|
|
118
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
119
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function __generator(thisArg, body) {
|
|
123
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
124
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
125
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
126
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
127
|
+
function step(op) {
|
|
128
|
+
if (f)
|
|
129
|
+
throw new TypeError("Generator is already executing.");
|
|
130
|
+
while (_)
|
|
131
|
+
try {
|
|
132
|
+
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)
|
|
133
|
+
return t;
|
|
134
|
+
if (y = 0, t)
|
|
135
|
+
op = [op[0] & 2, t.value];
|
|
136
|
+
switch (op[0]) {
|
|
137
|
+
case 0:
|
|
138
|
+
case 1:
|
|
139
|
+
t = op;
|
|
140
|
+
break;
|
|
141
|
+
case 4:
|
|
142
|
+
_.label++;
|
|
143
|
+
return { value: op[1], done: false };
|
|
144
|
+
case 5:
|
|
145
|
+
_.label++;
|
|
146
|
+
y = op[1];
|
|
147
|
+
op = [0];
|
|
148
|
+
continue;
|
|
149
|
+
case 7:
|
|
150
|
+
op = _.ops.pop();
|
|
151
|
+
_.trys.pop();
|
|
152
|
+
continue;
|
|
153
|
+
default:
|
|
154
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
155
|
+
_ = 0;
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
159
|
+
_.label = op[1];
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
163
|
+
_.label = t[1];
|
|
164
|
+
t = op;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
if (t && _.label < t[2]) {
|
|
168
|
+
_.label = t[2];
|
|
169
|
+
_.ops.push(op);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
if (t[2])
|
|
173
|
+
_.ops.pop();
|
|
174
|
+
_.trys.pop();
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
op = body.call(thisArg, _);
|
|
178
|
+
}
|
|
179
|
+
catch (e) {
|
|
180
|
+
op = [6, e];
|
|
181
|
+
y = 0;
|
|
182
|
+
}
|
|
183
|
+
finally {
|
|
184
|
+
f = t = 0;
|
|
185
|
+
}
|
|
186
|
+
if (op[0] & 5)
|
|
187
|
+
throw op[1];
|
|
188
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
192
|
+
if (k2 === undefined)
|
|
193
|
+
k2 = k;
|
|
194
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
195
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
196
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
197
|
+
}
|
|
198
|
+
Object.defineProperty(o, k2, desc);
|
|
199
|
+
}) : (function (o, m, k, k2) {
|
|
200
|
+
if (k2 === undefined)
|
|
201
|
+
k2 = k;
|
|
202
|
+
o[k2] = m[k];
|
|
203
|
+
});
|
|
204
|
+
function __exportStar(m, o) {
|
|
205
|
+
for (var p in m)
|
|
206
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
207
|
+
__createBinding(o, m, p);
|
|
208
|
+
}
|
|
209
|
+
function __values(o) {
|
|
210
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
211
|
+
if (m)
|
|
212
|
+
return m.call(o);
|
|
213
|
+
if (o && typeof o.length === "number")
|
|
214
|
+
return {
|
|
215
|
+
next: function () {
|
|
216
|
+
if (o && i >= o.length)
|
|
217
|
+
o = void 0;
|
|
218
|
+
return { value: o && o[i++], done: !o };
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
222
|
+
}
|
|
223
|
+
function __read(o, n) {
|
|
224
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
225
|
+
if (!m)
|
|
226
|
+
return o;
|
|
227
|
+
var i = m.call(o), r, ar = [], e;
|
|
228
|
+
try {
|
|
229
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
230
|
+
ar.push(r.value);
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
e = { error: error };
|
|
234
|
+
}
|
|
235
|
+
finally {
|
|
236
|
+
try {
|
|
237
|
+
if (r && !r.done && (m = i["return"]))
|
|
238
|
+
m.call(i);
|
|
239
|
+
}
|
|
240
|
+
finally {
|
|
241
|
+
if (e)
|
|
242
|
+
throw e.error;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return ar;
|
|
246
|
+
}
|
|
247
|
+
/** @deprecated */
|
|
248
|
+
function __spread() {
|
|
249
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
250
|
+
ar = ar.concat(__read(arguments[i]));
|
|
251
|
+
return ar;
|
|
252
|
+
}
|
|
253
|
+
/** @deprecated */
|
|
254
|
+
function __spreadArrays() {
|
|
255
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
256
|
+
s += arguments[i].length;
|
|
257
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
258
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
259
|
+
r[k] = a[j];
|
|
260
|
+
return r;
|
|
261
|
+
}
|
|
262
|
+
function __spreadArray(to, from, pack) {
|
|
263
|
+
if (pack || arguments.length === 2)
|
|
264
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
265
|
+
if (ar || !(i in from)) {
|
|
266
|
+
if (!ar)
|
|
267
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
268
|
+
ar[i] = from[i];
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
272
|
+
}
|
|
273
|
+
function __await(v) {
|
|
274
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
275
|
+
}
|
|
276
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
277
|
+
if (!Symbol.asyncIterator)
|
|
278
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
279
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
280
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
281
|
+
function verb(n) { if (g[n])
|
|
282
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
283
|
+
function resume(n, v) { try {
|
|
284
|
+
step(g[n](v));
|
|
285
|
+
}
|
|
286
|
+
catch (e) {
|
|
287
|
+
settle(q[0][3], e);
|
|
288
|
+
} }
|
|
289
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
290
|
+
function fulfill(value) { resume("next", value); }
|
|
291
|
+
function reject(value) { resume("throw", value); }
|
|
292
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
293
|
+
resume(q[0][0], q[0][1]); }
|
|
294
|
+
}
|
|
295
|
+
function __asyncDelegator(o) {
|
|
296
|
+
var i, p;
|
|
297
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
298
|
+
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; }
|
|
299
|
+
}
|
|
300
|
+
function __asyncValues(o) {
|
|
301
|
+
if (!Symbol.asyncIterator)
|
|
302
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
303
|
+
var m = o[Symbol.asyncIterator], i;
|
|
304
|
+
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);
|
|
305
|
+
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); }); }; }
|
|
306
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
307
|
+
}
|
|
308
|
+
function __makeTemplateObject(cooked, raw) {
|
|
309
|
+
if (Object.defineProperty) {
|
|
310
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
cooked.raw = raw;
|
|
314
|
+
}
|
|
315
|
+
return cooked;
|
|
316
|
+
}
|
|
317
|
+
;
|
|
318
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
319
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
320
|
+
}) : function (o, v) {
|
|
321
|
+
o["default"] = v;
|
|
322
|
+
};
|
|
323
|
+
function __importStar(mod) {
|
|
324
|
+
if (mod && mod.__esModule)
|
|
325
|
+
return mod;
|
|
326
|
+
var result = {};
|
|
327
|
+
if (mod != null)
|
|
328
|
+
for (var k in mod)
|
|
329
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
330
|
+
__createBinding(result, mod, k);
|
|
331
|
+
__setModuleDefault(result, mod);
|
|
332
|
+
return result;
|
|
333
|
+
}
|
|
334
|
+
function __importDefault(mod) {
|
|
335
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
336
|
+
}
|
|
337
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
338
|
+
if (kind === "a" && !f)
|
|
339
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
340
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
341
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
342
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
343
|
+
}
|
|
344
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
345
|
+
if (kind === "m")
|
|
346
|
+
throw new TypeError("Private method is not writable");
|
|
347
|
+
if (kind === "a" && !f)
|
|
348
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
349
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
350
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
351
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
352
|
+
}
|
|
353
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
354
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
355
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
356
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
254
357
|
}
|
|
255
358
|
|
|
256
359
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
257
360
|
function iosScrollFactory(element, documentRef, ngZone) {
|
|
258
|
-
var load$ =
|
|
259
|
-
var touchstart$ =
|
|
260
|
-
var touchmove$ =
|
|
261
|
-
var touchend$ =
|
|
262
|
-
var scroll$ =
|
|
263
|
-
var result$ =
|
|
361
|
+
var load$ = i3.typedFromEvent(element, "load", { capture: true });
|
|
362
|
+
var touchstart$ = i3.typedFromEvent(element, "touchstart", { passive: true });
|
|
363
|
+
var touchmove$ = i3.typedFromEvent(documentRef, "touchmove", { passive: true });
|
|
364
|
+
var touchend$ = i3.typedFromEvent(documentRef, "touchend");
|
|
365
|
+
var scroll$ = i3.typedFromEvent(element, "scroll").pipe(operators.map(function () { return element.scrollTop; }));
|
|
366
|
+
var result$ = i1.merge(load$.pipe(operators.delay(0), operators.map(function () { return element.scrollTop; })), touchstart$.pipe(operators.switchMap(function (_a) {
|
|
264
367
|
var touches = _a.touches;
|
|
265
368
|
var screenY = touches[0].screenY;
|
|
266
369
|
var scrollTop = element.scrollTop;
|
|
267
|
-
return
|
|
370
|
+
return i1.concat(
|
|
268
371
|
// Sometimes touch is triggered without scroll in iOS, filter that
|
|
269
|
-
|
|
372
|
+
i1.zip(touchmove$, scroll$).pipe(operators.map(function (_a) {
|
|
270
373
|
var _b = __read(_a, 1), touches = _b[0].touches;
|
|
271
374
|
return scrollTop + screenY - touches[0].screenY;
|
|
272
375
|
}), operators.takeUntil(touchend$)), scroll$);
|
|
273
376
|
})));
|
|
274
|
-
return
|
|
377
|
+
return i1.concat(scroll$.pipe(operators.take(1)), result$).pipe(i3.tuiZonefree(ngZone), operators.share());
|
|
275
378
|
}
|
|
276
379
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
277
380
|
function processDragged(dragged$, scroll$) {
|
|
278
381
|
var touchstart$ = dragged$.pipe(operators.filter(Boolean));
|
|
279
382
|
var touchend$ = dragged$.pipe(operators.filter(function (v) { return !v; }));
|
|
280
|
-
var race$ =
|
|
383
|
+
var race$ = i1.race(scroll$, i1.timer(100)).pipe(operators.debounceTime(200), operators.take(1), operators.mapTo(false));
|
|
281
384
|
return touchstart$.pipe(operators.switchMapTo(touchend$.pipe(operators.switchMapTo(race$), operators.startWith(true))), operators.startWith(false));
|
|
282
385
|
}
|
|
283
386
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
284
387
|
function fakeSmoothScroll(_a, offset) {
|
|
285
388
|
var style = _a.style;
|
|
286
|
-
style.transition =
|
|
389
|
+
style.transition = "none";
|
|
287
390
|
style.transform = "scaleX(-1) translate3d(0, " + offset + "px, 0)";
|
|
288
391
|
setTimeout(function () {
|
|
289
|
-
style.transition =
|
|
290
|
-
style.transform =
|
|
392
|
+
style.transition = "";
|
|
393
|
+
style.transform = "";
|
|
291
394
|
});
|
|
292
395
|
}
|
|
293
396
|
|
|
294
|
-
var
|
|
295
|
-
var
|
|
397
|
+
var TUI_SHEET = new i0.InjectionToken("[TUI_SHEET] Sheet main component");
|
|
398
|
+
var TUI_SHEET_SCROLL = new i0.InjectionToken("Current scrollTop of a sheet");
|
|
399
|
+
var TUI_SHEET_DRAGGED = new i0.InjectionToken("The sheet is being dragged");
|
|
400
|
+
|
|
401
|
+
var TUI_SHEET_CLOSE = "tui-sheet-close";
|
|
402
|
+
var TUI_SHEET_ID = "tui-sheet-id";
|
|
296
403
|
var TuiSheetHeadingComponent = /** @class */ (function () {
|
|
297
404
|
function TuiSheetHeadingComponent(idService, elementRef, closeWord$) {
|
|
298
405
|
this.idService = idService;
|
|
@@ -306,60 +413,205 @@
|
|
|
306
413
|
TuiSheetHeadingComponent.prototype.onClick = function () {
|
|
307
414
|
this.elementRef.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
|
|
308
415
|
};
|
|
309
|
-
TuiSheetHeadingComponent.ctorParameters = function () { return [
|
|
310
|
-
{ type: cdk.TuiIdService, decorators: [{ type: core.Inject, args: [cdk.TuiIdService,] }] },
|
|
311
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
312
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [core$1.TUI_CLOSE_WORD,] }] }
|
|
313
|
-
]; };
|
|
314
|
-
TuiSheetHeadingComponent = __decorate([
|
|
315
|
-
core.Component({
|
|
316
|
-
selector: '[tuiSheetHeading]',
|
|
317
|
-
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",
|
|
318
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
319
|
-
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}"]
|
|
320
|
-
}),
|
|
321
|
-
__param(0, core.Inject(cdk.TuiIdService)),
|
|
322
|
-
__param(1, core.Inject(core.ElementRef)),
|
|
323
|
-
__param(2, core.Inject(core$1.TUI_CLOSE_WORD))
|
|
324
|
-
], TuiSheetHeadingComponent);
|
|
325
416
|
return TuiSheetHeadingComponent;
|
|
326
417
|
}());
|
|
418
|
+
TuiSheetHeadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetHeadingComponent, deps: [{ token: i3.TuiIdService }, { token: i0.ElementRef }, { token: i1$1.TUI_CLOSE_WORD }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
419
|
+
TuiSheetHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]", ngImport: i0__namespace, 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", 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}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
420
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetHeadingComponent, decorators: [{
|
|
421
|
+
type: i0.Component,
|
|
422
|
+
args: [{
|
|
423
|
+
selector: "[tuiSheetHeading]",
|
|
424
|
+
templateUrl: "sheet-heading.template.html",
|
|
425
|
+
styleUrls: ["sheet-heading.style.less"],
|
|
426
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
427
|
+
}]
|
|
428
|
+
}], ctorParameters: function () {
|
|
429
|
+
return [{ type: i3__namespace.TuiIdService, decorators: [{
|
|
430
|
+
type: i0.Inject,
|
|
431
|
+
args: [i3.TuiIdService]
|
|
432
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
433
|
+
type: i0.Inject,
|
|
434
|
+
args: [i0.ElementRef]
|
|
435
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
436
|
+
type: i0.Inject,
|
|
437
|
+
args: [i1$1.TUI_CLOSE_WORD]
|
|
438
|
+
}] }];
|
|
439
|
+
} });
|
|
327
440
|
|
|
328
|
-
var TUI_SHEET_SCROLL = new core.InjectionToken('Current scrollTop of a sheet');
|
|
329
|
-
var TUI_SHEET_DRAGGED = new core.InjectionToken('The sheet is being dragged');
|
|
330
|
-
/** @deprecated use option argument for each Sheet */
|
|
331
|
-
var TUI_SHEET_OFFSET = new core.InjectionToken('Offset from the top at which the sheet stops', {
|
|
332
|
-
factory: function () { return 16; },
|
|
333
|
-
});
|
|
334
441
|
var TUI_SHEET_PROVIDERS = [
|
|
335
442
|
{
|
|
336
443
|
provide: TUI_SHEET_DRAGGED,
|
|
337
|
-
deps: [
|
|
444
|
+
deps: [i0.ElementRef],
|
|
338
445
|
useFactory: sheetDraggedFactory,
|
|
339
446
|
},
|
|
340
447
|
{
|
|
341
448
|
provide: TUI_SHEET_SCROLL,
|
|
342
|
-
deps: [
|
|
449
|
+
deps: [i0.ElementRef, i0.NgZone, i2.DOCUMENT, i3.TUI_IS_IOS],
|
|
343
450
|
useFactory: sheetScrollFactory,
|
|
344
451
|
},
|
|
345
452
|
{
|
|
346
|
-
provide:
|
|
347
|
-
useExisting:
|
|
453
|
+
provide: i1$1.TUI_SCROLL_REF,
|
|
454
|
+
useExisting: i0.ElementRef,
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
provide: TUI_SHEET,
|
|
458
|
+
useExisting: i0.forwardRef(function () { return TuiSheetComponent; }),
|
|
348
459
|
},
|
|
349
460
|
];
|
|
350
461
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
351
462
|
function sheetDraggedFactory(_a) {
|
|
352
463
|
var nativeElement = _a.nativeElement;
|
|
353
|
-
return
|
|
464
|
+
return i1.merge(i3.typedFromEvent(nativeElement, "touchstart", { passive: true }).pipe(operators.mapTo(true)), i3.typedFromEvent(nativeElement, "touchend").pipe(operators.mapTo(false)));
|
|
354
465
|
}
|
|
355
466
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
356
467
|
function sheetScrollFactory(_a, ngZone, documentRef, isIos) {
|
|
357
468
|
var nativeElement = _a.nativeElement;
|
|
358
469
|
return isIos
|
|
359
470
|
? iosScrollFactory(nativeElement, documentRef, ngZone)
|
|
360
|
-
:
|
|
471
|
+
: i1.merge(i3.typedFromEvent(nativeElement, "scroll"), i3.typedFromEvent(nativeElement, "load", { capture: true })).pipe(operators.map(function () { return nativeElement.scrollTop; }), i3.tuiZonefree(ngZone), operators.share());
|
|
361
472
|
}
|
|
362
473
|
|
|
474
|
+
var TuiSheetBarComponent = /** @class */ (function () {
|
|
475
|
+
function TuiSheetBarComponent(sheet, scroll$, ngZone) {
|
|
476
|
+
var _this = this;
|
|
477
|
+
this.sheet = sheet;
|
|
478
|
+
this.scroll$ = scroll$;
|
|
479
|
+
this.ngZone = ngZone;
|
|
480
|
+
this.rotate$ = this.scroll$.pipe(i1$1.tuiZonefulMap(function (y) { return i3.clamp(10 - (y - _this.stop) / 5, 0, 10); }, this.ngZone));
|
|
481
|
+
}
|
|
482
|
+
Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
|
|
483
|
+
get: function () {
|
|
484
|
+
return this.sheet.stops[0] || 0;
|
|
485
|
+
},
|
|
486
|
+
enumerable: false,
|
|
487
|
+
configurable: true
|
|
488
|
+
});
|
|
489
|
+
return TuiSheetBarComponent;
|
|
490
|
+
}());
|
|
491
|
+
TuiSheetBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetBarComponent, deps: [{ token: TUI_SHEET }, { token: TUI_SHEET_SCROLL }, { token: i0.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
492
|
+
TuiSheetBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetBarComponent, selector: "tui-sheet-bar", ngImport: i0__namespace, 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", styles: [":host{transition-property:border-radius;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);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:.3s;transition-duration:var(--tui-duration, .3s);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}\n"], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
493
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetBarComponent, decorators: [{
|
|
494
|
+
type: i0.Component,
|
|
495
|
+
args: [{
|
|
496
|
+
selector: "tui-sheet-bar",
|
|
497
|
+
templateUrl: "sheet-bar.template.html",
|
|
498
|
+
styleUrls: ["sheet-bar.style.less"],
|
|
499
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
500
|
+
}]
|
|
501
|
+
}], ctorParameters: function () {
|
|
502
|
+
return [{ type: undefined, decorators: [{
|
|
503
|
+
type: i0.Inject,
|
|
504
|
+
args: [TUI_SHEET]
|
|
505
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
506
|
+
type: i0.Inject,
|
|
507
|
+
args: [TUI_SHEET_SCROLL]
|
|
508
|
+
}] }, { type: i0__namespace.NgZone, decorators: [{
|
|
509
|
+
type: i0.Inject,
|
|
510
|
+
args: [i0.NgZone]
|
|
511
|
+
}] }];
|
|
512
|
+
} });
|
|
513
|
+
|
|
514
|
+
// So that borders get rounded when image is visible for at least 10px
|
|
515
|
+
var OFFSET$1 = 10;
|
|
516
|
+
// @dynamic
|
|
517
|
+
var TuiSheetTopDirective = /** @class */ (function () {
|
|
518
|
+
function TuiSheetTopDirective(scroll$, component, windowRef) {
|
|
519
|
+
var _this = this;
|
|
520
|
+
this.scroll$ = scroll$;
|
|
521
|
+
this.component = component;
|
|
522
|
+
this.windowRef = windowRef;
|
|
523
|
+
this.stop = 0;
|
|
524
|
+
this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
|
|
525
|
+
this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET$1; }));
|
|
526
|
+
this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
|
|
527
|
+
}
|
|
528
|
+
TuiSheetTopDirective.prototype.getY = function (scrollTop) {
|
|
529
|
+
var value = scrollTop - this.stop;
|
|
530
|
+
var total = this.windowRef.innerHeight - this.component.item.offset - this.stop;
|
|
531
|
+
return this.stop && i3.clamp(100 - (value / total) * 100, 0, 100);
|
|
532
|
+
};
|
|
533
|
+
return TuiSheetTopDirective;
|
|
534
|
+
}());
|
|
535
|
+
TuiSheetTopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetTopDirective, deps: [{ token: TUI_SHEET_SCROLL }, { token: TUI_SHEET }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
536
|
+
TuiSheetTopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: { stop: ["tuiSheetTop", "stop"] }, host: { listeners: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" }, properties: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" } }, ngImport: i0__namespace });
|
|
537
|
+
__decorate([
|
|
538
|
+
i3.tuiDefaultProp()
|
|
539
|
+
], TuiSheetTopDirective.prototype, "stop", void 0);
|
|
540
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetTopDirective, decorators: [{
|
|
541
|
+
type: i0.Directive,
|
|
542
|
+
args: [{
|
|
543
|
+
selector: "[tuiSheetTop]",
|
|
544
|
+
host: {
|
|
545
|
+
'[$.style.transform]': "transform$",
|
|
546
|
+
'($.style.transform)': "transform$",
|
|
547
|
+
'[$.class._rounded]': "rounded$",
|
|
548
|
+
'($.class._rounded)': "rounded$",
|
|
549
|
+
'[$.class._clickthrough]': "clickthrough$",
|
|
550
|
+
'($.class._clickthrough)': "clickthrough$",
|
|
551
|
+
},
|
|
552
|
+
}]
|
|
553
|
+
}], ctorParameters: function () {
|
|
554
|
+
return [{ type: i1__namespace$1.Observable, decorators: [{
|
|
555
|
+
type: i0.Inject,
|
|
556
|
+
args: [TUI_SHEET_SCROLL]
|
|
557
|
+
}] }, { type: undefined, decorators: [{
|
|
558
|
+
type: i0.Inject,
|
|
559
|
+
args: [TUI_SHEET]
|
|
560
|
+
}] }, { type: Window, decorators: [{
|
|
561
|
+
type: i0.Inject,
|
|
562
|
+
args: [common.WINDOW]
|
|
563
|
+
}] }];
|
|
564
|
+
}, propDecorators: { stop: [{
|
|
565
|
+
type: i0.Input,
|
|
566
|
+
args: ["tuiSheetTop"]
|
|
567
|
+
}] } });
|
|
568
|
+
|
|
569
|
+
var TuiSheetStopDirective = /** @class */ (function () {
|
|
570
|
+
function TuiSheetStopDirective(elementRef, destroy$, dragged$, scroll$, _a) {
|
|
571
|
+
var nativeElement = _a.nativeElement;
|
|
572
|
+
scroll$
|
|
573
|
+
.pipe(operators.map(function (y) { return Math.floor(y) > elementRef.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
|
|
574
|
+
var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
|
|
575
|
+
return !above && !dragged;
|
|
576
|
+
}), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
|
|
577
|
+
.subscribe(function () {
|
|
578
|
+
nativeElement.style.overflow = "hidden";
|
|
579
|
+
nativeElement.classList.remove("_stuck"); // iOS
|
|
580
|
+
nativeElement.scrollTop = elementRef.nativeElement.offsetTop;
|
|
581
|
+
setTimeout(function () {
|
|
582
|
+
nativeElement.style.overflow = "";
|
|
583
|
+
}, 100);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
return TuiSheetStopDirective;
|
|
587
|
+
}());
|
|
588
|
+
TuiSheetStopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetStopDirective, deps: [{ token: i0.ElementRef }, { token: i3.TuiDestroyService }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: i1$1.TUI_SCROLL_REF }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
589
|
+
TuiSheetStopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [i3.TuiDestroyService], ngImport: i0__namespace });
|
|
590
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetStopDirective, decorators: [{
|
|
591
|
+
type: i0.Directive,
|
|
592
|
+
args: [{
|
|
593
|
+
selector: "[tuiSheetStop]",
|
|
594
|
+
providers: [i3.TuiDestroyService],
|
|
595
|
+
}]
|
|
596
|
+
}], ctorParameters: function () {
|
|
597
|
+
return [{ type: i0__namespace.ElementRef, decorators: [{
|
|
598
|
+
type: i0.Inject,
|
|
599
|
+
args: [i0.ElementRef]
|
|
600
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
601
|
+
type: i0.Inject,
|
|
602
|
+
args: [i3.TuiDestroyService]
|
|
603
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
604
|
+
type: i0.Inject,
|
|
605
|
+
args: [TUI_SHEET_DRAGGED]
|
|
606
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
607
|
+
type: i0.Inject,
|
|
608
|
+
args: [TUI_SHEET_SCROLL]
|
|
609
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
610
|
+
type: i0.Inject,
|
|
611
|
+
args: [i1$1.TUI_SCROLL_REF]
|
|
612
|
+
}] }];
|
|
613
|
+
} });
|
|
614
|
+
|
|
363
615
|
// @dynamic
|
|
364
616
|
var TuiSheetComponent = /** @class */ (function () {
|
|
365
617
|
function TuiSheetComponent(scroll$, elementRef, ngZone, isIos, moreWord$) {
|
|
@@ -369,43 +621,43 @@
|
|
|
369
621
|
this.ngZone = ngZone;
|
|
370
622
|
this.isIos = isIos;
|
|
371
623
|
this.moreWord$ = moreWord$;
|
|
372
|
-
this.stopsRefs =
|
|
373
|
-
this.id =
|
|
624
|
+
this.stopsRefs = i3.EMPTY_QUERY;
|
|
625
|
+
this.id = "";
|
|
374
626
|
this.stuck$ = this.scroll$.pipe(operators.map(function (y) { return Math.floor(y) > _this.contentTop; }));
|
|
375
627
|
}
|
|
376
628
|
Object.defineProperty(TuiSheetComponent.prototype, "stops", {
|
|
377
629
|
get: function () {
|
|
378
630
|
return this.getStops(this.stopsRefs);
|
|
379
631
|
},
|
|
380
|
-
enumerable:
|
|
632
|
+
enumerable: false,
|
|
381
633
|
configurable: true
|
|
382
634
|
});
|
|
383
635
|
Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
|
|
384
636
|
get: function () {
|
|
385
637
|
return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
|
|
386
638
|
},
|
|
387
|
-
enumerable:
|
|
639
|
+
enumerable: false,
|
|
388
640
|
configurable: true
|
|
389
641
|
});
|
|
390
642
|
Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
|
|
391
643
|
get: function () {
|
|
392
644
|
return this.contentTop - this.sheetTop;
|
|
393
645
|
},
|
|
394
|
-
enumerable:
|
|
646
|
+
enumerable: false,
|
|
395
647
|
configurable: true
|
|
396
648
|
});
|
|
397
649
|
Object.defineProperty(TuiSheetComponent.prototype, "context", {
|
|
398
650
|
get: function () {
|
|
399
|
-
return
|
|
651
|
+
return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(i3.tuiZonefull(this.ngZone)) });
|
|
400
652
|
},
|
|
401
|
-
enumerable:
|
|
653
|
+
enumerable: false,
|
|
402
654
|
configurable: true
|
|
403
655
|
});
|
|
404
656
|
TuiSheetComponent.prototype.onId = function (id) {
|
|
405
657
|
this.id = id;
|
|
406
658
|
};
|
|
407
659
|
TuiSheetComponent.prototype.ngAfterViewInit = function () {
|
|
408
|
-
var stops =
|
|
660
|
+
var stops = __spreadArray(__spreadArray([], __read(this.stops)), [this.sheetTop, this.contentTop]);
|
|
409
661
|
this.elementRef.nativeElement.scrollTop = stops[this.item.initial];
|
|
410
662
|
};
|
|
411
663
|
TuiSheetComponent.prototype.scrollTo = function (top) {
|
|
@@ -414,7 +666,7 @@
|
|
|
414
666
|
if (this.isIos) {
|
|
415
667
|
fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);
|
|
416
668
|
}
|
|
417
|
-
nativeElement.scrollTo({ top: top, behavior:
|
|
669
|
+
nativeElement.scrollTo({ top: top, behavior: "smooth" });
|
|
418
670
|
};
|
|
419
671
|
TuiSheetComponent.prototype.close = function () {
|
|
420
672
|
if (this.context.closeable) {
|
|
@@ -426,7 +678,7 @@
|
|
|
426
678
|
var _a, _b;
|
|
427
679
|
return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
|
|
428
680
|
},
|
|
429
|
-
enumerable:
|
|
681
|
+
enumerable: false,
|
|
430
682
|
configurable: true
|
|
431
683
|
});
|
|
432
684
|
Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
|
|
@@ -434,108 +686,80 @@
|
|
|
434
686
|
var _a, _b;
|
|
435
687
|
return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
|
|
436
688
|
},
|
|
437
|
-
enumerable:
|
|
689
|
+
enumerable: false,
|
|
438
690
|
configurable: true
|
|
439
691
|
});
|
|
440
692
|
TuiSheetComponent.prototype.getStops = function (stops) {
|
|
441
693
|
return stops
|
|
442
694
|
.toArray()
|
|
443
|
-
.map(function (
|
|
444
|
-
var nativeElement =
|
|
695
|
+
.map(function (_c) {
|
|
696
|
+
var nativeElement = _c.nativeElement;
|
|
445
697
|
return nativeElement.offsetTop + nativeElement.clientHeight;
|
|
446
698
|
});
|
|
447
699
|
};
|
|
448
|
-
TuiSheetComponent.ctorParameters = function () { return [
|
|
449
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
450
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
451
|
-
{ type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
|
|
452
|
-
{ type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_IOS,] }] },
|
|
453
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [kit.TUI_MORE_WORD,] }] }
|
|
454
|
-
]; };
|
|
455
|
-
__decorate([
|
|
456
|
-
core.ViewChild('sheet')
|
|
457
|
-
], TuiSheetComponent.prototype, "sheet", void 0);
|
|
458
|
-
__decorate([
|
|
459
|
-
core.ViewChild('content')
|
|
460
|
-
], TuiSheetComponent.prototype, "content", void 0);
|
|
461
|
-
__decorate([
|
|
462
|
-
core.ViewChildren('stops')
|
|
463
|
-
], TuiSheetComponent.prototype, "stopsRefs", void 0);
|
|
464
|
-
__decorate([
|
|
465
|
-
core.Input()
|
|
466
|
-
], TuiSheetComponent.prototype, "item", void 0);
|
|
467
|
-
__decorate([
|
|
468
|
-
cdk.tuiPure
|
|
469
|
-
], TuiSheetComponent.prototype, "context", null);
|
|
470
|
-
__decorate([
|
|
471
|
-
core.HostListener(TUI_SHEET_ID, ['$event.detail'])
|
|
472
|
-
], TuiSheetComponent.prototype, "onId", null);
|
|
473
|
-
__decorate([
|
|
474
|
-
cdk.tuiPure
|
|
475
|
-
], TuiSheetComponent.prototype, "getStops", null);
|
|
476
|
-
TuiSheetComponent = __decorate([
|
|
477
|
-
core.Component({
|
|
478
|
-
selector: 'tui-sheet',
|
|
479
|
-
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",
|
|
480
|
-
providers: TUI_SHEET_PROVIDERS,
|
|
481
|
-
animations: [core$1.tuiSlideInTop],
|
|
482
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
483
|
-
host: {
|
|
484
|
-
role: 'dialog',
|
|
485
|
-
'[attr.aria-labelledby]': 'id',
|
|
486
|
-
'[class._ios]': 'isIos',
|
|
487
|
-
// '[class._stuck]': 'true', // Initially disable snapping for Firefox
|
|
488
|
-
'[$.class._stuck]': 'stuck$',
|
|
489
|
-
'($.class._stuck)': 'stuck$',
|
|
490
|
-
},
|
|
491
|
-
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)}"]
|
|
492
|
-
}),
|
|
493
|
-
__param(0, core.Inject(TUI_SHEET_SCROLL)),
|
|
494
|
-
__param(1, core.Inject(core.ElementRef)),
|
|
495
|
-
__param(2, core.Inject(core.NgZone)),
|
|
496
|
-
__param(3, core.Inject(cdk.TUI_IS_IOS)),
|
|
497
|
-
__param(4, core.Inject(kit.TUI_MORE_WORD))
|
|
498
|
-
], TuiSheetComponent);
|
|
499
700
|
return TuiSheetComponent;
|
|
500
701
|
}());
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
702
|
+
TuiSheetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetComponent, deps: [{ token: TUI_SHEET_SCROLL }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.TUI_IS_IOS }, { token: kit.TUI_MORE_WORD }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
703
|
+
TuiSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetComponent, selector: "tui-sheet", inputs: { item: "item" }, host: { attributes: { "role": "dialog" }, listeners: { "$.class._stuck": "stuck$", "tui-sheet-id": "onId($event.detail)" }, properties: { "attr.aria-labelledby": "id", "class._ios": "isIos", "$.class._stuck": "stuck$" } }, providers: TUI_SHEET_PROVIDERS, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "stopsRefs", predicate: ["stops"], descendants: true }], ngImport: i0__namespace, 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 class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n >\n <img\n *polymorpheusOutlet=\"item.image as src; context: context\"\n alt=\"\"\n class=\"t-image\"\n [src]=\"src\"\n />\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 class=\"t-content\">\n <h2\n *polymorpheusOutlet=\"item.content as text; context: context\"\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ text }}\n </h2>\n </div>\n </section>\n</div>\n", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);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:transparent;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:.3s;transition-duration:var(--tui-duration, .3s);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:.3s;transition-duration:var(--tui-duration, .3s);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)}\n"], components: [{ type: TuiSheetBarComponent, selector: "tui-sheet-bar" }, { type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]" }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: ["tuiSheetTop"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: TuiSheetStopDirective, selector: "[tuiSheetStop]" }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1$1.tuiSlideInTop], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
704
|
+
__decorate([
|
|
705
|
+
i3.tuiPure
|
|
706
|
+
], TuiSheetComponent.prototype, "context", null);
|
|
707
|
+
__decorate([
|
|
708
|
+
i3.tuiPure
|
|
709
|
+
], TuiSheetComponent.prototype, "getStops", null);
|
|
710
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetComponent, decorators: [{
|
|
711
|
+
type: i0.Component,
|
|
712
|
+
args: [{
|
|
713
|
+
selector: "tui-sheet",
|
|
714
|
+
templateUrl: "sheet.template.html",
|
|
715
|
+
styleUrls: ["sheet.style.less"],
|
|
716
|
+
providers: TUI_SHEET_PROVIDERS,
|
|
717
|
+
animations: [i1$1.tuiSlideInTop],
|
|
718
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
719
|
+
host: {
|
|
720
|
+
role: "dialog",
|
|
721
|
+
'[attr.aria-labelledby]': "id",
|
|
722
|
+
'[class._ios]': "isIos",
|
|
723
|
+
// '[class._stuck]': 'true', // Initially disable snapping for Firefox
|
|
724
|
+
'[$.class._stuck]': "stuck$",
|
|
725
|
+
'($.class._stuck)': "stuck$",
|
|
726
|
+
},
|
|
727
|
+
}]
|
|
728
|
+
}], ctorParameters: function () {
|
|
729
|
+
return [{ type: i1__namespace$1.Observable, decorators: [{
|
|
730
|
+
type: i0.Inject,
|
|
731
|
+
args: [TUI_SHEET_SCROLL]
|
|
732
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
733
|
+
type: i0.Inject,
|
|
734
|
+
args: [i0.ElementRef]
|
|
735
|
+
}] }, { type: i0__namespace.NgZone, decorators: [{
|
|
736
|
+
type: i0.Inject,
|
|
737
|
+
args: [i0.NgZone]
|
|
738
|
+
}] }, { type: undefined, decorators: [{
|
|
739
|
+
type: i0.Inject,
|
|
740
|
+
args: [i3.TUI_IS_IOS]
|
|
741
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
742
|
+
type: i0.Inject,
|
|
743
|
+
args: [kit.TUI_MORE_WORD]
|
|
744
|
+
}] }];
|
|
745
|
+
}, propDecorators: { sheet: [{
|
|
746
|
+
type: i0.ViewChild,
|
|
747
|
+
args: ["sheet"]
|
|
748
|
+
}], content: [{
|
|
749
|
+
type: i0.ViewChild,
|
|
750
|
+
args: ["content"]
|
|
751
|
+
}], stopsRefs: [{
|
|
752
|
+
type: i0.ViewChildren,
|
|
753
|
+
args: ["stops"]
|
|
754
|
+
}], item: [{
|
|
755
|
+
type: i0.Input
|
|
756
|
+
}], context: [], onId: [{
|
|
757
|
+
type: i0.HostListener,
|
|
758
|
+
args: [TUI_SHEET_ID, ["$event.detail"]]
|
|
759
|
+
}], getStops: [] } });
|
|
536
760
|
|
|
537
761
|
var TUI_SHEET_DEFAULT_OPTIONS = {
|
|
538
|
-
image:
|
|
762
|
+
image: "",
|
|
539
763
|
imageSlide: true,
|
|
540
764
|
stops: [],
|
|
541
765
|
initial: 0,
|
|
@@ -543,211 +767,48 @@
|
|
|
543
767
|
closeable: true,
|
|
544
768
|
overlay: false,
|
|
545
769
|
};
|
|
546
|
-
var TUI_SHEET_OPTIONS = new
|
|
547
|
-
factory: function () { return (
|
|
770
|
+
var TUI_SHEET_OPTIONS = new i0.InjectionToken("Default parameters for sheet component", {
|
|
771
|
+
factory: function () { return (Object.assign({}, TUI_SHEET_DEFAULT_OPTIONS)); },
|
|
548
772
|
});
|
|
549
773
|
|
|
550
774
|
var TuiSheetService = /** @class */ (function () {
|
|
551
775
|
function TuiSheetService(options) {
|
|
552
776
|
this.options = options;
|
|
553
|
-
this.sheets$ = new
|
|
777
|
+
this.sheets$ = new i1.BehaviorSubject([]);
|
|
554
778
|
}
|
|
555
779
|
TuiSheetService.prototype.open = function (content, options) {
|
|
556
780
|
var _this = this;
|
|
557
781
|
if (options === void 0) { options = {}; }
|
|
558
|
-
return new
|
|
782
|
+
return new i1.Observable(function ($implicit) {
|
|
559
783
|
var completeWith = function (result) {
|
|
560
784
|
$implicit.next(result);
|
|
561
785
|
$implicit.complete();
|
|
562
786
|
};
|
|
563
|
-
var sheet =
|
|
564
|
-
|
|
565
|
-
$implicit: $implicit, scroll$: rxjs.EMPTY });
|
|
566
|
-
_this.sheets$.next(__spread(_this.sheets$.value, [sheet]));
|
|
787
|
+
var sheet = Object.assign(Object.assign(Object.assign({}, _this.options), options), { content: content, completeWith: completeWith, $implicit: $implicit, scroll$: i1.EMPTY });
|
|
788
|
+
_this.sheets$.next(__spreadArray(__spreadArray([], __read(_this.sheets$.value)), [sheet]));
|
|
567
789
|
return function () {
|
|
568
790
|
_this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
|
|
569
791
|
};
|
|
570
792
|
});
|
|
571
793
|
};
|
|
572
|
-
TuiSheetService.ctorParameters = function () { return [
|
|
573
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [TUI_SHEET_OPTIONS,] }] }
|
|
574
|
-
]; };
|
|
575
|
-
TuiSheetService.ɵprov = core.ɵɵdefineInjectable({ factory: function TuiSheetService_Factory() { return new TuiSheetService(core.ɵɵinject(TUI_SHEET_OPTIONS)); }, token: TuiSheetService, providedIn: "root" });
|
|
576
|
-
TuiSheetService = __decorate([
|
|
577
|
-
core.Injectable({
|
|
578
|
-
providedIn: 'root',
|
|
579
|
-
}),
|
|
580
|
-
__param(0, core.Inject(TUI_SHEET_OPTIONS))
|
|
581
|
-
], TuiSheetService);
|
|
582
794
|
return TuiSheetService;
|
|
583
795
|
}());
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
};
|
|
598
|
-
TuiSheetsHostComponent.ctorParameters = function () { return [
|
|
599
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [core$1.TUI_ANIMATION_OPTIONS,] }] },
|
|
600
|
-
{ type: TuiSheetService, decorators: [{ type: core.Inject, args: [TuiSheetService,] }] },
|
|
601
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TUI_WINDOW_HEIGHT,] }] }
|
|
602
|
-
]; };
|
|
603
|
-
TuiSheetsHostComponent = __decorate([
|
|
604
|
-
core.Component({
|
|
605
|
-
selector: 'tui-sheets-host',
|
|
606
|
-
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",
|
|
607
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
608
|
-
animations: [core$1.tuiSlideInTop, core$1.tuiFadeIn],
|
|
609
|
-
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}"]
|
|
610
|
-
}),
|
|
611
|
-
__param(0, core.Inject(core$1.TUI_ANIMATION_OPTIONS)),
|
|
612
|
-
__param(1, core.Inject(TuiSheetService)),
|
|
613
|
-
__param(2, core.Inject(cdk.TUI_WINDOW_HEIGHT))
|
|
614
|
-
], TuiSheetsHostComponent);
|
|
615
|
-
return TuiSheetsHostComponent;
|
|
616
|
-
}());
|
|
617
|
-
|
|
618
|
-
// @dynamic
|
|
619
|
-
var TuiSheetCloseDirective = /** @class */ (function () {
|
|
620
|
-
function TuiSheetCloseDirective(ngZone, dragged$, scroll$, windowRef, elementRef, sheet) {
|
|
621
|
-
var _this = this;
|
|
622
|
-
this.ngZone = ngZone;
|
|
623
|
-
this.dragged$ = dragged$;
|
|
624
|
-
this.scroll$ = scroll$;
|
|
625
|
-
this.windowRef = windowRef;
|
|
626
|
-
this.elementRef = elementRef;
|
|
627
|
-
this.sheet = sheet;
|
|
628
|
-
this.close = rxjs.merge(cdk.typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(operators.startWith(false), operators.switchMap(function (dragged) {
|
|
629
|
-
return dragged
|
|
630
|
-
? rxjs.EMPTY
|
|
631
|
-
: _this.scroll$.pipe(operators.startWith(_this.elementRef.nativeElement.scrollTop));
|
|
632
|
-
}), operators.filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), operators.distinctUntilChanged(), cdk.tuiZonefull(this.ngZone)));
|
|
633
|
-
}
|
|
634
|
-
TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
|
|
635
|
-
var height = Math.min(this.windowRef.innerHeight, this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight);
|
|
636
|
-
var min = Math.min(height, this.sheet.stops[0] || Infinity);
|
|
637
|
-
return scrollTop < min / 2;
|
|
638
|
-
};
|
|
639
|
-
TuiSheetCloseDirective.ctorParameters = function () { return [
|
|
640
|
-
{ type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
|
|
641
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_DRAGGED,] }] },
|
|
642
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
643
|
-
{ type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] },
|
|
644
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
645
|
-
{ type: TuiSheetComponent, decorators: [{ type: core.Inject, args: [TuiSheetComponent,] }] }
|
|
646
|
-
]; };
|
|
647
|
-
__decorate([
|
|
648
|
-
core.Output()
|
|
649
|
-
], TuiSheetCloseDirective.prototype, "close", void 0);
|
|
650
|
-
TuiSheetCloseDirective = __decorate([
|
|
651
|
-
core.Directive({
|
|
652
|
-
selector: 'tui-sheet[close]',
|
|
653
|
-
}),
|
|
654
|
-
__param(0, core.Inject(core.NgZone)),
|
|
655
|
-
__param(1, core.Inject(TUI_SHEET_DRAGGED)),
|
|
656
|
-
__param(2, core.Inject(TUI_SHEET_SCROLL)),
|
|
657
|
-
__param(3, core.Inject(common$1.WINDOW)),
|
|
658
|
-
__param(4, core.Inject(core.ElementRef)),
|
|
659
|
-
__param(5, core.Inject(TuiSheetComponent))
|
|
660
|
-
], TuiSheetCloseDirective);
|
|
661
|
-
return TuiSheetCloseDirective;
|
|
662
|
-
}());
|
|
663
|
-
|
|
664
|
-
var TuiSheetStopDirective = /** @class */ (function () {
|
|
665
|
-
function TuiSheetStopDirective(elementRef, destroy$, dragged$, scroll$, _a) {
|
|
666
|
-
var nativeElement = _a.nativeElement;
|
|
667
|
-
scroll$
|
|
668
|
-
.pipe(operators.map(function (y) { return Math.floor(y) > elementRef.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
|
|
669
|
-
var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
|
|
670
|
-
return !above && !dragged;
|
|
671
|
-
}), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
|
|
672
|
-
.subscribe(function () {
|
|
673
|
-
nativeElement.style.overflow = 'hidden';
|
|
674
|
-
nativeElement.classList.remove('_stuck'); // iOS
|
|
675
|
-
nativeElement.scrollTop = elementRef.nativeElement.offsetTop;
|
|
676
|
-
setTimeout(function () {
|
|
677
|
-
nativeElement.style.overflow = '';
|
|
678
|
-
}, 100);
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
TuiSheetStopDirective.ctorParameters = function () { return [
|
|
682
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
683
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
|
|
684
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_DRAGGED,] }] },
|
|
685
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
686
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core$1.TUI_SCROLL_REF,] }] }
|
|
687
|
-
]; };
|
|
688
|
-
TuiSheetStopDirective = __decorate([
|
|
689
|
-
core.Directive({
|
|
690
|
-
selector: '[tuiSheetStop]',
|
|
691
|
-
providers: [cdk.TuiDestroyService],
|
|
692
|
-
}),
|
|
693
|
-
__param(0, core.Inject(core.ElementRef)),
|
|
694
|
-
__param(1, core.Inject(cdk.TuiDestroyService)),
|
|
695
|
-
__param(2, core.Inject(TUI_SHEET_DRAGGED)),
|
|
696
|
-
__param(3, core.Inject(TUI_SHEET_SCROLL)),
|
|
697
|
-
__param(4, core.Inject(core$1.TUI_SCROLL_REF))
|
|
698
|
-
], TuiSheetStopDirective);
|
|
699
|
-
return TuiSheetStopDirective;
|
|
700
|
-
}());
|
|
701
|
-
|
|
702
|
-
// So that borders get rounded when image is visible for at least 10px
|
|
703
|
-
var OFFSET = 10;
|
|
704
|
-
// @dynamic
|
|
705
|
-
var TuiSheetTopDirective = /** @class */ (function () {
|
|
706
|
-
function TuiSheetTopDirective(scroll$, component, windowRef) {
|
|
707
|
-
var _this = this;
|
|
708
|
-
this.scroll$ = scroll$;
|
|
709
|
-
this.component = component;
|
|
710
|
-
this.windowRef = windowRef;
|
|
711
|
-
this.stop = 0;
|
|
712
|
-
this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
|
|
713
|
-
this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET; }));
|
|
714
|
-
this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
|
|
715
|
-
}
|
|
716
|
-
TuiSheetTopDirective.prototype.getY = function (scrollTop) {
|
|
717
|
-
var value = scrollTop - this.stop;
|
|
718
|
-
var total = this.windowRef.innerHeight - this.component.item.offset - this.stop;
|
|
719
|
-
return this.stop && cdk.clamp(100 - (value / total) * 100, 0, 100);
|
|
720
|
-
};
|
|
721
|
-
TuiSheetTopDirective.ctorParameters = function () { return [
|
|
722
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_SHEET_SCROLL,] }] },
|
|
723
|
-
{ type: TuiSheetComponent, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return TuiSheetComponent; }),] }] },
|
|
724
|
-
{ type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] }
|
|
725
|
-
]; };
|
|
726
|
-
__decorate([
|
|
727
|
-
core.Input('tuiSheetTop'),
|
|
728
|
-
cdk.tuiDefaultProp()
|
|
729
|
-
], TuiSheetTopDirective.prototype, "stop", void 0);
|
|
730
|
-
TuiSheetTopDirective = __decorate([
|
|
731
|
-
core.Directive({
|
|
732
|
-
selector: '[tuiSheetTop]',
|
|
733
|
-
host: {
|
|
734
|
-
'[$.style.transform]': 'transform$',
|
|
735
|
-
'($.style.transform)': 'transform$',
|
|
736
|
-
'[$.class._rounded]': 'rounded$',
|
|
737
|
-
'($.class._rounded)': 'rounded$',
|
|
738
|
-
'[$.class._clickthrough]': 'clickthrough$',
|
|
739
|
-
'($.class._clickthrough)': 'clickthrough$',
|
|
740
|
-
},
|
|
741
|
-
}),
|
|
742
|
-
__param(0, core.Inject(TUI_SHEET_SCROLL)),
|
|
743
|
-
__param(1, core.Inject(core.forwardRef(function () { return TuiSheetComponent; }))),
|
|
744
|
-
__param(2, core.Inject(common$1.WINDOW))
|
|
745
|
-
], TuiSheetTopDirective);
|
|
746
|
-
return TuiSheetTopDirective;
|
|
747
|
-
}());
|
|
796
|
+
TuiSheetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, deps: [{ token: TUI_SHEET_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
797
|
+
TuiSheetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, providedIn: "root" });
|
|
798
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetService, decorators: [{
|
|
799
|
+
type: i0.Injectable,
|
|
800
|
+
args: [{
|
|
801
|
+
providedIn: "root",
|
|
802
|
+
}]
|
|
803
|
+
}], ctorParameters: function () {
|
|
804
|
+
return [{ type: undefined, decorators: [{
|
|
805
|
+
type: i0.Inject,
|
|
806
|
+
args: [TUI_SHEET_OPTIONS]
|
|
807
|
+
}] }];
|
|
808
|
+
} });
|
|
748
809
|
|
|
749
810
|
// Safety offset for shadow
|
|
750
|
-
var OFFSET
|
|
811
|
+
var OFFSET = 16;
|
|
751
812
|
// @dynamic
|
|
752
813
|
var TuiSheetWrapperDirective = /** @class */ (function () {
|
|
753
814
|
function TuiSheetWrapperDirective(windowRef) {
|
|
@@ -761,27 +822,28 @@
|
|
|
761
822
|
var _this = this;
|
|
762
823
|
return this.scroll$.pipe(operators.map(function (y) { return y + 16 > _this.windowRef.innerHeight - _this.tuiSheetWrapper; }));
|
|
763
824
|
},
|
|
764
|
-
enumerable:
|
|
825
|
+
enumerable: false,
|
|
765
826
|
configurable: true
|
|
766
827
|
});
|
|
767
828
|
Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
|
|
768
829
|
get: function () {
|
|
769
830
|
return processDragged(this.dragged$, this.scroll$);
|
|
770
831
|
},
|
|
771
|
-
enumerable:
|
|
832
|
+
enumerable: false,
|
|
772
833
|
configurable: true
|
|
773
834
|
});
|
|
774
835
|
Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
|
|
775
836
|
get: function () {
|
|
776
837
|
return this.scroll$.pipe(operators.map(this.getHeight.bind(this)));
|
|
777
838
|
},
|
|
778
|
-
enumerable:
|
|
839
|
+
enumerable: false,
|
|
779
840
|
configurable: true
|
|
780
841
|
});
|
|
781
842
|
TuiSheetWrapperDirective.prototype.getHeight = function (value) {
|
|
782
843
|
var _a;
|
|
783
|
-
return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
|
|
784
|
-
|
|
844
|
+
return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
|
|
845
|
+
? null
|
|
846
|
+
: i3.clamp(this.withImage(value) + OFFSET, OFFSET, this.windowRef.innerHeight);
|
|
785
847
|
};
|
|
786
848
|
TuiSheetWrapperDirective.prototype.withImage = function (value) {
|
|
787
849
|
var _a;
|
|
@@ -789,141 +851,269 @@
|
|
|
789
851
|
? value
|
|
790
852
|
: value - this.sheet.imageHeight;
|
|
791
853
|
};
|
|
792
|
-
TuiSheetWrapperDirective.ctorParameters = function () { return [
|
|
793
|
-
{ type: Window, decorators: [{ type: core.Inject, args: [common$1.WINDOW,] }] }
|
|
794
|
-
]; };
|
|
795
|
-
__decorate([
|
|
796
|
-
core.ContentChild(TuiSheetComponent)
|
|
797
|
-
], TuiSheetWrapperDirective.prototype, "sheet", void 0);
|
|
798
|
-
__decorate([
|
|
799
|
-
core.ContentChild(TuiSheetComponent, { read: TUI_SHEET_DRAGGED })
|
|
800
|
-
], TuiSheetWrapperDirective.prototype, "dragged$", void 0);
|
|
801
|
-
__decorate([
|
|
802
|
-
core.ContentChild(TuiSheetComponent, { read: TUI_SHEET_SCROLL })
|
|
803
|
-
], TuiSheetWrapperDirective.prototype, "scroll$", void 0);
|
|
804
|
-
__decorate([
|
|
805
|
-
core.Input()
|
|
806
|
-
], TuiSheetWrapperDirective.prototype, "tuiSheetWrapper", void 0);
|
|
807
|
-
__decorate([
|
|
808
|
-
cdk.tuiPure
|
|
809
|
-
], TuiSheetWrapperDirective.prototype, "overlay$", null);
|
|
810
|
-
__decorate([
|
|
811
|
-
cdk.tuiPure
|
|
812
|
-
], TuiSheetWrapperDirective.prototype, "visible$", null);
|
|
813
|
-
__decorate([
|
|
814
|
-
cdk.tuiPure
|
|
815
|
-
], TuiSheetWrapperDirective.prototype, "height$", null);
|
|
816
|
-
TuiSheetWrapperDirective = __decorate([
|
|
817
|
-
core.Directive({
|
|
818
|
-
selector: '[tuiSheetWrapper]',
|
|
819
|
-
host: {
|
|
820
|
-
'[$.class._overlay]': 'overlay$',
|
|
821
|
-
'($.class._overlay)': 'overlay$',
|
|
822
|
-
'[$.class._visible]': 'visible$',
|
|
823
|
-
'($.class._visible)': 'visible$',
|
|
824
|
-
'[$.style.height.px]': 'height$',
|
|
825
|
-
'($.style.height.px)': 'height$',
|
|
826
|
-
},
|
|
827
|
-
}),
|
|
828
|
-
__param(0, core.Inject(common$1.WINDOW))
|
|
829
|
-
], TuiSheetWrapperDirective);
|
|
830
854
|
return TuiSheetWrapperDirective;
|
|
831
855
|
}());
|
|
856
|
+
TuiSheetWrapperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetWrapperDirective, deps: [{ token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
857
|
+
TuiSheetWrapperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: { tuiSheetWrapper: "tuiSheetWrapper" }, host: { listeners: { "$.class._overlay": "overlay$", "$.class._visible": "visible$", "$.style.height.px": "height$" }, properties: { "$.class._overlay": "overlay$", "$.class._visible": "visible$", "$.style.height.px": "height$" } }, queries: [{ propertyName: "sheet", first: true, predicate: TuiSheetComponent, descendants: true }, { propertyName: "dragged$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_DRAGGED }, { propertyName: "scroll$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_SCROLL }], ngImport: i0__namespace });
|
|
858
|
+
__decorate([
|
|
859
|
+
i3.tuiPure
|
|
860
|
+
], TuiSheetWrapperDirective.prototype, "overlay$", null);
|
|
861
|
+
__decorate([
|
|
862
|
+
i3.tuiPure
|
|
863
|
+
], TuiSheetWrapperDirective.prototype, "visible$", null);
|
|
864
|
+
__decorate([
|
|
865
|
+
i3.tuiPure
|
|
866
|
+
], TuiSheetWrapperDirective.prototype, "height$", null);
|
|
867
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetWrapperDirective, decorators: [{
|
|
868
|
+
type: i0.Directive,
|
|
869
|
+
args: [{
|
|
870
|
+
selector: "[tuiSheetWrapper]",
|
|
871
|
+
host: {
|
|
872
|
+
'[$.class._overlay]': "overlay$",
|
|
873
|
+
'($.class._overlay)': "overlay$",
|
|
874
|
+
'[$.class._visible]': "visible$",
|
|
875
|
+
'($.class._visible)': "visible$",
|
|
876
|
+
'[$.style.height.px]': "height$",
|
|
877
|
+
'($.style.height.px)': "height$",
|
|
878
|
+
},
|
|
879
|
+
}]
|
|
880
|
+
}], ctorParameters: function () {
|
|
881
|
+
return [{ type: Window, decorators: [{
|
|
882
|
+
type: i0.Inject,
|
|
883
|
+
args: [common.WINDOW]
|
|
884
|
+
}] }];
|
|
885
|
+
}, propDecorators: { sheet: [{
|
|
886
|
+
type: i0.ContentChild,
|
|
887
|
+
args: [TuiSheetComponent]
|
|
888
|
+
}], dragged$: [{
|
|
889
|
+
type: i0.ContentChild,
|
|
890
|
+
args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED }]
|
|
891
|
+
}], scroll$: [{
|
|
892
|
+
type: i0.ContentChild,
|
|
893
|
+
args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL }]
|
|
894
|
+
}], tuiSheetWrapper: [{
|
|
895
|
+
type: i0.Input
|
|
896
|
+
}], overlay$: [], visible$: [], height$: [] } });
|
|
897
|
+
|
|
898
|
+
// @dynamic
|
|
899
|
+
var TuiSheetCloseDirective = /** @class */ (function () {
|
|
900
|
+
function TuiSheetCloseDirective(ngZone, dragged$, scroll$, windowRef, elementRef, sheet) {
|
|
901
|
+
var _this = this;
|
|
902
|
+
this.ngZone = ngZone;
|
|
903
|
+
this.dragged$ = dragged$;
|
|
904
|
+
this.scroll$ = scroll$;
|
|
905
|
+
this.windowRef = windowRef;
|
|
906
|
+
this.elementRef = elementRef;
|
|
907
|
+
this.sheet = sheet;
|
|
908
|
+
this.close = i1.merge(i3.typedFromEvent(this.elementRef.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(operators.startWith(false), operators.switchMap(function (dragged) { return dragged
|
|
909
|
+
? i1.EMPTY
|
|
910
|
+
: _this.scroll$.pipe(operators.startWith(_this.elementRef.nativeElement.scrollTop)); }), operators.filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), operators.distinctUntilChanged(), i3.tuiZonefull(this.ngZone)));
|
|
911
|
+
}
|
|
912
|
+
TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
|
|
913
|
+
var height = Math.min(this.windowRef.innerHeight, this.elementRef.nativeElement.scrollHeight - this.windowRef.innerHeight);
|
|
914
|
+
var min = Math.min(height, this.sheet.stops[0] || Infinity);
|
|
915
|
+
return scrollTop < min / 2;
|
|
916
|
+
};
|
|
917
|
+
return TuiSheetCloseDirective;
|
|
918
|
+
}());
|
|
919
|
+
TuiSheetCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetCloseDirective, deps: [{ token: i0.NgZone }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: common.WINDOW }, { token: i0.ElementRef }, { token: TuiSheetComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
920
|
+
TuiSheetCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: { close: "close" }, ngImport: i0__namespace });
|
|
921
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetCloseDirective, decorators: [{
|
|
922
|
+
type: i0.Directive,
|
|
923
|
+
args: [{
|
|
924
|
+
selector: "tui-sheet[close]",
|
|
925
|
+
}]
|
|
926
|
+
}], ctorParameters: function () {
|
|
927
|
+
return [{ type: i0__namespace.NgZone, decorators: [{
|
|
928
|
+
type: i0.Inject,
|
|
929
|
+
args: [i0.NgZone]
|
|
930
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
931
|
+
type: i0.Inject,
|
|
932
|
+
args: [TUI_SHEET_DRAGGED]
|
|
933
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
934
|
+
type: i0.Inject,
|
|
935
|
+
args: [TUI_SHEET_SCROLL]
|
|
936
|
+
}] }, { type: Window, decorators: [{
|
|
937
|
+
type: i0.Inject,
|
|
938
|
+
args: [common.WINDOW]
|
|
939
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
940
|
+
type: i0.Inject,
|
|
941
|
+
args: [i0.ElementRef]
|
|
942
|
+
}] }, { type: TuiSheetComponent, decorators: [{
|
|
943
|
+
type: i0.Inject,
|
|
944
|
+
args: [TuiSheetComponent]
|
|
945
|
+
}] }];
|
|
946
|
+
}, propDecorators: { close: [{
|
|
947
|
+
type: i0.Output
|
|
948
|
+
}] } });
|
|
949
|
+
|
|
950
|
+
// @dynamic
|
|
951
|
+
var TuiSheetsHostComponent = /** @class */ (function () {
|
|
952
|
+
function TuiSheetsHostComponent(options, service, height$) {
|
|
953
|
+
this.options = options;
|
|
954
|
+
this.service = service;
|
|
955
|
+
this.height$ = height$;
|
|
956
|
+
}
|
|
957
|
+
TuiSheetsHostComponent.prototype.close = function (_a) {
|
|
958
|
+
var closeable = _a.closeable, $implicit = _a.$implicit;
|
|
959
|
+
if (closeable) {
|
|
960
|
+
$implicit.complete();
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
return TuiSheetsHostComponent;
|
|
964
|
+
}());
|
|
965
|
+
TuiSheetsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetsHostComponent, deps: [{ token: i1$1.TUI_ANIMATION_OPTIONS }, { token: TuiSheetService }, { token: i3.TUI_WINDOW_HEIGHT }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
966
|
+
TuiSheetsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetsHostComponent, selector: "tui-sheets-host", ngImport: i0__namespace, 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", styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);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:100vh;overflow:hidden}.t-wrapper_overlay,.t-wrapper._visible,.t-wrapper._overlay{overflow:visible}\n"], components: [{ type: TuiSheetComponent, selector: "tui-sheet", inputs: ["item"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: ["tuiSheetWrapper"] }, { type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: ["close"] }, { type: i1__namespace.TuiScrollRefDirective, selector: "[tuiScrollRef]" }, { type: i3__namespace.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
967
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetsHostComponent, decorators: [{
|
|
968
|
+
type: i0.Component,
|
|
969
|
+
args: [{
|
|
970
|
+
selector: "tui-sheets-host",
|
|
971
|
+
templateUrl: "sheets-host.template.html",
|
|
972
|
+
styleUrls: ["sheets-host.style.less"],
|
|
973
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
974
|
+
animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn],
|
|
975
|
+
}]
|
|
976
|
+
}], ctorParameters: function () {
|
|
977
|
+
return [{ type: undefined, decorators: [{
|
|
978
|
+
type: i0.Inject,
|
|
979
|
+
args: [i1$1.TUI_ANIMATION_OPTIONS]
|
|
980
|
+
}] }, { type: TuiSheetService, decorators: [{
|
|
981
|
+
type: i0.Inject,
|
|
982
|
+
args: [TuiSheetService]
|
|
983
|
+
}] }, { type: i1__namespace$1.Observable, decorators: [{
|
|
984
|
+
type: i0.Inject,
|
|
985
|
+
args: [i3.TUI_WINDOW_HEIGHT]
|
|
986
|
+
}] }];
|
|
987
|
+
} });
|
|
832
988
|
|
|
833
989
|
var TuiSheetDirective = /** @class */ (function (_super) {
|
|
834
990
|
__extends(TuiSheetDirective, _super);
|
|
835
991
|
function TuiSheetDirective(changeDetectorRef, templateRef, service) {
|
|
836
992
|
var _this = _super.call(this, templateRef, changeDetectorRef) || this;
|
|
837
993
|
_this.service = service;
|
|
838
|
-
_this.open$ = new
|
|
994
|
+
_this.open$ = new i1.Subject();
|
|
839
995
|
_this.options = {};
|
|
840
|
-
_this.tuiSheetChange = _this.open$.pipe(operators.switchMap(function (open) {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
: rxjs.EMPTY;
|
|
846
|
-
}));
|
|
996
|
+
_this.tuiSheetChange = _this.open$.pipe(operators.switchMap(function (open) { return open
|
|
997
|
+
? _this.service
|
|
998
|
+
.open(_this, _this.options)
|
|
999
|
+
.pipe(operators.ignoreElements(), operators.endWith(false))
|
|
1000
|
+
: i1.EMPTY; }));
|
|
847
1001
|
return _this;
|
|
848
1002
|
}
|
|
849
1003
|
Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
|
|
850
1004
|
set: function (open) {
|
|
851
1005
|
this.open$.next(open);
|
|
852
1006
|
},
|
|
853
|
-
enumerable:
|
|
1007
|
+
enumerable: false,
|
|
854
1008
|
configurable: true
|
|
855
1009
|
});
|
|
856
|
-
TuiSheetDirective.ctorParameters = function () { return [
|
|
857
|
-
{ type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
|
|
858
|
-
{ type: core.TemplateRef, decorators: [{ type: core.Inject, args: [core.TemplateRef,] }] },
|
|
859
|
-
{ type: TuiSheetService, decorators: [{ type: core.Inject, args: [TuiSheetService,] }] }
|
|
860
|
-
]; };
|
|
861
|
-
__decorate([
|
|
862
|
-
core.Input('tuiSheetOptions'),
|
|
863
|
-
cdk.tuiDefaultProp()
|
|
864
|
-
], TuiSheetDirective.prototype, "options", void 0);
|
|
865
|
-
__decorate([
|
|
866
|
-
core.Input(),
|
|
867
|
-
cdk.tuiRequiredSetter()
|
|
868
|
-
], TuiSheetDirective.prototype, "tuiSheet", null);
|
|
869
|
-
__decorate([
|
|
870
|
-
core.Output()
|
|
871
|
-
], TuiSheetDirective.prototype, "tuiSheetChange", void 0);
|
|
872
|
-
TuiSheetDirective = __decorate([
|
|
873
|
-
core.Directive({
|
|
874
|
-
selector: 'ng-template[tuiSheet]',
|
|
875
|
-
}),
|
|
876
|
-
__param(0, core.Inject(core.ChangeDetectorRef)),
|
|
877
|
-
__param(1, core.Inject(core.TemplateRef)),
|
|
878
|
-
__param(2, core.Inject(TuiSheetService))
|
|
879
|
-
], TuiSheetDirective);
|
|
880
1010
|
return TuiSheetDirective;
|
|
881
|
-
}(
|
|
1011
|
+
}(i5.PolymorpheusTemplate));
|
|
1012
|
+
TuiSheetDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.TemplateRef }, { token: TuiSheetService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1013
|
+
TuiSheetDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSheetDirective, selector: "ng-template[tuiSheet]", inputs: { options: ["tuiSheetOptions", "options"], tuiSheet: "tuiSheet" }, outputs: { tuiSheetChange: "tuiSheetChange" }, usesInheritance: true, ngImport: i0__namespace });
|
|
1014
|
+
__decorate([
|
|
1015
|
+
i3.tuiDefaultProp()
|
|
1016
|
+
], TuiSheetDirective.prototype, "options", void 0);
|
|
1017
|
+
__decorate([
|
|
1018
|
+
i3.tuiRequiredSetter()
|
|
1019
|
+
], TuiSheetDirective.prototype, "tuiSheet", null);
|
|
1020
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetDirective, decorators: [{
|
|
1021
|
+
type: i0.Directive,
|
|
1022
|
+
args: [{
|
|
1023
|
+
selector: "ng-template[tuiSheet]",
|
|
1024
|
+
}]
|
|
1025
|
+
}], ctorParameters: function () {
|
|
1026
|
+
return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
1027
|
+
type: i0.Inject,
|
|
1028
|
+
args: [i0.ChangeDetectorRef]
|
|
1029
|
+
}] }, { type: i0__namespace.TemplateRef, decorators: [{
|
|
1030
|
+
type: i0.Inject,
|
|
1031
|
+
args: [i0.TemplateRef]
|
|
1032
|
+
}] }, { type: TuiSheetService, decorators: [{
|
|
1033
|
+
type: i0.Inject,
|
|
1034
|
+
args: [TuiSheetService]
|
|
1035
|
+
}] }];
|
|
1036
|
+
}, propDecorators: { options: [{
|
|
1037
|
+
type: i0.Input,
|
|
1038
|
+
args: ["tuiSheetOptions"]
|
|
1039
|
+
}], tuiSheet: [{
|
|
1040
|
+
type: i0.Input
|
|
1041
|
+
}], tuiSheetChange: [{
|
|
1042
|
+
type: i0.Output
|
|
1043
|
+
}] } });
|
|
882
1044
|
|
|
883
1045
|
var TuiSheetModule = /** @class */ (function () {
|
|
884
1046
|
function TuiSheetModule() {
|
|
885
1047
|
}
|
|
886
|
-
TuiSheetModule = __decorate([
|
|
887
|
-
core.NgModule({
|
|
888
|
-
imports: [
|
|
889
|
-
common.CommonModule,
|
|
890
|
-
ngPolymorpheus.PolymorpheusModule,
|
|
891
|
-
cdk.TuiLetModule,
|
|
892
|
-
core$1.TuiButtonModule,
|
|
893
|
-
cdk.TuiOverscrollModule,
|
|
894
|
-
core$1.TuiScrollbarModule,
|
|
895
|
-
],
|
|
896
|
-
declarations: [
|
|
897
|
-
TuiSheetsHostComponent,
|
|
898
|
-
TuiSheetComponent,
|
|
899
|
-
TuiSheetBarComponent,
|
|
900
|
-
TuiSheetHeadingComponent,
|
|
901
|
-
TuiSheetTopDirective,
|
|
902
|
-
TuiSheetDirective,
|
|
903
|
-
TuiSheetWrapperDirective,
|
|
904
|
-
TuiSheetCloseDirective,
|
|
905
|
-
TuiSheetStopDirective,
|
|
906
|
-
],
|
|
907
|
-
exports: [
|
|
908
|
-
TuiSheetsHostComponent,
|
|
909
|
-
TuiSheetComponent,
|
|
910
|
-
TuiSheetHeadingComponent,
|
|
911
|
-
TuiSheetDirective,
|
|
912
|
-
],
|
|
913
|
-
schemas: [core.NO_ERRORS_SCHEMA],
|
|
914
|
-
})
|
|
915
|
-
], TuiSheetModule);
|
|
916
1048
|
return TuiSheetModule;
|
|
917
1049
|
}());
|
|
1050
|
+
TuiSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1051
|
+
TuiSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
|
|
1052
|
+
TuiSheetComponent,
|
|
1053
|
+
TuiSheetBarComponent,
|
|
1054
|
+
TuiSheetHeadingComponent,
|
|
1055
|
+
TuiSheetTopDirective,
|
|
1056
|
+
TuiSheetDirective,
|
|
1057
|
+
TuiSheetWrapperDirective,
|
|
1058
|
+
TuiSheetCloseDirective,
|
|
1059
|
+
TuiSheetStopDirective], imports: [i2.CommonModule,
|
|
1060
|
+
i5.PolymorpheusModule,
|
|
1061
|
+
i3.TuiLetModule,
|
|
1062
|
+
i1$1.TuiButtonModule,
|
|
1063
|
+
i3.TuiOverscrollModule,
|
|
1064
|
+
i1$1.TuiScrollbarModule], exports: [TuiSheetsHostComponent,
|
|
1065
|
+
TuiSheetComponent,
|
|
1066
|
+
TuiSheetHeadingComponent,
|
|
1067
|
+
TuiSheetDirective] });
|
|
1068
|
+
TuiSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, imports: [[
|
|
1069
|
+
i2.CommonModule,
|
|
1070
|
+
i5.PolymorpheusModule,
|
|
1071
|
+
i3.TuiLetModule,
|
|
1072
|
+
i1$1.TuiButtonModule,
|
|
1073
|
+
i3.TuiOverscrollModule,
|
|
1074
|
+
i1$1.TuiScrollbarModule,
|
|
1075
|
+
]] });
|
|
1076
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSheetModule, decorators: [{
|
|
1077
|
+
type: i0.NgModule,
|
|
1078
|
+
args: [{
|
|
1079
|
+
imports: [
|
|
1080
|
+
i2.CommonModule,
|
|
1081
|
+
i5.PolymorpheusModule,
|
|
1082
|
+
i3.TuiLetModule,
|
|
1083
|
+
i1$1.TuiButtonModule,
|
|
1084
|
+
i3.TuiOverscrollModule,
|
|
1085
|
+
i1$1.TuiScrollbarModule,
|
|
1086
|
+
],
|
|
1087
|
+
declarations: [
|
|
1088
|
+
TuiSheetsHostComponent,
|
|
1089
|
+
TuiSheetComponent,
|
|
1090
|
+
TuiSheetBarComponent,
|
|
1091
|
+
TuiSheetHeadingComponent,
|
|
1092
|
+
TuiSheetTopDirective,
|
|
1093
|
+
TuiSheetDirective,
|
|
1094
|
+
TuiSheetWrapperDirective,
|
|
1095
|
+
TuiSheetCloseDirective,
|
|
1096
|
+
TuiSheetStopDirective,
|
|
1097
|
+
],
|
|
1098
|
+
exports: [
|
|
1099
|
+
TuiSheetsHostComponent,
|
|
1100
|
+
TuiSheetComponent,
|
|
1101
|
+
TuiSheetHeadingComponent,
|
|
1102
|
+
TuiSheetDirective,
|
|
1103
|
+
],
|
|
1104
|
+
schemas: [i0.NO_ERRORS_SCHEMA],
|
|
1105
|
+
}]
|
|
1106
|
+
}] });
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Generated bundle index. Do not edit.
|
|
1110
|
+
*/
|
|
918
1111
|
|
|
919
1112
|
exports.TUI_SHEET_CLOSE = TUI_SHEET_CLOSE;
|
|
920
1113
|
exports.TUI_SHEET_DEFAULT_OPTIONS = TUI_SHEET_DEFAULT_OPTIONS;
|
|
921
|
-
exports.TUI_SHEET_DRAGGED = TUI_SHEET_DRAGGED;
|
|
922
1114
|
exports.TUI_SHEET_ID = TUI_SHEET_ID;
|
|
923
|
-
exports.TUI_SHEET_OFFSET = TUI_SHEET_OFFSET;
|
|
924
1115
|
exports.TUI_SHEET_OPTIONS = TUI_SHEET_OPTIONS;
|
|
925
1116
|
exports.TUI_SHEET_PROVIDERS = TUI_SHEET_PROVIDERS;
|
|
926
|
-
exports.TUI_SHEET_SCROLL = TUI_SHEET_SCROLL;
|
|
927
1117
|
exports.TuiSheetBarComponent = TuiSheetBarComponent;
|
|
928
1118
|
exports.TuiSheetCloseDirective = TuiSheetCloseDirective;
|
|
929
1119
|
exports.TuiSheetComponent = TuiSheetComponent;
|
|
@@ -943,5 +1133,5 @@
|
|
|
943
1133
|
|
|
944
1134
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
945
1135
|
|
|
946
|
-
}))
|
|
1136
|
+
}));
|
|
947
1137
|
//# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.umd.js.map
|