@taiga-ui/addon-mobile 3.57.0 → 3.59.0-canary.10da730
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/app-bar/app-bar-back.component.d.ts +1 -1
- package/components/app-bar/app-bar.component.d.ts +1 -1
- package/components/app-bar/app-bar.directive.d.ts +1 -1
- package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -1
- package/components/mobile-calendar-dialog/mobile-calendar-dialog.component.d.ts +1 -1
- package/components/mobile-dialog/mobile-dialog.component.d.ts +1 -1
- package/components/mobile-dialog/mobile-dialog.options.d.ts +1 -1
- package/components/pull-to-refresh/loader-android/loader-android.component.d.ts +1 -1
- package/components/pull-to-refresh/loader-ios/loader-ios.component.d.ts +1 -1
- package/components/pull-to-refresh/pull-to-refresh.component.d.ts +1 -1
- package/components/sheet/components/sheet/sheet.component.d.ts +1 -1
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +1 -1
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +1 -1
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +1 -1
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +1 -1
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +1 -1
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +1 -1
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +1 -1
- package/components/sheet/sheet.directive.d.ts +1 -1
- package/components/sheet-dialog/sheet-dialog.component.d.ts +1 -1
- package/components/sheet-dialog/sheet-dialog.directive.d.ts +1 -1
- package/components/sheet-dialog/sheet-dialog.options.d.ts +1 -1
- package/components/tab-bar/tab-bar-item.component.d.ts +1 -1
- package/components/tab-bar/tab-bar-item.directive.d.ts +1 -1
- package/components/tab-bar/tab-bar.component.d.ts +1 -1
- package/components/theme-android/theme-android.component.d.ts +1 -1
- package/components/theme-ios/theme-ios.component.d.ts +1 -1
- package/const/mobile-alert-options.d.ts +3 -3
- package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -1
- package/directives/mobile-tabs/mobile-tabs.component.d.ts +1 -1
- package/directives/mobile-tabs/mobile-tabs.directive.d.ts +1 -1
- package/directives/ripple/ripple-styles.component.d.ts +1 -1
- package/directives/ripple/ripple.directive.d.ts +1 -1
- package/directives/sidebar/sidebar.component.d.ts +1 -1
- package/directives/sidebar/sidebar.directive.d.ts +1 -1
- package/directives/touchable/touchable.directive.d.ts +1 -1
- package/esm2020/components/app-bar/app-bar-back.component.mjs +11 -0
- package/esm2020/components/app-bar/app-bar.component.mjs +33 -0
- package/{esm2015/components/app-bar/app-bar.directive.js → esm2020/components/app-bar/app-bar.directive.mjs} +3 -3
- package/{esm2015/components/app-bar/app-bar.module.js → esm2020/components/app-bar/app-bar.module.mjs} +5 -5
- package/esm2020/components/mobile-calendar/mobile-calendar.component.mjs +301 -0
- package/{esm2015/components/mobile-calendar/mobile-calendar.module.js → esm2020/components/mobile-calendar/mobile-calendar.module.mjs} +14 -16
- package/esm2020/components/mobile-calendar/mobile-calendar.providers.mjs +29 -0
- package/esm2020/components/mobile-calendar/mobile-calendar.strategy.mjs +125 -0
- package/esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.component.mjs +35 -0
- package/{esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.module.js → esm2020/components/mobile-calendar-dialog/mobile-calendar-dialog.module.mjs} +6 -6
- package/esm2020/components/mobile-dialog/mobile-dialog.component.mjs +32 -0
- package/{esm2015/components/mobile-dialog/mobile-dialog.module.js → esm2020/components/mobile-dialog/mobile-dialog.module.mjs} +5 -5
- package/esm2020/components/mobile-dialog/mobile-dialog.service.mjs +29 -0
- package/esm2020/components/pull-to-refresh/loader-android/loader-android.component.mjs +55 -0
- package/esm2020/components/pull-to-refresh/loader-ios/loader-ios.component.mjs +44 -0
- package/esm2020/components/pull-to-refresh/pull-to-refresh.component.mjs +69 -0
- package/{esm2015/components/pull-to-refresh/pull-to-refresh.module.js → esm2020/components/pull-to-refresh/pull-to-refresh.module.mjs} +5 -5
- package/esm2020/components/pull-to-refresh/pull-to-refresh.service.mjs +53 -0
- package/esm2020/components/sheet/components/sheet/sheet.component.mjs +121 -0
- package/esm2020/components/sheet/components/sheet/sheet.providers.mjs +30 -0
- package/{esm2015/components/sheet/components/sheet-bar/sheet-bar.component.js → esm2020/components/sheet/components/sheet-bar/sheet-bar.component.mjs} +7 -12
- package/{esm2015/components/sheet/components/sheet-heading/sheet-heading.component.js → esm2020/components/sheet/components/sheet-heading/sheet-heading.component.mjs} +5 -10
- package/esm2020/components/sheet/components/sheets-host/sheets-host.component.mjs +61 -0
- package/esm2020/components/sheet/directives/sheet-close/sheet-close.directive.mjs +55 -0
- package/esm2020/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +47 -0
- package/esm2020/components/sheet/directives/sheet-top/sheet-top.directive.mjs +54 -0
- package/esm2020/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +78 -0
- package/esm2020/components/sheet/ios.hacks.mjs +28 -0
- package/esm2020/components/sheet/sheet-options.mjs +21 -0
- package/esm2020/components/sheet/sheet.directive.mjs +48 -0
- package/{esm2015/components/sheet/sheet.module.js → esm2020/components/sheet/sheet.module.mjs} +10 -12
- package/esm2020/components/sheet/sheet.service.mjs +56 -0
- package/esm2020/components/sheet-dialog/sheet-dialog.component.mjs +132 -0
- package/{esm2015/components/sheet-dialog/sheet-dialog.directive.js → esm2020/components/sheet-dialog/sheet-dialog.directive.mjs} +3 -3
- package/{esm2015/components/sheet-dialog/sheet-dialog.module.js → esm2020/components/sheet-dialog/sheet-dialog.module.mjs} +5 -5
- package/{esm2015/components/sheet-dialog/sheet-dialog.service.js → esm2020/components/sheet-dialog/sheet-dialog.service.mjs} +8 -5
- package/esm2020/components/tab-bar/tab-bar-item.component.mjs +29 -0
- package/esm2020/components/tab-bar/tab-bar-item.directive.mjs +44 -0
- package/esm2020/components/tab-bar/tab-bar.component.mjs +47 -0
- package/{esm2015/components/tab-bar/tab-bar.module.js → esm2020/components/tab-bar/tab-bar.module.mjs} +5 -5
- package/{esm2015/components/theme-android/theme-android.component.js → esm2020/components/theme-android/theme-android.component.mjs} +5 -11
- package/{esm2015/components/theme-android/theme-android.module.js → esm2020/components/theme-android/theme-android.module.mjs} +4 -4
- package/esm2020/components/theme-ios/theme-ios.component.mjs +12 -0
- package/{esm2015/components/theme-ios/theme-ios.module.js → esm2020/components/theme-ios/theme-ios.module.mjs} +4 -4
- package/esm2020/const/mobile-alert-options.mjs +13 -0
- package/{esm2015/directives/elastic-sticky/elastic-sticky.directive.js → esm2020/directives/elastic-sticky/elastic-sticky.directive.mjs} +3 -3
- package/{esm2015/directives/elastic-sticky/elastic-sticky.module.js → esm2020/directives/elastic-sticky/elastic-sticky.module.mjs} +4 -4
- package/esm2020/directives/elastic-sticky/elastic-sticky.service.mjs +40 -0
- package/esm2020/directives/mobile-tabs/mobile-tabs.component.mjs +13 -0
- package/{esm2015/directives/mobile-tabs/mobile-tabs.directive.js → esm2020/directives/mobile-tabs/mobile-tabs.directive.mjs} +3 -3
- package/{esm2015/directives/mobile-tabs/mobile-tabs.module.js → esm2020/directives/mobile-tabs/mobile-tabs.module.mjs} +4 -4
- package/{esm2015/directives/ripple/ripple-styles.component.js → esm2020/directives/ripple/ripple-styles.component.mjs} +6 -12
- package/esm2020/directives/ripple/ripple.directive.mjs +66 -0
- package/{esm2015/directives/ripple/ripple.module.js → esm2020/directives/ripple/ripple.module.mjs} +4 -4
- package/esm2020/directives/ripple/ripple.providers.mjs +42 -0
- package/esm2020/directives/sidebar/sidebar.component.mjs +58 -0
- package/esm2020/directives/sidebar/sidebar.directive.mjs +72 -0
- package/{esm2015/directives/sidebar/sidebar.module.js → esm2020/directives/sidebar/sidebar.module.mjs} +5 -5
- package/esm2020/directives/touchable/touchable.directive.mjs +82 -0
- package/{esm2015/directives/touchable/touchable.module.js → esm2020/directives/touchable/touchable.module.mjs} +4 -4
- package/esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.mjs +34 -0
- package/{esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.js → esm2020/internal/primitive-calendar-mobile/primitive-calendar-mobile.module.mjs} +8 -10
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs +103 -0
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +16 -19
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs +539 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs +91 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +257 -0
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs +215 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs +687 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs +137 -0
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components-theme-android.js → taiga-ui-addon-mobile-components-theme-android.mjs} +9 -15
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components-theme-ios.js → taiga-ui-addon-mobile-components-theme-ios.mjs} +9 -15
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-components.js → taiga-ui-addon-mobile-components.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-const.js → taiga-ui-addon-mobile-const.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-const.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +85 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +87 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs +136 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs +143 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs +104 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-directives.js → taiga-ui-addon-mobile-directives.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs +4 -0
- package/fesm2015/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs +72 -0
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-internal.js → taiga-ui-addon-mobile-internal.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-internal.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile-types.mjs +4 -0
- package/fesm2015/taiga-ui-addon-mobile-types.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile-utils.js → taiga-ui-addon-mobile-utils.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-mobile.js → taiga-ui-addon-mobile.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-mobile.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-app-bar.js → fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs} +19 -34
- package/fesm2020/taiga-ui-addon-mobile-components-app-bar.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs +69 -0
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js → fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +36 -51
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js → fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +22 -25
- package/fesm2020/taiga-ui-addon-mobile-components-mobile-dialog.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js → fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +25 -42
- package/fesm2020/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js → fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +25 -31
- package/fesm2020/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-sheet.js → fesm2020/taiga-ui-addon-mobile-components-sheet.mjs} +86 -108
- package/fesm2020/taiga-ui-addon-mobile-components-sheet.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-components-tab-bar.js → fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs} +19 -30
- package/fesm2020/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs +32 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-android.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs +32 -0
- package/fesm2020/taiga-ui-addon-mobile-components-theme-ios.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-components.mjs +15 -0
- package/fesm2020/taiga-ui-addon-mobile-components.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-const.mjs +19 -0
- package/fesm2020/taiga-ui-addon-mobile-const.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js → fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +12 -13
- package/fesm2020/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs +85 -0
- package/fesm2020/taiga-ui-addon-mobile-directives-mobile-tabs.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-ripple.js → fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs} +14 -21
- package/fesm2020/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-sidebar.js → fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs} +28 -28
- package/fesm2020/taiga-ui-addon-mobile-directives-sidebar.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-directives-touchable.js → fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs} +10 -11
- package/fesm2020/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-directives.mjs +10 -0
- package/fesm2020/taiga-ui-addon-mobile-directives.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs +4 -0
- package/fesm2020/taiga-ui-addon-mobile-interfaces.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +13 -21
- package/fesm2020/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-internal.mjs +6 -0
- package/fesm2020/taiga-ui-addon-mobile-internal.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-types.mjs +4 -0
- package/fesm2020/taiga-ui-addon-mobile-types.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile-utils.mjs +16 -0
- package/fesm2020/taiga-ui-addon-mobile-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-mobile.mjs +11 -0
- package/fesm2020/taiga-ui-addon-mobile.mjs.map +1 -0
- package/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.d.ts +1 -1
- package/package.json +229 -32
- package/styles/android/checkbox.less +16 -13
- package/styles/android/radio.less +7 -5
- package/styles/android/toggle.less +3 -4
- package/styles/common/badge.less +3 -3
- package/styles/ios/checkbox.less +17 -9
- package/styles/ios/toggle.less +8 -11
- package/types/touch-mode.d.ts +1 -1
- package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js +0 -149
- package/bundles/taiga-ui-addon-mobile-components-app-bar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js +0 -129
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +0 -929
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +0 -450
- package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +0 -677
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +0 -596
- package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +0 -1153
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js +0 -188
- package/bundles/taiga-ui-addon-mobile-components-tab-bar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +0 -391
- package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +0 -391
- package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-components.umd.js +0 -75
- package/bundles/taiga-ui-addon-mobile-components.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-const.umd.js +0 -24
- package/bundles/taiga-ui-addon-mobile-const.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +0 -437
- package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js +0 -131
- package/bundles/taiga-ui-addon-mobile-directives-mobile-tabs.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +0 -195
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +0 -524
- package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js +0 -144
- package/bundles/taiga-ui-addon-mobile-directives-touchable.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-directives.umd.js +0 -45
- package/bundles/taiga-ui-addon-mobile-directives.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-addon-mobile-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +0 -429
- package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-internal.umd.js +0 -21
- package/bundles/taiga-ui-addon-mobile-internal.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-types.umd.js +0 -11
- package/bundles/taiga-ui-addon-mobile-types.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.js +0 -26
- package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-mobile.umd.js +0 -51
- package/bundles/taiga-ui-addon-mobile.umd.js.map +0 -1
- package/components/app-bar/package.json +0 -10
- package/components/app-bar/taiga-ui-addon-mobile-components-app-bar.d.ts +0 -5
- package/components/mobile-calendar/package.json +0 -10
- package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.d.ts +0 -5
- package/components/mobile-calendar-dialog/package.json +0 -10
- package/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.d.ts +0 -5
- package/components/mobile-dialog/package.json +0 -10
- package/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/pull-to-refresh/package.json +0 -10
- package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.d.ts +0 -5
- package/components/sheet/package.json +0 -10
- package/components/sheet/taiga-ui-addon-mobile-components-sheet.d.ts +0 -5
- package/components/sheet-dialog/package.json +0 -10
- package/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.d.ts +0 -5
- package/components/tab-bar/package.json +0 -10
- package/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.d.ts +0 -5
- package/components/taiga-ui-addon-mobile-components.d.ts +0 -5
- package/components/theme-android/package.json +0 -10
- package/components/theme-android/taiga-ui-addon-mobile-components-theme-android.d.ts +0 -5
- package/components/theme-ios/package.json +0 -10
- package/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.d.ts +0 -5
- package/const/package.json +0 -10
- package/const/taiga-ui-addon-mobile-const.d.ts +0 -5
- package/directives/elastic-sticky/package.json +0 -10
- package/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.d.ts +0 -5
- package/directives/mobile-tabs/package.json +0 -10
- package/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.d.ts +0 -5
- package/directives/package.json +0 -10
- package/directives/ripple/package.json +0 -10
- package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.d.ts +0 -5
- package/directives/sidebar/package.json +0 -10
- package/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.d.ts +0 -5
- package/directives/taiga-ui-addon-mobile-directives.d.ts +0 -5
- package/directives/touchable/package.json +0 -10
- package/directives/touchable/taiga-ui-addon-mobile-directives-touchable.d.ts +0 -5
- package/esm2015/components/app-bar/app-bar-back.component.js +0 -16
- package/esm2015/components/app-bar/app-bar.component.js +0 -43
- package/esm2015/components/mobile-calendar/mobile-calendar.component.js +0 -314
- package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +0 -30
- package/esm2015/components/mobile-calendar/mobile-calendar.strategy.js +0 -126
- package/esm2015/components/mobile-calendar-dialog/mobile-calendar-dialog.component.js +0 -45
- package/esm2015/components/mobile-dialog/mobile-dialog.component.js +0 -38
- package/esm2015/components/mobile-dialog/mobile-dialog.service.js +0 -26
- package/esm2015/components/pull-to-refresh/loader-android/loader-android.component.js +0 -60
- package/esm2015/components/pull-to-refresh/loader-ios/loader-ios.component.js +0 -49
- package/esm2015/components/pull-to-refresh/pull-to-refresh.component.js +0 -75
- package/esm2015/components/pull-to-refresh/pull-to-refresh.service.js +0 -54
- package/esm2015/components/sheet/components/sheet/sheet.component.js +0 -128
- package/esm2015/components/sheet/components/sheet/sheet.providers.js +0 -31
- package/esm2015/components/sheet/components/sheets-host/sheets-host.component.js +0 -68
- package/esm2015/components/sheet/directives/sheet-close/sheet-close.directive.js +0 -56
- package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +0 -47
- package/esm2015/components/sheet/directives/sheet-top/sheet-top.directive.js +0 -54
- package/esm2015/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.js +0 -81
- package/esm2015/components/sheet/ios.hacks.js +0 -29
- package/esm2015/components/sheet/sheet-options.js +0 -19
- package/esm2015/components/sheet/sheet.directive.js +0 -49
- package/esm2015/components/sheet/sheet.service.js +0 -51
- package/esm2015/components/sheet-dialog/sheet-dialog.component.js +0 -141
- package/esm2015/components/tab-bar/tab-bar-item.component.js +0 -35
- package/esm2015/components/tab-bar/tab-bar-item.directive.js +0 -44
- package/esm2015/components/tab-bar/tab-bar.component.js +0 -52
- package/esm2015/components/theme-ios/theme-ios.component.js +0 -18
- package/esm2015/const/mobile-alert-options.js +0 -7
- package/esm2015/directives/elastic-sticky/elastic-sticky.service.js +0 -41
- package/esm2015/directives/mobile-tabs/mobile-tabs.component.js +0 -19
- package/esm2015/directives/ripple/ripple.directive.js +0 -67
- package/esm2015/directives/ripple/ripple.providers.js +0 -43
- package/esm2015/directives/sidebar/sidebar.component.js +0 -58
- package/esm2015/directives/sidebar/sidebar.directive.js +0 -72
- package/esm2015/directives/touchable/touchable.directive.js +0 -83
- package/esm2015/internal/primitive-calendar-mobile/primitive-calendar-mobile.component.js +0 -40
- package/fesm2015/taiga-ui-addon-mobile-components-app-bar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-tab-bar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-android.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components-theme-ios.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-components.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-const.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-elastic-sticky.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js +0 -91
- package/fesm2015/taiga-ui-addon-mobile-directives-mobile-tabs.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-sidebar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-touchable.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-directives.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js +0 -4
- package/fesm2015/taiga-ui-addon-mobile-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-internal.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-types.js +0 -4
- package/fesm2015/taiga-ui-addon-mobile-types.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.js.map +0 -1
- package/fesm2015/taiga-ui-addon-mobile.js.map +0 -1
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-addon-mobile-interfaces.d.ts +0 -5
- package/internal/package.json +0 -10
- package/internal/primitive-calendar-mobile/package.json +0 -10
- package/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.d.ts +0 -5
- package/internal/taiga-ui-addon-mobile-internal.d.ts +0 -5
- package/taiga-ui-addon-mobile.d.ts +0 -5
- package/types/package.json +0 -10
- package/types/taiga-ui-addon-mobile-types.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-addon-mobile-utils.d.ts +0 -5
- /package/{esm2015/components/app-bar/app-bar.providers.js → esm2020/components/app-bar/app-bar.providers.mjs} +0 -0
- /package/{esm2015/components/app-bar/index.js → esm2020/components/app-bar/index.mjs} +0 -0
- /package/{esm2015/components/app-bar/taiga-ui-addon-mobile-components-app-bar.js → esm2020/components/app-bar/taiga-ui-addon-mobile-components-app-bar.mjs} +0 -0
- /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar/index.js → esm2020/components/mobile-calendar/index.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar/mobile-calendar.const.js → esm2020/components/mobile-calendar/mobile-calendar.const.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.js → esm2020/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar-dialog/index.js → esm2020/components/mobile-calendar-dialog/index.mjs} +0 -0
- /package/{esm2015/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.js → esm2020/components/mobile-calendar-dialog/taiga-ui-addon-mobile-components-mobile-calendar-dialog.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/index.js → esm2020/components/mobile-dialog/index.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/mobile-dialog-options.js → esm2020/components/mobile-dialog/mobile-dialog-options.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/mobile-dialog.options.js → esm2020/components/mobile-dialog/mobile-dialog.options.mjs} +0 -0
- /package/{esm2015/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.js → esm2020/components/mobile-dialog/taiga-ui-addon-mobile-components-mobile-dialog.mjs} +0 -0
- /package/{esm2015/components/pull-to-refresh/index.js → esm2020/components/pull-to-refresh/index.mjs} +0 -0
- /package/{esm2015/components/pull-to-refresh/pull-to-refresh.providers.js → esm2020/components/pull-to-refresh/pull-to-refresh.providers.mjs} +0 -0
- /package/{esm2015/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.js → esm2020/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.mjs} +0 -0
- /package/{esm2015/components/sheet/index.js → esm2020/components/sheet/index.mjs} +0 -0
- /package/{esm2015/components/sheet/sheet-tokens.js → esm2020/components/sheet/sheet-tokens.mjs} +0 -0
- /package/{esm2015/components/sheet/sheet.js → esm2020/components/sheet/sheet.mjs} +0 -0
- /package/{esm2015/components/sheet/taiga-ui-addon-mobile-components-sheet.js → esm2020/components/sheet/taiga-ui-addon-mobile-components-sheet.mjs} +0 -0
- /package/{esm2015/components/sheet-dialog/index.js → esm2020/components/sheet-dialog/index.mjs} +0 -0
- /package/{esm2015/components/sheet-dialog/sheet-dialog.options.js → esm2020/components/sheet-dialog/sheet-dialog.options.mjs} +0 -0
- /package/{esm2015/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.js → esm2020/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.mjs} +0 -0
- /package/{esm2015/components/tab-bar/index.js → esm2020/components/tab-bar/index.mjs} +0 -0
- /package/{esm2015/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.js → esm2020/components/tab-bar/taiga-ui-addon-mobile-components-tab-bar.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-addon-mobile-components.js → esm2020/components/taiga-ui-addon-mobile-components.mjs} +0 -0
- /package/{esm2015/components/theme-android/index.js → esm2020/components/theme-android/index.mjs} +0 -0
- /package/{esm2015/components/theme-android/taiga-ui-addon-mobile-components-theme-android.js → esm2020/components/theme-android/taiga-ui-addon-mobile-components-theme-android.mjs} +0 -0
- /package/{esm2015/components/theme-ios/index.js → esm2020/components/theme-ios/index.mjs} +0 -0
- /package/{esm2015/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.js → esm2020/components/theme-ios/taiga-ui-addon-mobile-components-theme-ios.mjs} +0 -0
- /package/{esm2015/const/index.js → esm2020/const/index.mjs} +0 -0
- /package/{esm2015/const/taiga-ui-addon-mobile-const.js → esm2020/const/taiga-ui-addon-mobile-const.mjs} +0 -0
- /package/{esm2015/directives/elastic-sticky/index.js → esm2020/directives/elastic-sticky/index.mjs} +0 -0
- /package/{esm2015/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.js → esm2020/directives/elastic-sticky/taiga-ui-addon-mobile-directives-elastic-sticky.mjs} +0 -0
- /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
- /package/{esm2015/directives/mobile-tabs/index.js → esm2020/directives/mobile-tabs/index.mjs} +0 -0
- /package/{esm2015/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.js → esm2020/directives/mobile-tabs/taiga-ui-addon-mobile-directives-mobile-tabs.mjs} +0 -0
- /package/{esm2015/directives/ripple/index.js → esm2020/directives/ripple/index.mjs} +0 -0
- /package/{esm2015/directives/ripple/taiga-ui-addon-mobile-directives-ripple.js → esm2020/directives/ripple/taiga-ui-addon-mobile-directives-ripple.mjs} +0 -0
- /package/{esm2015/directives/sidebar/index.js → esm2020/directives/sidebar/index.mjs} +0 -0
- /package/{esm2015/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.js → esm2020/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.mjs} +0 -0
- /package/{esm2015/directives/taiga-ui-addon-mobile-directives.js → esm2020/directives/taiga-ui-addon-mobile-directives.mjs} +0 -0
- /package/{esm2015/directives/touchable/index.js → esm2020/directives/touchable/index.mjs} +0 -0
- /package/{esm2015/directives/touchable/taiga-ui-addon-mobile-directives-touchable.js → esm2020/directives/touchable/taiga-ui-addon-mobile-directives-touchable.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
- /package/{esm2015/interfaces/mobile-alert-data.js → esm2020/interfaces/mobile-alert-data.mjs} +0 -0
- /package/{esm2015/interfaces/taiga-ui-addon-mobile-interfaces.js → esm2020/interfaces/taiga-ui-addon-mobile-interfaces.mjs} +0 -0
- /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
- /package/{esm2015/internal/primitive-calendar-mobile/index.js → esm2020/internal/primitive-calendar-mobile/index.mjs} +0 -0
- /package/{esm2015/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.js → esm2020/internal/primitive-calendar-mobile/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.mjs} +0 -0
- /package/{esm2015/internal/taiga-ui-addon-mobile-internal.js → esm2020/internal/taiga-ui-addon-mobile-internal.mjs} +0 -0
- /package/{esm2015/taiga-ui-addon-mobile.js → esm2020/taiga-ui-addon-mobile.mjs} +0 -0
- /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-addon-mobile-types.js → esm2020/types/taiga-ui-addon-mobile-types.mjs} +0 -0
- /package/{esm2015/types/touch-mode.js → esm2020/types/touch-mode.mjs} +0 -0
- /package/{esm2015/utils/find-touch-index.js → esm2020/utils/find-touch-index.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-addon-mobile-utils.js → esm2020/utils/taiga-ui-addon-mobile-utils.mjs} +0 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ElementRef, Component, ChangeDetectionStrategy, Inject, ViewChild, ViewChildren, HostBinding, HostListener, inject, Injectable, Directive, NgModule } from '@angular/core';
|
|
4
|
+
import * as i3 from '@taiga-ui/cdk';
|
|
5
|
+
import { EMPTY_QUERY, tuiPure, tuiCreateToken, tuiProvideOptions, AbstractTuiDialogService, AbstractTuiDialogDirective, TuiClickOutsideModule, tuiAsDialog } from '@taiga-ui/cdk';
|
|
6
|
+
import * as i4 from '@taiga-ui/core';
|
|
7
|
+
import { TUI_ANIMATIONS_DURATION, TUI_COMMON_ICONS, TUI_CLOSE_WORD, tuiSlideInTop, TuiButtonModule } from '@taiga-ui/core';
|
|
8
|
+
import { shouldCall } from '@tinkoff/ng-event-plugins';
|
|
9
|
+
import * as i2 from '@tinkoff/ng-polymorpheus';
|
|
10
|
+
import { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
11
|
+
import * as i5 from 'rxjs';
|
|
12
|
+
import { BehaviorSubject } from 'rxjs';
|
|
13
|
+
import * as i1 from '@angular/common';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
|
|
16
|
+
// So we re-enter ngZone and trigger change detection
|
|
17
|
+
function isCloseable() {
|
|
18
|
+
return this.context.closeable;
|
|
19
|
+
}
|
|
20
|
+
class TuiSheetDialogComponent {
|
|
21
|
+
constructor(el, duration, icons, closeWord$, context) {
|
|
22
|
+
this.el = el;
|
|
23
|
+
this.duration = duration;
|
|
24
|
+
this.icons = icons;
|
|
25
|
+
this.closeWord$ = closeWord$;
|
|
26
|
+
this.context = context;
|
|
27
|
+
this.stopsRefs = EMPTY_QUERY;
|
|
28
|
+
this.pointers = 0;
|
|
29
|
+
this.slideInTop = {
|
|
30
|
+
value: '',
|
|
31
|
+
params: {
|
|
32
|
+
start: '100vh',
|
|
33
|
+
duration: this.duration,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
this.stuck$ = new BehaviorSubject(false);
|
|
37
|
+
}
|
|
38
|
+
get offset() {
|
|
39
|
+
return this.context.offset;
|
|
40
|
+
}
|
|
41
|
+
get closeable() {
|
|
42
|
+
return this.context.closeable;
|
|
43
|
+
}
|
|
44
|
+
get isSmall() {
|
|
45
|
+
var _a;
|
|
46
|
+
return this.sheetTop > (((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.clientHeight) || Infinity);
|
|
47
|
+
}
|
|
48
|
+
onPointerChange(delta) {
|
|
49
|
+
this.pointers += delta;
|
|
50
|
+
if (!delta) {
|
|
51
|
+
const stuck = this.el.nativeElement.scrollTop > this.sheetTop;
|
|
52
|
+
this.stuck$.value !== stuck && this.stuck$.next(stuck);
|
|
53
|
+
}
|
|
54
|
+
if (this.context.closeable &&
|
|
55
|
+
!this.pointers &&
|
|
56
|
+
!this.el.nativeElement.scrollTop) {
|
|
57
|
+
this.close();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
close() {
|
|
61
|
+
// TODO: Refactor focus visible on mobile
|
|
62
|
+
this.el.nativeElement.dispatchEvent(new Event('mousedown', { bubbles: true }));
|
|
63
|
+
this.context.$implicit.complete();
|
|
64
|
+
}
|
|
65
|
+
ngAfterViewInit() {
|
|
66
|
+
this.el.nativeElement.scrollTop = [
|
|
67
|
+
...this.getStops(this.stopsRefs),
|
|
68
|
+
this.sheetTop,
|
|
69
|
+
][this.context.initial];
|
|
70
|
+
}
|
|
71
|
+
get sheetTop() {
|
|
72
|
+
var _a, _b;
|
|
73
|
+
return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
|
|
74
|
+
}
|
|
75
|
+
getStops(stops) {
|
|
76
|
+
return stops.map(({ nativeElement }) => nativeElement.offsetTop + nativeElement.clientHeight);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
TuiSheetDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogComponent, deps: [{ token: ElementRef }, { token: TUI_ANIMATIONS_DURATION }, { token: TUI_COMMON_ICONS }, { token: TUI_CLOSE_WORD }, { token: POLYMORPHEUS_CONTEXT }], target: i0.ɵɵFactoryTarget.Component });
|
|
80
|
+
TuiSheetDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetDialogComponent, selector: "tui-sheet-dialog", host: { listeners: { "$.class._stuck": "stuck$", "document:touchstart.passive.silent": "onPointerChange(1)", "document:touchend.silent": "onPointerChange(-1)", "document:touchcancel.silent": "onPointerChange(-1)", "scroll.silent": "onPointerChange(0)" }, properties: { "$.class._stuck": "stuck$", "@tuiSlideInTop": "this.slideInTop", "style.top.px": "this.offset", "class._closeable": "this.closeable" } }, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true }, { propertyName: "stopsRefs", predicate: ["stops"], descendants: true }], ngImport: i0, template: "<div class=\"t-stops\">\n <div\n *ngFor=\"let stop of context.stops\"\n #stops\n class=\"t-stop\"\n [style.margin-top]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-sheet\"\n [class.t-sheet_small]=\"isSmall\"\n (tuiClickOutside)=\"close()\"\n>\n <div class=\"t-top\"></div>\n <h2\n *ngIf=\"context.label\"\n class=\"t-heading\"\n [id]=\"context.id\"\n >\n <ng-container *polymorpheusOutlet=\"context.label as label\">\n {{ label }}\n </ng-container>\n <button\n *ngIf=\"context.closeable\"\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n class=\"t-close\"\n [icon]=\"icons.close\"\n (click)=\"close()\"\n >\n {{ closeWord$ | async }}\n </button>\n </h2>\n <div\n *ngIf=\"context.content\"\n class=\"t-content\"\n >\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n</div>\n<div class=\"t-footer\"></div>\n", styles: [":host{position:fixed;top:0;left:0;bottom:0;right:0;right:-1rem;display:flex;flex-direction:column;-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);font:var(--tui-font-text-m);overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:none;box-shadow:0 20rem var(--tui-elevation-01)}:host._closeable{display:block}:host._closeable .t-stops{display:flex}.t-stops{display:none;height:100%;scroll-snap-stop:always;scroll-snap-align:start}.t-stop{scroll-snap-stop:normal;scroll-snap-align:start;height:1rem;width:1rem}.t-sheet{box-shadow:var(--tui-shadow);width:calc(100% - 1rem);border-radius:.75rem .75rem 0 0;padding:0 1rem;margin-top:auto;background:var(--tui-elevation-01);box-sizing:border-box;scroll-snap-stop:always;scroll-snap-align:start}@supports (-moz-appearance: none){.t-sheet_small{scroll-snap-align:end}}.t-top{position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;background:var(--tui-elevation-01)}.t-top:after{content:\"\";position:absolute;top:.5rem;left:50%;width:2rem;height:.25rem;transform:translate(-50%);background:var(--tui-base-09);opacity:.3;border-radius:1rem}.t-heading{position:-webkit-sticky;position:sticky;top:1.5rem;z-index:1;display:flex;margin:0;padding-bottom:1rem;font:var(--tui-font-heading-6);background:var(--tui-elevation-01)}.t-heading:last-child{margin-bottom:-.75rem}.t-heading:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host._stuck .t-heading:after{opacity:1}.t-close{right:-.25rem;flex-shrink:0;margin-left:auto}.t-content{position:relative;isolation:isolate}.t-content:nth-child(3){margin-top:1rem}.t-footer{height:1rem;scroll-snap-stop:always;scroll-snap-align:end;background:var(--tui-elevation-01)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i3.TuiClickOutsideDirective, selector: "[tuiClickOutside]", outputs: ["tuiClickOutside"] }, { kind: "component", type: i4.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [tuiSlideInTop], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
81
|
+
__decorate([
|
|
82
|
+
shouldCall(isCloseable)
|
|
83
|
+
], TuiSheetDialogComponent.prototype, "close", null);
|
|
84
|
+
__decorate([
|
|
85
|
+
tuiPure
|
|
86
|
+
], TuiSheetDialogComponent.prototype, "getStops", null);
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogComponent, decorators: [{
|
|
88
|
+
type: Component,
|
|
89
|
+
args: [{ selector: 'tui-sheet-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [tuiSlideInTop], host: {
|
|
90
|
+
'[$.class._stuck]': 'stuck$',
|
|
91
|
+
'($.class._stuck)': 'stuck$',
|
|
92
|
+
}, template: "<div class=\"t-stops\">\n <div\n *ngFor=\"let stop of context.stops\"\n #stops\n class=\"t-stop\"\n [style.margin-top]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-sheet\"\n [class.t-sheet_small]=\"isSmall\"\n (tuiClickOutside)=\"close()\"\n>\n <div class=\"t-top\"></div>\n <h2\n *ngIf=\"context.label\"\n class=\"t-heading\"\n [id]=\"context.id\"\n >\n <ng-container *polymorpheusOutlet=\"context.label as label\">\n {{ label }}\n </ng-container>\n <button\n *ngIf=\"context.closeable\"\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n class=\"t-close\"\n [icon]=\"icons.close\"\n (click)=\"close()\"\n >\n {{ closeWord$ | async }}\n </button>\n </h2>\n <div\n *ngIf=\"context.content\"\n class=\"t-content\"\n >\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n</div>\n<div class=\"t-footer\"></div>\n", styles: [":host{position:fixed;top:0;left:0;bottom:0;right:0;right:-1rem;display:flex;flex-direction:column;-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);font:var(--tui-font-text-m);overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:none;box-shadow:0 20rem var(--tui-elevation-01)}:host._closeable{display:block}:host._closeable .t-stops{display:flex}.t-stops{display:none;height:100%;scroll-snap-stop:always;scroll-snap-align:start}.t-stop{scroll-snap-stop:normal;scroll-snap-align:start;height:1rem;width:1rem}.t-sheet{box-shadow:var(--tui-shadow);width:calc(100% - 1rem);border-radius:.75rem .75rem 0 0;padding:0 1rem;margin-top:auto;background:var(--tui-elevation-01);box-sizing:border-box;scroll-snap-stop:always;scroll-snap-align:start}@supports (-moz-appearance: none){.t-sheet_small{scroll-snap-align:end}}.t-top{position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;background:var(--tui-elevation-01)}.t-top:after{content:\"\";position:absolute;top:.5rem;left:50%;width:2rem;height:.25rem;transform:translate(-50%);background:var(--tui-base-09);opacity:.3;border-radius:1rem}.t-heading{position:-webkit-sticky;position:sticky;top:1.5rem;z-index:1;display:flex;margin:0;padding-bottom:1rem;font:var(--tui-font-heading-6);background:var(--tui-elevation-01)}.t-heading:last-child{margin-bottom:-.75rem}.t-heading:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host._stuck .t-heading:after{opacity:1}.t-close{right:-.25rem;flex-shrink:0;margin-left:auto}.t-content{position:relative;isolation:isolate}.t-content:nth-child(3){margin-top:1rem}.t-footer{height:1rem;scroll-snap-stop:always;scroll-snap-align:end;background:var(--tui-elevation-01)}\n"] }]
|
|
93
|
+
}], ctorParameters: function () {
|
|
94
|
+
return [{ type: i0.ElementRef, decorators: [{
|
|
95
|
+
type: Inject,
|
|
96
|
+
args: [ElementRef]
|
|
97
|
+
}] }, { type: undefined, decorators: [{
|
|
98
|
+
type: Inject,
|
|
99
|
+
args: [TUI_ANIMATIONS_DURATION]
|
|
100
|
+
}] }, { type: undefined, decorators: [{
|
|
101
|
+
type: Inject,
|
|
102
|
+
args: [TUI_COMMON_ICONS]
|
|
103
|
+
}] }, { type: i5.Observable, decorators: [{
|
|
104
|
+
type: Inject,
|
|
105
|
+
args: [TUI_CLOSE_WORD]
|
|
106
|
+
}] }, { type: undefined, decorators: [{
|
|
107
|
+
type: Inject,
|
|
108
|
+
args: [POLYMORPHEUS_CONTEXT]
|
|
109
|
+
}] }];
|
|
110
|
+
}, propDecorators: { sheet: [{
|
|
111
|
+
type: ViewChild,
|
|
112
|
+
args: ['sheet']
|
|
113
|
+
}], stopsRefs: [{
|
|
114
|
+
type: ViewChildren,
|
|
115
|
+
args: ['stops']
|
|
116
|
+
}], slideInTop: [{
|
|
117
|
+
type: HostBinding,
|
|
118
|
+
args: ['@tuiSlideInTop']
|
|
119
|
+
}], offset: [{
|
|
120
|
+
type: HostBinding,
|
|
121
|
+
args: ['style.top.px']
|
|
122
|
+
}], closeable: [{
|
|
123
|
+
type: HostBinding,
|
|
124
|
+
args: ['class._closeable']
|
|
125
|
+
}], onPointerChange: [{
|
|
126
|
+
type: HostListener,
|
|
127
|
+
args: ['document:touchstart.passive.silent', ['1']]
|
|
128
|
+
}, {
|
|
129
|
+
type: HostListener,
|
|
130
|
+
args: ['document:touchend.silent', ['-1']]
|
|
131
|
+
}, {
|
|
132
|
+
type: HostListener,
|
|
133
|
+
args: ['document:touchcancel.silent', ['-1']]
|
|
134
|
+
}, {
|
|
135
|
+
type: HostListener,
|
|
136
|
+
args: ['scroll.silent', ['0']]
|
|
137
|
+
}], close: [], getStops: [] } });
|
|
138
|
+
|
|
139
|
+
const TUI_SHEET_DIALOG_DEFAULT_OPTIONS = {
|
|
140
|
+
label: ``,
|
|
141
|
+
stops: [],
|
|
142
|
+
initial: 0,
|
|
143
|
+
offset: 16,
|
|
144
|
+
closeable: true,
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Default parameters for mobile dialog component
|
|
148
|
+
*/
|
|
149
|
+
const TUI_SHEET_DIALOG_OPTIONS = tuiCreateToken(TUI_SHEET_DIALOG_DEFAULT_OPTIONS);
|
|
150
|
+
function tuiSheetDialogOptionsProvider(options) {
|
|
151
|
+
return tuiProvideOptions(TUI_SHEET_DIALOG_OPTIONS, options, TUI_SHEET_DIALOG_DEFAULT_OPTIONS);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const DIALOG = new PolymorpheusComponent(TuiSheetDialogComponent);
|
|
155
|
+
class TuiSheetDialogService extends AbstractTuiDialogService {
|
|
156
|
+
constructor() {
|
|
157
|
+
super(...arguments);
|
|
158
|
+
this.component = DIALOG;
|
|
159
|
+
this.defaultOptions = Object.assign(Object.assign({}, inject(TUI_SHEET_DIALOG_OPTIONS)), { data: undefined });
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
TuiSheetDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
TuiSheetDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogService, providedIn: `root` });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogService, decorators: [{
|
|
165
|
+
type: Injectable,
|
|
166
|
+
args: [{
|
|
167
|
+
providedIn: `root`,
|
|
168
|
+
}]
|
|
169
|
+
}] });
|
|
170
|
+
|
|
171
|
+
class TuiSheetDialogDirective extends AbstractTuiDialogDirective {
|
|
172
|
+
}
|
|
173
|
+
TuiSheetDialogDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
174
|
+
TuiSheetDialogDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiSheetDialogDirective, selector: "ng-template[tuiSheetDialog]", inputs: { options: ["tuiSheetDialogOptions", "options"], open: ["tuiSheetDialog", "open"] }, outputs: { openChange: "tuiSheetDialogChange" }, providers: [
|
|
175
|
+
{
|
|
176
|
+
provide: AbstractTuiDialogService,
|
|
177
|
+
useExisting: TuiSheetDialogService,
|
|
178
|
+
},
|
|
179
|
+
], usesInheritance: true, ngImport: i0 });
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogDirective, decorators: [{
|
|
181
|
+
type: Directive,
|
|
182
|
+
args: [{
|
|
183
|
+
selector: 'ng-template[tuiSheetDialog]',
|
|
184
|
+
inputs: ['options: tuiSheetDialogOptions', 'open: tuiSheetDialog'],
|
|
185
|
+
outputs: ['openChange: tuiSheetDialogChange'],
|
|
186
|
+
providers: [
|
|
187
|
+
{
|
|
188
|
+
provide: AbstractTuiDialogService,
|
|
189
|
+
useExisting: TuiSheetDialogService,
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
}]
|
|
193
|
+
}] });
|
|
194
|
+
|
|
195
|
+
class TuiSheetDialogModule {
|
|
196
|
+
}
|
|
197
|
+
TuiSheetDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
198
|
+
TuiSheetDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogModule, declarations: [TuiSheetDialogComponent, TuiSheetDialogDirective], imports: [CommonModule, PolymorpheusModule, TuiClickOutsideModule, TuiButtonModule], exports: [TuiSheetDialogComponent, TuiSheetDialogDirective] });
|
|
199
|
+
TuiSheetDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogModule, providers: [tuiAsDialog(TuiSheetDialogService)], imports: [CommonModule, PolymorpheusModule, TuiClickOutsideModule, TuiButtonModule] });
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiSheetDialogModule, decorators: [{
|
|
201
|
+
type: NgModule,
|
|
202
|
+
args: [{
|
|
203
|
+
imports: [CommonModule, PolymorpheusModule, TuiClickOutsideModule, TuiButtonModule],
|
|
204
|
+
declarations: [TuiSheetDialogComponent, TuiSheetDialogDirective],
|
|
205
|
+
providers: [tuiAsDialog(TuiSheetDialogService)],
|
|
206
|
+
exports: [TuiSheetDialogComponent, TuiSheetDialogDirective],
|
|
207
|
+
}]
|
|
208
|
+
}] });
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Generated bundle index. Do not edit.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
export { TUI_SHEET_DIALOG_DEFAULT_OPTIONS, TUI_SHEET_DIALOG_OPTIONS, TuiSheetDialogComponent, TuiSheetDialogDirective, TuiSheetDialogModule, TuiSheetDialogService, tuiSheetDialogOptionsProvider };
|
|
215
|
+
//# sourceMappingURL=taiga-ui-addon-mobile-components-sheet-dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-components-sheet-dialog.mjs","sources":["../../../projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts","../../../projects/addon-mobile/components/sheet-dialog/sheet-dialog.template.html","../../../projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts","../../../projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts","../../../projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts","../../../projects/addon-mobile/components/sheet-dialog/sheet-dialog.module.ts","../../../projects/addon-mobile/components/sheet-dialog/taiga-ui-addon-mobile-components-sheet-dialog.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n QueryList,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {EMPTY_QUERY, TuiDialog, tuiPure} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATIONS_DURATION,\n TUI_CLOSE_WORD,\n TUI_COMMON_ICONS,\n TuiCommonIcons,\n tuiSlideInTop,\n} from '@taiga-ui/core';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable} from 'rxjs';\n\nimport {TuiSheetDialogOptions} from './sheet-dialog.options';\n\n// So we re-enter ngZone and trigger change detection\nfunction isCloseable(this: TuiSheetDialogComponent<unknown>): boolean {\n return this.context.closeable;\n}\n\n@Component({\n selector: 'tui-sheet-dialog',\n templateUrl: './sheet-dialog.template.html',\n styleUrls: ['./sheet-dialog.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop],\n host: {\n '[$.class._stuck]': 'stuck$',\n '($.class._stuck)': 'stuck$',\n },\n})\nexport class TuiSheetDialogComponent<I> implements AfterViewInit {\n @ViewChild('sheet')\n private readonly sheet?: ElementRef<HTMLElement>;\n\n @ViewChildren('stops')\n private readonly stopsRefs: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private pointers = 0;\n\n @HostBinding('@tuiSlideInTop')\n readonly slideInTop = {\n value: '',\n params: {\n start: '100vh',\n duration: this.duration,\n },\n };\n\n stuck$ = new BehaviorSubject(false);\n\n constructor(\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(TUI_ANIMATIONS_DURATION) private readonly duration: number,\n @Inject(TUI_COMMON_ICONS) readonly icons: TuiCommonIcons,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiSheetDialogOptions<I>, any>,\n ) {}\n\n @HostBinding('style.top.px')\n get offset(): number {\n return this.context.offset;\n }\n\n @HostBinding('class._closeable')\n get closeable(): boolean {\n return this.context.closeable;\n }\n\n get isSmall(): boolean {\n return this.sheetTop > (this.sheet?.nativeElement.clientHeight || Infinity);\n }\n\n @HostListener('document:touchstart.passive.silent', ['1'])\n @HostListener('document:touchend.silent', ['-1'])\n @HostListener('document:touchcancel.silent', ['-1'])\n @HostListener('scroll.silent', ['0'])\n onPointerChange(delta: number): void {\n this.pointers += delta;\n\n if (!delta) {\n const stuck = this.el.nativeElement.scrollTop > this.sheetTop;\n\n this.stuck$.value !== stuck && this.stuck$.next(stuck);\n }\n\n if (\n this.context.closeable &&\n !this.pointers &&\n !this.el.nativeElement.scrollTop\n ) {\n this.close();\n }\n }\n\n @shouldCall(isCloseable)\n close(): void {\n // TODO: Refactor focus visible on mobile\n this.el.nativeElement.dispatchEvent(new Event('mousedown', {bubbles: true}));\n this.context.$implicit.complete();\n }\n\n ngAfterViewInit(): void {\n this.el.nativeElement.scrollTop = [\n ...this.getStops(this.stopsRefs),\n this.sheetTop,\n ][this.context.initial];\n }\n\n private get sheetTop(): number {\n return this.sheet?.nativeElement.offsetTop ?? Infinity;\n }\n\n @tuiPure\n private getStops(stops: QueryList<ElementRef<HTMLElement>>): readonly number[] {\n return stops.map(\n ({nativeElement}) => nativeElement.offsetTop + nativeElement.clientHeight,\n );\n }\n}\n","<div class=\"t-stops\">\n <div\n *ngFor=\"let stop of context.stops\"\n #stops\n class=\"t-stop\"\n [style.margin-top]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-sheet\"\n [class.t-sheet_small]=\"isSmall\"\n (tuiClickOutside)=\"close()\"\n>\n <div class=\"t-top\"></div>\n <h2\n *ngIf=\"context.label\"\n class=\"t-heading\"\n [id]=\"context.id\"\n >\n <ng-container *polymorpheusOutlet=\"context.label as label\">\n {{ label }}\n </ng-container>\n <button\n *ngIf=\"context.closeable\"\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n class=\"t-close\"\n [icon]=\"icons.close\"\n (click)=\"close()\"\n >\n {{ closeWord$ | async }}\n </button>\n </h2>\n <div\n *ngIf=\"context.content\"\n class=\"t-content\"\n >\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n</div>\n<div class=\"t-footer\"></div>\n","import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\ntype TuiSheetDialogDefaultOptions = Omit<TuiSheetDialogOptions<unknown>, 'data'>;\n\nexport interface TuiSheetDialogOptions<I = never> {\n readonly closeable: boolean;\n readonly data: I;\n readonly initial: number;\n readonly label: PolymorpheusContent;\n readonly offset: number;\n readonly stops: readonly string[];\n}\n\nexport const TUI_SHEET_DIALOG_DEFAULT_OPTIONS: TuiSheetDialogDefaultOptions = {\n label: ``,\n stops: [],\n initial: 0,\n offset: 16,\n closeable: true,\n};\n\n/**\n * Default parameters for mobile dialog component\n */\nexport const TUI_SHEET_DIALOG_OPTIONS = tuiCreateToken(TUI_SHEET_DIALOG_DEFAULT_OPTIONS);\n\nexport function tuiSheetDialogOptionsProvider(\n options: Partial<TuiSheetDialogDefaultOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_SHEET_DIALOG_OPTIONS,\n options,\n TUI_SHEET_DIALOG_DEFAULT_OPTIONS,\n );\n}\n","import {inject, Injectable} from '@angular/core';\nimport {AbstractTuiDialogService} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSheetDialogComponent} from './sheet-dialog.component';\nimport {TUI_SHEET_DIALOG_OPTIONS, TuiSheetDialogOptions} from './sheet-dialog.options';\n\nconst DIALOG = new PolymorpheusComponent(TuiSheetDialogComponent);\n\n@Injectable({\n providedIn: `root`,\n})\nexport class TuiSheetDialogService extends AbstractTuiDialogService<\n TuiSheetDialogOptions<any>\n> {\n protected readonly component = DIALOG;\n protected readonly defaultOptions: TuiSheetDialogOptions<any> = {\n ...inject(TUI_SHEET_DIALOG_OPTIONS),\n data: undefined,\n };\n}\n","import {Directive} from '@angular/core';\nimport {AbstractTuiDialogDirective, AbstractTuiDialogService} from '@taiga-ui/cdk';\n\nimport {TuiSheetDialogOptions} from './sheet-dialog.options';\nimport {TuiSheetDialogService} from './sheet-dialog.service';\n\n@Directive({\n selector: 'ng-template[tuiSheetDialog]',\n inputs: ['options: tuiSheetDialogOptions', 'open: tuiSheetDialog'],\n outputs: ['openChange: tuiSheetDialogChange'],\n providers: [\n {\n provide: AbstractTuiDialogService,\n useExisting: TuiSheetDialogService,\n },\n ],\n})\nexport class TuiSheetDialogDirective extends AbstractTuiDialogDirective<TuiSheetDialogOptions> {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {tuiAsDialog, TuiClickOutsideModule} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSheetDialogComponent} from './sheet-dialog.component';\nimport {TuiSheetDialogDirective} from './sheet-dialog.directive';\nimport {TuiSheetDialogService} from './sheet-dialog.service';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiClickOutsideModule, TuiButtonModule],\n declarations: [TuiSheetDialogComponent, TuiSheetDialogDirective],\n providers: [tuiAsDialog(TuiSheetDialogService)],\n exports: [TuiSheetDialogComponent, TuiSheetDialogDirective],\n})\nexport class TuiSheetDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AA0BA;AACA,SAAS,WAAW,GAAA;AAChB,IAAA,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;AAClC,CAAC;MAaY,uBAAuB,CAAA;IAoBhC,WACyC,CA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