@taiga-ui/addon-mobile 2.55.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,10 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TemplateRef,
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, Injector, ComponentFactoryResolver, ChangeDetectorRef, Directive, Inject, Input, Component, ChangeDetectionStrategy, HostBinding, NgModule } from '@angular/core';
|
|
3
3
|
import { TUI_ANIMATION_OPTIONS, tuiSlideIn } from '@taiga-ui/core';
|
|
4
|
-
import
|
|
4
|
+
import * as i1 from '@taiga-ui/cdk';
|
|
5
|
+
import { TuiDropdownPortalService, TuiActiveZoneModule } from '@taiga-ui/cdk';
|
|
6
|
+
import * as i2 from '@tinkoff/ng-polymorpheus';
|
|
5
7
|
import { PolymorpheusTemplate, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
class TuiSidebarDirective extends PolymorpheusTemplate {
|
|
8
10
|
constructor(content, injector, componentFactoryResolver, portalService, changeDetectorRef) {
|
|
9
11
|
super(content, changeDetectorRef);
|
|
10
12
|
this.content = content;
|
|
@@ -12,7 +14,7 @@ let TuiSidebarDirective = class TuiSidebarDirective extends PolymorpheusTemplate
|
|
|
12
14
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
13
15
|
this.portalService = portalService;
|
|
14
16
|
this.sidebarRef = null;
|
|
15
|
-
this.direction =
|
|
17
|
+
this.direction = `left`;
|
|
16
18
|
this.autoWidth = false;
|
|
17
19
|
}
|
|
18
20
|
set tuiSidebar(open) {
|
|
@@ -41,44 +43,49 @@ let TuiSidebarDirective = class TuiSidebarDirective extends PolymorpheusTemplate
|
|
|
41
43
|
this.portalService.remove(this.sidebarRef);
|
|
42
44
|
this.sidebarRef = null;
|
|
43
45
|
}
|
|
44
|
-
}
|
|
45
|
-
TuiSidebarDirective
|
|
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
|
-
],
|
|
46
|
+
}
|
|
47
|
+
TuiSidebarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarDirective, deps: [{ token: TemplateRef }, { token: Injector }, { token: ComponentFactoryResolver }, { token: TuiDropdownPortalService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
48
|
+
TuiSidebarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiSidebarDirective, selector: "[tuiSidebar]", inputs: { direction: ["tuiSidebarDirection", "direction"], autoWidth: ["tuiSidebarAutoWidth", "autoWidth"], tuiSidebar: "tuiSidebar" }, usesInheritance: true, ngImport: i0 });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarDirective, decorators: [{
|
|
50
|
+
type: Directive,
|
|
51
|
+
args: [{
|
|
52
|
+
selector: `[tuiSidebar]`,
|
|
53
|
+
}]
|
|
54
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
55
|
+
type: Inject,
|
|
56
|
+
args: [TemplateRef]
|
|
57
|
+
}] }, { type: i0.Injector, decorators: [{
|
|
58
|
+
type: Inject,
|
|
59
|
+
args: [Injector]
|
|
60
|
+
}] }, { type: i0.ComponentFactoryResolver, decorators: [{
|
|
61
|
+
type: Inject,
|
|
62
|
+
args: [ComponentFactoryResolver]
|
|
63
|
+
}] }, { type: i1.TuiDropdownPortalService, decorators: [{
|
|
64
|
+
type: Inject,
|
|
65
|
+
args: [TuiDropdownPortalService]
|
|
66
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
67
|
+
type: Inject,
|
|
68
|
+
args: [ChangeDetectorRef]
|
|
69
|
+
}] }]; }, propDecorators: { direction: [{
|
|
70
|
+
type: Input,
|
|
71
|
+
args: [`tuiSidebarDirection`]
|
|
72
|
+
}], autoWidth: [{
|
|
73
|
+
type: Input,
|
|
74
|
+
args: [`tuiSidebarAutoWidth`]
|
|
75
|
+
}], tuiSidebar: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}] } });
|
|
71
78
|
|
|
72
79
|
// @dynamic
|
|
73
|
-
|
|
80
|
+
class TuiSidebarComponent {
|
|
74
81
|
constructor(options, directive) {
|
|
75
82
|
this.options = options;
|
|
76
83
|
this.directive = directive;
|
|
77
|
-
this.left = Object.assign({ value:
|
|
78
|
-
this.right = Object.assign({ value:
|
|
84
|
+
this.left = Object.assign({ value: `left` }, this.options);
|
|
85
|
+
this.right = Object.assign({ value: `right` }, this.options);
|
|
79
86
|
}
|
|
80
87
|
get animation() {
|
|
81
|
-
return this.direction ===
|
|
88
|
+
return this.direction === `left` ? this.left : this.right;
|
|
82
89
|
}
|
|
83
90
|
get direction() {
|
|
84
91
|
return this.directive.direction;
|
|
@@ -92,39 +99,46 @@ let TuiSidebarComponent = class TuiSidebarComponent {
|
|
|
92
99
|
ngDoCheck() {
|
|
93
100
|
this.directive.check();
|
|
94
101
|
}
|
|
95
|
-
}
|
|
96
|
-
TuiSidebarComponent
|
|
97
|
-
{ type:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
],
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
],
|
|
102
|
+
}
|
|
103
|
+
TuiSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarComponent, deps: [{ token: TUI_ANIMATION_OPTIONS }, { token: TuiSidebarDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
TuiSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiSidebarComponent, selector: "aside[tuiSidebar]", host: { properties: { "@tuiSlideIn": "this.animation", "class": "this.direction" } }, ngImport: i0, template: "<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n", styles: [":host{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}:host:before,:host:after{position:absolute;top:0;left:0;width:100%;content:\"\";height:100%;background:rgba(0,0,0,.38);-webkit-animation:tuiFadeIn var(--tui-duration);animation:tuiFadeIn var(--tui-duration)}:host:before{left:-100%;width:200%}:host:after{left:100%}:host.ng-animating:before,:host.ng-animating:after{opacity:0;transition:opacity var(--tui-duration)}:host.right{justify-content:flex-end}:host.left{justify-content:flex-start}.t-wrapper{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width{width:auto}\n"], directives: [{ type: i1.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [tuiSlideIn], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarComponent, decorators: [{
|
|
106
|
+
type: Component,
|
|
107
|
+
args: [{
|
|
108
|
+
selector: `aside[tuiSidebar]`,
|
|
109
|
+
templateUrl: `./sidebar.template.html`,
|
|
110
|
+
styleUrls: [`./sidebar.style.less`],
|
|
111
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
112
|
+
animations: [tuiSlideIn],
|
|
113
|
+
}]
|
|
114
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
115
|
+
type: Inject,
|
|
116
|
+
args: [TUI_ANIMATION_OPTIONS]
|
|
117
|
+
}] }, { type: TuiSidebarDirective, decorators: [{
|
|
118
|
+
type: Inject,
|
|
119
|
+
args: [TuiSidebarDirective]
|
|
120
|
+
}] }]; }, propDecorators: { animation: [{
|
|
121
|
+
type: HostBinding,
|
|
122
|
+
args: [`@tuiSlideIn`]
|
|
123
|
+
}], direction: [{
|
|
124
|
+
type: HostBinding,
|
|
125
|
+
args: [`class`]
|
|
126
|
+
}] } });
|
|
117
127
|
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
TuiSidebarModule =
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
],
|
|
128
|
+
class TuiSidebarModule {
|
|
129
|
+
}
|
|
130
|
+
TuiSidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
131
|
+
TuiSidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, declarations: [TuiSidebarDirective, TuiSidebarComponent], imports: [TuiActiveZoneModule, PolymorpheusModule], exports: [TuiSidebarDirective] });
|
|
132
|
+
TuiSidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, imports: [[TuiActiveZoneModule, PolymorpheusModule]] });
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSidebarModule, decorators: [{
|
|
134
|
+
type: NgModule,
|
|
135
|
+
args: [{
|
|
136
|
+
imports: [TuiActiveZoneModule, PolymorpheusModule],
|
|
137
|
+
declarations: [TuiSidebarDirective, TuiSidebarComponent],
|
|
138
|
+
entryComponents: [TuiSidebarComponent],
|
|
139
|
+
exports: [TuiSidebarDirective],
|
|
140
|
+
}]
|
|
141
|
+
}] });
|
|
128
142
|
|
|
129
143
|
/**
|
|
130
144
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-directives-sidebar.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-directives-sidebar.js","sources":["../../../projects/addon-mobile/directives/sidebar/sidebar.directive.ts","../../../projects/addon-mobile/directives/sidebar/sidebar.component.ts","../../../projects/addon-mobile/directives/sidebar/sidebar.template.html","../../../projects/addon-mobile/directives/sidebar/sidebar.module.ts","../../../projects/addon-mobile/directives/sidebar/taiga-ui-addon-mobile-directives-sidebar.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n ComponentFactoryResolver,\n ComponentRef,\n Directive,\n Inject,\n Injector,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDropdownPortalService} from '@taiga-ui/cdk';\nimport {TuiHorizontalDirection} from '@taiga-ui/core';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\n\n@Directive({\n selector: `[tuiSidebar]`,\n})\nexport class TuiSidebarDirective<T = Record<string, unknown>>\n extends PolymorpheusTemplate<T>\n implements OnDestroy\n{\n private sidebarRef: ComponentRef<TuiSidebarComponent> | null = null;\n\n @Input(`tuiSidebarDirection`)\n direction: TuiHorizontalDirection = `left`;\n\n @Input(`tuiSidebarAutoWidth`)\n autoWidth = false;\n\n @Input()\n set tuiSidebar(open: boolean) {\n if (open) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n constructor(\n @Inject(TemplateRef) readonly content: TemplateRef<T>,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(ComponentFactoryResolver)\n private readonly componentFactoryResolver: ComponentFactoryResolver,\n @Inject(TuiDropdownPortalService)\n private readonly portalService: TuiDropdownPortalService,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(content, changeDetectorRef);\n }\n\n ngOnDestroy(): void {\n this.hide();\n }\n\n private show(): void {\n if (this.sidebarRef !== null) {\n return;\n }\n\n const componentFactory =\n this.componentFactoryResolver.resolveComponentFactory(TuiSidebarComponent);\n\n this.sidebarRef = this.portalService.add(componentFactory, this.injector);\n this.sidebarRef.changeDetectorRef.detectChanges();\n }\n\n private hide(): void {\n if (this.sidebarRef === null) {\n return;\n }\n\n this.portalService.remove(this.sidebarRef);\n this.sidebarRef = null;\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {\n TUI_ANIMATION_OPTIONS,\n TuiAnimationOptions,\n TuiHorizontalDirection,\n tuiSlideIn,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n// @dynamic\n@Component({\n selector: `aside[tuiSidebar]`,\n templateUrl: `./sidebar.template.html`,\n styleUrls: [`./sidebar.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideIn],\n})\nexport class TuiSidebarComponent implements DoCheck {\n private readonly left = {\n value: `left`,\n ...this.options,\n } as const;\n\n private readonly right = {\n value: `right`,\n ...this.options,\n } as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TuiSidebarDirective) private readonly directive: TuiSidebarDirective,\n ) {}\n\n @HostBinding(`@tuiSlideIn`)\n get animation(): TuiAnimationOptions {\n return this.direction === `left` ? this.left : this.right;\n }\n\n @HostBinding(`class`)\n get direction(): TuiHorizontalDirection {\n return this.directive.direction;\n }\n\n get content(): PolymorpheusContent {\n return this.directive.content;\n }\n\n get autoWidth(): boolean {\n return this.directive.autoWidth;\n }\n\n ngDoCheck(): void {\n this.directive.check();\n }\n}\n","<div\n tuiActiveZone\n class=\"t-wrapper\"\n [class.t-wrapper_auto-width]=\"autoWidth\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">\n {{ text }}\n </ng-container>\n</div>\n","import {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSidebarComponent} from './sidebar.component';\nimport {TuiSidebarDirective} from './sidebar.directive';\n\n@NgModule({\n imports: [TuiActiveZoneModule, PolymorpheusModule],\n declarations: [TuiSidebarDirective, TuiSidebarComponent],\n entryComponents: [TuiSidebarComponent],\n exports: [TuiSidebarDirective],\n})\nexport class TuiSidebarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAoBM,MAAO,mBACT,SAAQ,oBAAuB,CAAA;IAoB/B,WACkC,CAAA,OAAuB,EAClB,QAAkB,EAEpC,wBAA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,EAAE,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAGvC,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAEpB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EALhB,OAAA,EAAA,CAAA,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAA,EAAA,CAAA,CAAA;4FAKzC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;AAClD,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;oBACxD,eAAe,EAAE,CAAC,mBAAmB,CAAC;oBACtC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ElementRef, Renderer2, Directive, Optional, Inject, Input, NgModule } from '@angular/core';
|
|
4
|
+
import { tuiFindTouchIndex } from '@taiga-ui/addon-mobile/utils';
|
|
5
|
+
import * as i1 from '@taiga-ui/cdk';
|
|
4
6
|
import { typedFromEvent, TUI_IS_IOS, TuiDestroyService, tuiDefaultProp } from '@taiga-ui/cdk';
|
|
5
7
|
import { TUI_ELEMENT_REF } from '@taiga-ui/core';
|
|
6
8
|
import { race } from 'rxjs';
|
|
7
9
|
import { tap, map, switchMap, filter, take, takeUntil } from 'rxjs/operators';
|
|
8
10
|
|
|
9
11
|
const STYLE = {
|
|
10
|
-
transform:
|
|
11
|
-
opacity:
|
|
12
|
-
background:
|
|
12
|
+
transform: `scale(0.95)`,
|
|
13
|
+
opacity: `0.6`,
|
|
14
|
+
background: `rgba(146, 153, 162, 0.12)`,
|
|
13
15
|
};
|
|
14
|
-
|
|
16
|
+
class TuiTouchableDirective {
|
|
15
17
|
constructor(elementRef, isIos, { nativeElement }, renderer, destroy$) {
|
|
16
|
-
this.tuiTouchable =
|
|
18
|
+
this.tuiTouchable = ``;
|
|
17
19
|
if (!isIos) {
|
|
18
20
|
return;
|
|
19
21
|
}
|
|
20
22
|
const element = elementRef ? elementRef.nativeElement : nativeElement;
|
|
21
|
-
typedFromEvent(element,
|
|
23
|
+
typedFromEvent(element, `touchstart`, { passive: true })
|
|
22
24
|
.pipe(tap(() => {
|
|
23
25
|
this.onTouchStart(renderer, element);
|
|
24
|
-
}), map(({ touches }) => touches[touches.length - 1].identifier), switchMap(identifier => race(typedFromEvent(element,
|
|
26
|
+
}), map(({ touches }) => touches[touches.length - 1].identifier), switchMap(identifier => race(typedFromEvent(element, `touchmove`, { passive: true }).pipe(filter(({ touches }) => this.hasTouchLeft(element, touches, identifier))), typedFromEvent(element, `touchend`)).pipe(take(1))), takeUntil(destroy$))
|
|
25
27
|
.subscribe(() => {
|
|
26
|
-
renderer.removeStyle(element,
|
|
27
|
-
renderer.removeStyle(element,
|
|
28
|
-
renderer.removeStyle(element,
|
|
28
|
+
renderer.removeStyle(element, `transform`);
|
|
29
|
+
renderer.removeStyle(element, `opacity`);
|
|
30
|
+
renderer.removeStyle(element, `background`);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
33
|
get style() {
|
|
32
|
-
return this.tuiTouchable ||
|
|
34
|
+
return this.tuiTouchable || `transform`;
|
|
33
35
|
}
|
|
34
36
|
hasTouchLeft(element, touches, identifier) {
|
|
35
37
|
const { ownerDocument } = element;
|
|
36
|
-
const id =
|
|
38
|
+
const id = tuiFindTouchIndex(touches, identifier);
|
|
37
39
|
if (!ownerDocument || id === -1) {
|
|
38
40
|
return true;
|
|
39
41
|
}
|
|
@@ -41,46 +43,59 @@ let TuiTouchableDirective = class TuiTouchableDirective {
|
|
|
41
43
|
return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));
|
|
42
44
|
}
|
|
43
45
|
onTouchStart(renderer, element) {
|
|
44
|
-
if (this.style !==
|
|
45
|
-
renderer.removeStyle(element,
|
|
46
|
+
if (this.style !== `transform`) {
|
|
47
|
+
renderer.removeStyle(element, `transition`);
|
|
46
48
|
}
|
|
47
49
|
else {
|
|
48
|
-
renderer.setStyle(element,
|
|
50
|
+
renderer.setStyle(element, `transition`, `transform 0.2s`);
|
|
49
51
|
}
|
|
50
52
|
renderer.setStyle(element, this.style, STYLE[this.style]);
|
|
51
53
|
}
|
|
52
|
-
}
|
|
53
|
-
TuiTouchableDirective
|
|
54
|
-
|
|
55
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] },
|
|
56
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
57
|
-
{ type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] },
|
|
58
|
-
{ type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] }
|
|
59
|
-
];
|
|
54
|
+
}
|
|
55
|
+
TuiTouchableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableDirective, deps: [{ token: TUI_ELEMENT_REF, optional: true }, { token: TUI_IS_IOS }, { token: ElementRef }, { token: Renderer2 }, { token: TuiDestroyService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
56
|
+
TuiTouchableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTouchableDirective, selector: "[tuiTouchable]", inputs: { tuiTouchable: "tuiTouchable" }, providers: [TuiDestroyService], ngImport: i0 });
|
|
60
57
|
__decorate([
|
|
61
|
-
Input(),
|
|
62
58
|
tuiDefaultProp()
|
|
63
59
|
], TuiTouchableDirective.prototype, "tuiTouchable", void 0);
|
|
64
|
-
TuiTouchableDirective
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
]
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableDirective, decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{
|
|
63
|
+
selector: `[tuiTouchable]`,
|
|
64
|
+
providers: [TuiDestroyService],
|
|
65
|
+
}]
|
|
66
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
67
|
+
type: Optional
|
|
68
|
+
}, {
|
|
69
|
+
type: Inject,
|
|
70
|
+
args: [TUI_ELEMENT_REF]
|
|
71
|
+
}] }, { type: undefined, decorators: [{
|
|
72
|
+
type: Inject,
|
|
73
|
+
args: [TUI_IS_IOS]
|
|
74
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
75
|
+
type: Inject,
|
|
76
|
+
args: [ElementRef]
|
|
77
|
+
}] }, { type: i0.Renderer2, decorators: [{
|
|
78
|
+
type: Inject,
|
|
79
|
+
args: [Renderer2]
|
|
80
|
+
}] }, { type: i1.TuiDestroyService, decorators: [{
|
|
81
|
+
type: Inject,
|
|
82
|
+
args: [TuiDestroyService]
|
|
83
|
+
}] }]; }, propDecorators: { tuiTouchable: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}] } });
|
|
75
86
|
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
TuiTouchableModule =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
87
|
+
class TuiTouchableModule {
|
|
88
|
+
}
|
|
89
|
+
TuiTouchableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
90
|
+
TuiTouchableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule, declarations: [TuiTouchableDirective], exports: [TuiTouchableDirective] });
|
|
91
|
+
TuiTouchableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTouchableModule, decorators: [{
|
|
93
|
+
type: NgModule,
|
|
94
|
+
args: [{
|
|
95
|
+
declarations: [TuiTouchableDirective],
|
|
96
|
+
exports: [TuiTouchableDirective],
|
|
97
|
+
}]
|
|
98
|
+
}] });
|
|
84
99
|
|
|
85
100
|
/**
|
|
86
101
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-directives-touchable.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-directives-touchable.js","sources":["../../../projects/addon-mobile/directives/touchable/touchable.directive.ts","../../../projects/addon-mobile/directives/touchable/touchable.module.ts","../../../projects/addon-mobile/directives/touchable/taiga-ui-addon-mobile-directives-touchable.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input, Optional, Renderer2} from '@angular/core';\nimport {TuiTouchMode} from '@taiga-ui/addon-mobile/types';\nimport {tuiFindTouchIndex} from '@taiga-ui/addon-mobile/utils';\nimport {\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core';\nimport {race} from 'rxjs';\nimport {filter, map, switchMap, take, takeUntil, tap} from 'rxjs/operators';\n\nconst STYLE = {\n transform: `scale(0.95)`,\n opacity: `0.6`,\n background: `rgba(146, 153, 162, 0.12)`,\n} as const;\n\n@Directive({\n selector: `[tuiTouchable]`,\n providers: [TuiDestroyService],\n})\nexport class TuiTouchableDirective {\n @Input()\n @tuiDefaultProp()\n tuiTouchable: TuiTouchMode | '' = ``;\n\n constructor(\n @Optional() @Inject(TUI_ELEMENT_REF) elementRef: ElementRef<HTMLElement> | null,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!isIos) {\n return;\n }\n\n const element = elementRef ? elementRef.nativeElement : nativeElement;\n\n typedFromEvent(element, `touchstart`, {passive: true})\n .pipe(\n tap(() => {\n this.onTouchStart(renderer, element);\n }),\n map(({touches}) => touches[touches.length - 1].identifier),\n switchMap(identifier =>\n race(\n typedFromEvent(element, `touchmove`, {passive: true}).pipe(\n filter(({touches}) =>\n this.hasTouchLeft(element, touches, identifier),\n ),\n ),\n typedFromEvent(element, `touchend`),\n ).pipe(take(1)),\n ),\n takeUntil(destroy$),\n )\n .subscribe(() => {\n renderer.removeStyle(element, `transform`);\n renderer.removeStyle(element, `opacity`);\n renderer.removeStyle(element, `background`);\n });\n }\n\n get style(): TuiTouchMode {\n return this.tuiTouchable || `transform`;\n }\n\n private hasTouchLeft(\n element: HTMLElement,\n touches: TouchList,\n identifier: number,\n ): boolean {\n const {ownerDocument} = element;\n const id = tuiFindTouchIndex(touches, identifier);\n\n if (!ownerDocument || id === -1) {\n return true;\n }\n\n const {clientX, clientY} = touches[id];\n\n return !element.contains(ownerDocument.elementFromPoint(clientX, clientY));\n }\n\n private onTouchStart(renderer: Renderer2, element: HTMLElement): void {\n if (this.style !== `transform`) {\n renderer.removeStyle(element, `transition`);\n } else {\n renderer.setStyle(element, `transition`, `transform 0.2s`);\n }\n\n renderer.setStyle(element, this.style, STYLE[this.style]);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTouchableDirective} from './touchable.directive';\n\n@NgModule({\n declarations: [TuiTouchableDirective],\n exports: [TuiTouchableDirective],\n})\nexport class TuiTouchableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAaA,MAAM,KAAK,GAAG;AACV,IAAA,SAAS,EAAE,CAAa,WAAA,CAAA;AACxB,IAAA,OAAO,EAAE,CAAK,GAAA,CAAA;AACd,IAAA,UAAU,EAAE,CAA2B,yBAAA,CAAA;CACjC,CAAC;MAME,qBAAqB,CAAA;IAK9B,WACyC,CAAA,UAA0C,EAC3D,KAAc,EACd,EAAC,aAAa,EAA0B,EACzC,QAAmB,EACX,QAA2B,EAAA;QAP1D,IAAY,CAAA,YAAA,GAAsB,EAAE,CAAC;QASjC,IAAI,CAAC,KAAK,EAAE;YACR,OAAO;AACV,SAAA;AAED,QAAA,MAAM,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC,aAAa,GAAG,aAAa,CAAC;QAEtE,cAAc,CAAC,OAAO,EAAE,CAAY,UAAA,CAAA,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;AACjD,aAAA,IAAI,CACD,GAAG,CAAC,MAAK;AACL,YAAA,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzC,SAAC,CAAC,EACF,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC,EAC1D,SAAS,CAAC,UAAU,IAChB,IAAI,CACA,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACtD,MAAM,CAAC,CAAC,EAAC,OAAO,EAAC,KACb,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAClD,CACJ,EACD,cAAc,CAAC,OAAO,EAAE,CAAA,QAAA,CAAU,CAAC,CACtC,CAAC,IAAI,CAA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,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;iHAEtB,kBAAkB,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-directives.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-directives.js","sources":["../../../projects/addon-mobile/directives/taiga-ui-addon-mobile-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-interfaces.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-interfaces.js","sources":["../../../projects/addon-mobile/interfaces/taiga-ui-addon-mobile-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
|
@@ -1,55 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@taiga-ui/cdk';
|
|
3
4
|
import { TUI_IS_IOS, TuiRepeatTimesModule, TuiLetModule } from '@taiga-ui/cdk';
|
|
5
|
+
import * as i3 from '@taiga-ui/core';
|
|
4
6
|
import { TuiPrimitiveCalendarComponent, TUI_ORDERED_SHORT_WEEK_DAYS, TuiCalendarSheetPipeModule } from '@taiga-ui/core';
|
|
5
|
-
import
|
|
7
|
+
import * as i2 from '@taiga-ui/addon-mobile/directives/ripple';
|
|
6
8
|
import { TuiRippleModule } from '@taiga-ui/addon-mobile/directives/ripple';
|
|
9
|
+
import * as i4 from 'rxjs';
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
12
|
* @internal
|
|
10
13
|
* @dynamic
|
|
11
14
|
*/
|
|
12
|
-
|
|
15
|
+
class TuiPrimitiveCalendarMobileComponent extends TuiPrimitiveCalendarComponent {
|
|
13
16
|
constructor(isIOS, weekDays$) {
|
|
14
17
|
super(weekDays$);
|
|
15
18
|
this.isIOS = isIOS;
|
|
16
19
|
}
|
|
17
|
-
}
|
|
18
|
-
TuiPrimitiveCalendarMobileComponent
|
|
19
|
-
{ type:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
],
|
|
20
|
+
}
|
|
21
|
+
TuiPrimitiveCalendarMobileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileComponent, deps: [{ token: TUI_IS_IOS }, { token: TUI_ORDERED_SHORT_WEEK_DAYS }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
TuiPrimitiveCalendarMobileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiPrimitiveCalendarMobileComponent, selector: "tui-primitive-calendar-mobile", host: { properties: { "class._ios": "isIOS" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *tuiLet=\"month | tuiCalendarSheet as sheet\">\n <div\n *tuiRepeatTimes=\"let rowIndex of sheet.length\"\n automation-id=\"tui-primitive-calendar-mobile__row\"\n class=\"t-row\"\n >\n <div\n *tuiRepeatTimes=\"let colIndex of sheet[rowIndex].length\"\n automation-id=\"tui-primitive-calendar-mobile__cell\"\n tuiRipple\n class=\"t-cell\"\n [class.t-cell_today]=\"itemIsToday(sheet[rowIndex][colIndex])\"\n [class.t-cell_interval]=\"itemIsInterval(sheet[rowIndex][colIndex])\"\n [attr.data-state]=\"getItemState(sheet[rowIndex][colIndex])\"\n [attr.data-range]=\"getItemRange(sheet[rowIndex][colIndex])\"\n (click)=\"onItemClick(sheet[rowIndex][colIndex])\"\n >\n {{ sheet[rowIndex][colIndex].day }}\n </div>\n </div>\n</ng-container>\n", styles: [":host{display:block;font:var(--tui-font-text-m)}.t-row{position:relative;z-index:0;display:flex;justify-content:space-between;height:2.25rem}.t-item{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item:before,.t-item:after{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell{position:relative;display:flex;align-items:center;justify-content:center;width:2.75rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:2px solid transparent}.t-cell:before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today:after{position:absolute;left:50%;transform:translate(-50%);content:\"\";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-02)}.t-cell_interval:before{background:var(--tui-base-02)}:host._single .t-cell_interval:before{background:var(--tui-secondary-hover)}.t-cell_interval:not(:last-child):before{right:-2.75rem}.t-cell_interval:last-child:first-child:before{right:0}.t-cell_interval:first-child>.t-item{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval:last-child>.t-item{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval>.t-item{border-radius:0}.t-cell[data-range]:after{background-color:var(--tui-primary-text)}.t-cell[data-range]>.t-item{color:var(--tui-primary-text)}.t-cell[data-range]>.t-item:before,.t-cell[data-range]>.t-item:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover]>.t-item:before,.t-cell[data-range][data-state=hover]>.t-item:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active]>.t-item:before,.t-cell[data-range][data-state=active]>.t-item:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end]>.t-item:before{left:.25rem}.t-cell[data-range=end]>.t-item:after{left:-2rem;right:100%;transform:translate(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-range=start]>.t-item:before{right:.25rem}.t-cell[data-range=start]>.t-item:after{left:100%;right:-2rem;transform:translate(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.t-cell[data-state=disabled]{pointer-events:none}.t-cell[data-state=disabled]>.t-item{opacity:.36}.t-cell[data-state=hover]:hover:not([data-range])>.t-item{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active]:hover:not([data-range])>.t-item{background-color:var(--tui-secondary-active)}:host{width:20.75rem;max-width:100vw}:host._ios{width:22.625rem}.t-row{height:3rem;justify-content:flex-start}.t-row:first-child{justify-content:flex-end}:host._ios .t-row{height:3.125rem}.t-cell{height:2.75rem;border-radius:100%;margin-right:.25rem}.t-cell:last-child,:host._ios .t-cell:last-child{margin-right:0}.t-cell:before{right:-100vw}.t-cell:first-child:before{left:-100vw}.t-cell_today:after{height:.375rem;width:.375rem;background-color:var(--tui-link)}.t-cell_interval:before{background-color:var(--tui-base-02)}.t-cell_interval:last-child:first-child:before{right:-100vw}.t-cell[data-state=disabled]{opacity:var(--tui-disabled-opacity)}.t-cell[data-range=single],.t-cell[data-range=start],.t-cell[data-range=end]{border-radius:100%;background-color:var(--tui-link);color:var(--tui-accent-text);font-weight:500}.t-cell[data-range=single]:after,.t-cell[data-range=start]:after,.t-cell[data-range=end]:after{background-color:var(--tui-base-01)}:host._ios .t-cell[data-range=single],:host._ios .t-cell[data-range=start],:host._ios .t-cell[data-range=end]{font-weight:600}.t-cell[data-range=start]:before{left:50%;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end]:not(:first-child):before{left:50%;background:var(--tui-base-01);border-radius:0}.t-cell[data-range=end]:first-child:before{right:50%;background-color:var(--tui-base-02)}:host._ios .t-cell{margin-right:.5625rem}:host._ios .t-cell:before{border-radius:.5rem}@media screen and (max-width: 22.4375rem){.t-cell,:host._ios .t-cell{margin-right:.125rem}.t-cell:last-child,:host._ios .t-cell:last-child{margin-right:0}}\n"], directives: [{ type: i1.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i1.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { type: i2.TuiRippleDirective, selector: "[tuiRipple]", inputs: ["tuiRipple"] }], pipes: { "tuiCalendarSheet": i3.TuiCalendarSheetPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: `tui-primitive-calendar-mobile`,
|
|
27
|
+
templateUrl: `./primitive-calendar-mobile.template.html`,
|
|
28
|
+
styleUrls: [`./primitive-calendar-mobile.style.less`],
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
host: {
|
|
31
|
+
'[class._ios]': `isIOS`,
|
|
32
|
+
},
|
|
33
|
+
}]
|
|
34
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
35
|
+
type: Inject,
|
|
36
|
+
args: [TUI_IS_IOS]
|
|
37
|
+
}] }, { type: i4.Observable, decorators: [{
|
|
38
|
+
type: Inject,
|
|
39
|
+
args: [TUI_ORDERED_SHORT_WEEK_DAYS]
|
|
40
|
+
}] }]; } });
|
|
35
41
|
|
|
36
42
|
/**
|
|
37
43
|
* @internal
|
|
38
44
|
*/
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
TuiPrimitiveCalendarMobileModule =
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
class TuiPrimitiveCalendarMobileModule {
|
|
46
|
+
}
|
|
47
|
+
TuiPrimitiveCalendarMobileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
+
TuiPrimitiveCalendarMobileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, declarations: [TuiPrimitiveCalendarMobileComponent], imports: [TuiRepeatTimesModule,
|
|
49
|
+
TuiCalendarSheetPipeModule,
|
|
50
|
+
TuiRippleModule,
|
|
51
|
+
TuiLetModule], exports: [TuiPrimitiveCalendarMobileComponent] });
|
|
52
|
+
TuiPrimitiveCalendarMobileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, imports: [[
|
|
44
53
|
TuiRepeatTimesModule,
|
|
45
54
|
TuiCalendarSheetPipeModule,
|
|
46
55
|
TuiRippleModule,
|
|
47
56
|
TuiLetModule,
|
|
48
|
-
]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
]] });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPrimitiveCalendarMobileModule, decorators: [{
|
|
59
|
+
type: NgModule,
|
|
60
|
+
args: [{
|
|
61
|
+
imports: [
|
|
62
|
+
TuiRepeatTimesModule,
|
|
63
|
+
TuiCalendarSheetPipeModule,
|
|
64
|
+
TuiRippleModule,
|
|
65
|
+
TuiLetModule,
|
|
66
|
+
],
|
|
67
|
+
declarations: [TuiPrimitiveCalendarMobileComponent],
|
|
68
|
+
exports: [TuiPrimitiveCalendarMobileComponent],
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
53
71
|
|
|
54
72
|
/**
|
|
55
73
|
* Generated bundle index. Do not edit.
|