@taiga-ui/cdk 2.21.0 → 2.25.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/README.md +7 -3
- package/abstract/dialog.directive.d.ts +12 -0
- package/abstract/index.d.ts +1 -0
- package/abstract/taiga-ui-cdk-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js +56 -11
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-abstract.umd.min.js +2 -2
- package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +45 -45
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.min.js +2 -2
- package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +269 -0
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js +16 -0
- package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +1 -0
- package/bundles/taiga-ui-cdk-directives.umd.js +26 -18
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +11 -11
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +101 -43
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.min.js +2 -2
- package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +16 -9
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +8 -10
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +16 -9
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +1 -1
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.metadata.json +1 -1
- package/components/portal-host/taiga-ui-cdk-components-portal-host.metadata.json +1 -1
- package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
- package/date-time/index.d.ts +4 -4
- package/date-time/taiga-ui-cdk-date-time.metadata.json +1 -1
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.metadata.json +1 -1
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.metadata.json +1 -1
- package/directives/checked/taiga-ui-cdk-directives-checked.metadata.json +1 -1
- package/directives/drag/taiga-ui-cdk-directives-drag.metadata.json +1 -1
- package/directives/droppable/taiga-ui-cdk-directives-droppable.metadata.json +1 -1
- package/directives/element/taiga-ui-cdk-directives-element.metadata.json +1 -1
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.metadata.json +1 -1
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.metadata.json +1 -1
- package/directives/focusable/taiga-ui-cdk-directives-focusable.metadata.json +1 -1
- package/directives/focused/taiga-ui-cdk-directives-focused.metadata.json +1 -1
- package/directives/for/taiga-ui-cdk-directives-for.metadata.json +1 -1
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.metadata.json +1 -1
- package/directives/hovered/taiga-ui-cdk-directives-hovered.metadata.json +1 -1
- package/directives/index.d.ts +5 -4
- package/directives/input-mode/taiga-ui-cdk-directives-input-mode.metadata.json +1 -1
- package/directives/let/taiga-ui-cdk-directives-let.metadata.json +1 -1
- package/directives/media/taiga-ui-cdk-directives-media.metadata.json +1 -1
- package/directives/obscured/taiga-ui-cdk-directives-obscured.metadata.json +1 -1
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.metadata.json +1 -1
- package/directives/pan/taiga-ui-cdk-directives-pan.metadata.json +1 -1
- package/directives/pressed/taiga-ui-cdk-directives-pressed.metadata.json +1 -1
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.metadata.json +1 -1
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.metadata.json +1 -1
- package/directives/resize/taiga-ui-cdk-directives-resize.metadata.json +1 -1
- package/directives/swipe/taiga-ui-cdk-directives-swipe.metadata.json +1 -1
- package/directives/taiga-ui-cdk-directives.metadata.json +1 -1
- package/directives/validator/taiga-ui-cdk-directives-validator.metadata.json +1 -1
- package/directives/zoom/index.d.ts +2 -0
- package/directives/zoom/package.json +13 -0
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +4 -0
- package/directives/zoom/taiga-ui-cdk-directives-zoom.metadata.json +1 -0
- package/directives/zoom/zoom.directive.d.ts +5 -0
- package/directives/zoom/zoom.module.d.ts +5 -0
- package/enums/index.d.ts +1 -1
- package/enums/taiga-ui-cdk-enums.metadata.json +1 -1
- package/esm2015/abstract/control.js +7 -5
- package/esm2015/abstract/dialog.directive.js +35 -0
- package/esm2015/abstract/index.js +2 -1
- package/esm2015/abstract/interactive.js +9 -6
- package/esm2015/abstract/multiple-control.js +1 -1
- package/esm2015/abstract/nullable-control.js +1 -1
- package/esm2015/components/dialog-host/dialog-host.component.js +3 -3
- package/esm2015/components/dialog-host/dialog-host.module.js +1 -1
- package/esm2015/components/portal-host/portal-host.component.js +2 -2
- package/esm2015/components/portal-host/portal-host.module.js +1 -1
- package/esm2015/components/portal-host/portal.service.js +1 -1
- package/esm2015/constants/matcher.js +1 -1
- package/esm2015/date-time/date-fillers.js +1 -1
- package/esm2015/date-time/day-range.js +1 -1
- package/esm2015/date-time/day.js +1 -1
- package/esm2015/date-time/index.js +5 -5
- package/esm2015/date-time/month-range.js +1 -1
- package/esm2015/date-time/month.js +1 -1
- package/esm2015/date-time/time.js +1 -1
- package/esm2015/date-time/year.js +1 -1
- package/esm2015/directives/active-zone/active-zone.module.js +1 -1
- package/esm2015/directives/auto-focus/autofocus.module.js +1 -1
- package/esm2015/directives/autofilled/autofilled.module.js +1 -1
- package/esm2015/directives/checked/checked.module.js +1 -1
- package/esm2015/directives/drag/drag.module.js +1 -1
- package/esm2015/directives/droppable/droppable.module.js +1 -1
- package/esm2015/directives/element/element.module.js +1 -1
- package/esm2015/directives/focus-trap/focus-trap.module.js +1 -1
- package/esm2015/directives/focus-visible/focus-visible.module.js +1 -1
- package/esm2015/directives/focusable/focusable.module.js +1 -1
- package/esm2015/directives/focused/focused.module.js +1 -1
- package/esm2015/directives/for/for.module.js +1 -1
- package/esm2015/directives/high-dpi/high-dpi.module.js +1 -1
- package/esm2015/directives/hovered/hovered.module.js +1 -1
- package/esm2015/directives/index.js +6 -5
- package/esm2015/directives/input-mode/input-mode.module.js +1 -1
- package/esm2015/directives/let/let.directive.js +1 -1
- package/esm2015/directives/let/let.module.js +1 -1
- package/esm2015/directives/media/media.module.js +1 -1
- package/esm2015/directives/obscured/obscured.module.js +1 -1
- package/esm2015/directives/overscroll/overscroll.module.js +1 -1
- package/esm2015/directives/pan/pan.module.js +1 -1
- package/esm2015/directives/pressed/pressed.module.js +1 -1
- package/esm2015/directives/prevent-default/prevent-default.module.js +1 -1
- package/esm2015/directives/repeat-times/repeat-times.module.js +1 -1
- package/esm2015/directives/resize/resize.module.js +1 -1
- package/esm2015/directives/swipe/swipe.module.js +1 -1
- package/esm2015/directives/validator/validator.module.js +1 -1
- package/esm2015/directives/zoom/index.js +3 -0
- package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +5 -0
- package/esm2015/directives/zoom/zoom.directive.js +25 -0
- package/esm2015/directives/zoom/zoom.module.js +16 -0
- package/esm2015/enums/index.js +2 -2
- package/esm2015/interfaces/base-dialog-context.js +1 -1
- package/esm2015/interfaces/base-dialog.js +1 -1
- package/esm2015/interfaces/index.js +1 -1
- package/esm2015/interfaces/zoom.js +1 -0
- package/esm2015/observables/drag-and-drop-from.js +1 -1
- package/esm2015/observables/focus-visible-observable.js +1 -1
- package/esm2015/observables/mouse-drag-finish-from.js +1 -1
- package/esm2015/observables/pressed-observable.js +1 -1
- package/esm2015/pipes/filter/filter.module.js +1 -1
- package/esm2015/pipes/mapper/mapper.module.js +1 -1
- package/esm2015/services/focus-visible.service.js +1 -1
- package/esm2015/services/hovered.service.js +2 -2
- package/esm2015/services/index.js +3 -2
- package/esm2015/services/obscured.service.js +1 -1
- package/esm2015/services/resize.service.js +1 -1
- package/esm2015/services/static-request.service.js +1 -1
- package/esm2015/services/zoom.service.js +55 -0
- package/esm2015/tokens/active-element.js +4 -5
- package/esm2015/tokens/index.js +4 -3
- package/esm2015/tokens/is-android.js +1 -1
- package/esm2015/tokens/zoom-options.js +7 -0
- package/esm2015/types/index.js +1 -1
- package/esm2015/utils/dom/contains-or-after.js +2 -4
- package/esm2015/utils/dom/get-element-obscurers.js +1 -1
- package/esm2015/utils/dom/index.js +2 -2
- package/esm2015/utils/focus/get-closest-keyboard-focusable.js +1 -1
- package/esm2015/utils/miscellaneous/distance-between-touches.js +4 -0
- package/esm2015/utils/miscellaneous/fallback-value.js +2 -1
- package/esm2015/utils/miscellaneous/index.js +3 -2
- package/esm5/abstract/control.js +7 -5
- package/esm5/abstract/dialog.directive.js +44 -0
- package/esm5/abstract/index.js +2 -1
- package/esm5/abstract/interactive.js +9 -6
- package/esm5/abstract/multiple-control.js +1 -1
- package/esm5/abstract/nullable-control.js +1 -1
- package/esm5/components/dialog-host/dialog-host.component.js +3 -3
- package/esm5/components/dialog-host/dialog-host.module.js +1 -1
- package/esm5/components/portal-host/portal-host.component.js +2 -2
- package/esm5/components/portal-host/portal-host.module.js +1 -1
- package/esm5/components/portal-host/portal.service.js +1 -1
- package/esm5/constants/matcher.js +1 -1
- package/esm5/date-time/date-fillers.js +1 -1
- package/esm5/date-time/day-range.js +1 -1
- package/esm5/date-time/day.js +1 -1
- package/esm5/date-time/index.js +5 -5
- package/esm5/date-time/month-range.js +1 -1
- package/esm5/date-time/month.js +1 -1
- package/esm5/date-time/time.js +1 -1
- package/esm5/date-time/year.js +1 -1
- package/esm5/directives/active-zone/active-zone.module.js +1 -1
- package/esm5/directives/auto-focus/autofocus.module.js +1 -1
- package/esm5/directives/autofilled/autofilled.module.js +1 -1
- package/esm5/directives/checked/checked.module.js +1 -1
- package/esm5/directives/drag/drag.module.js +1 -1
- package/esm5/directives/droppable/droppable.module.js +1 -1
- package/esm5/directives/element/element.module.js +1 -1
- package/esm5/directives/focus-trap/focus-trap.module.js +1 -1
- package/esm5/directives/focus-visible/focus-visible.module.js +1 -1
- package/esm5/directives/focusable/focusable.module.js +1 -1
- package/esm5/directives/focused/focused.module.js +1 -1
- package/esm5/directives/for/for.module.js +1 -1
- package/esm5/directives/high-dpi/high-dpi.module.js +1 -1
- package/esm5/directives/hovered/hovered.module.js +1 -1
- package/esm5/directives/index.js +6 -5
- package/esm5/directives/input-mode/input-mode.module.js +1 -1
- package/esm5/directives/let/let.directive.js +1 -1
- package/esm5/directives/let/let.module.js +1 -1
- package/esm5/directives/media/media.module.js +1 -1
- package/esm5/directives/obscured/obscured.module.js +1 -1
- package/esm5/directives/overscroll/overscroll.module.js +1 -1
- package/esm5/directives/pan/pan.module.js +1 -1
- package/esm5/directives/pressed/pressed.module.js +1 -1
- package/esm5/directives/prevent-default/prevent-default.module.js +1 -1
- package/esm5/directives/repeat-times/repeat-times.module.js +1 -1
- package/esm5/directives/resize/resize.module.js +1 -1
- package/esm5/directives/swipe/swipe.module.js +1 -1
- package/esm5/directives/validator/validator.module.js +1 -1
- package/esm5/directives/zoom/index.js +3 -0
- package/esm5/directives/zoom/taiga-ui-cdk-directives-zoom.js +5 -0
- package/esm5/directives/zoom/zoom.directive.js +26 -0
- package/esm5/directives/zoom/zoom.module.js +19 -0
- package/esm5/enums/index.js +2 -2
- package/esm5/interfaces/base-dialog-context.js +1 -1
- package/esm5/interfaces/base-dialog.js +1 -1
- package/esm5/interfaces/index.js +1 -1
- package/esm5/interfaces/zoom.js +1 -0
- package/esm5/observables/drag-and-drop-from.js +1 -1
- package/esm5/observables/focus-visible-observable.js +1 -1
- package/esm5/observables/mouse-drag-finish-from.js +1 -1
- package/esm5/observables/pressed-observable.js +1 -1
- package/esm5/pipes/filter/filter.module.js +1 -1
- package/esm5/pipes/mapper/mapper.module.js +1 -1
- package/esm5/services/focus-visible.service.js +1 -1
- package/esm5/services/hovered.service.js +2 -2
- package/esm5/services/index.js +3 -2
- package/esm5/services/obscured.service.js +1 -1
- package/esm5/services/resize.service.js +1 -1
- package/esm5/services/static-request.service.js +1 -1
- package/esm5/services/zoom.service.js +65 -0
- package/esm5/tokens/active-element.js +5 -5
- package/esm5/tokens/index.js +4 -3
- package/esm5/tokens/is-android.js +1 -1
- package/esm5/tokens/zoom-options.js +7 -0
- package/esm5/types/index.js +1 -1
- package/esm5/utils/dom/contains-or-after.js +2 -4
- package/esm5/utils/dom/get-element-obscurers.js +1 -1
- package/esm5/utils/dom/index.js +2 -2
- package/esm5/utils/focus/get-closest-keyboard-focusable.js +1 -1
- package/esm5/utils/miscellaneous/distance-between-touches.js +5 -0
- package/esm5/utils/miscellaneous/fallback-value.js +2 -1
- package/esm5/utils/miscellaneous/index.js +3 -2
- package/fesm2015/taiga-ui-cdk-abstract.js +47 -12
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-portal-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-portal-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +43 -43
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +43 -0
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-directives.js +5 -4
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +11 -11
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +81 -33
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +15 -10
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +8 -10
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +15 -10
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm5/taiga-ui-cdk-abstract.js +56 -12
- package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-dialog-host.js +1 -1
- package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-portal-host.js +1 -1
- package/fesm5/taiga-ui-cdk-components-portal-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm5/taiga-ui-cdk-date-time.js +43 -43
- package/fesm5/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-zoom.js +47 -0
- package/fesm5/taiga-ui-cdk-directives-zoom.js.map +1 -0
- package/fesm5/taiga-ui-cdk-directives.js +5 -4
- package/fesm5/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm5/taiga-ui-cdk-enums.js +11 -11
- package/fesm5/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm5/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm5/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm5/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm5/taiga-ui-cdk-services.js +101 -43
- package/fesm5/taiga-ui-cdk-services.js.map +1 -1
- package/fesm5/taiga-ui-cdk-tokens.js +16 -10
- package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-dom.js +8 -10
- package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +16 -10
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/interfaces/index.d.ts +2 -1
- package/interfaces/taiga-ui-cdk-interfaces.metadata.json +1 -1
- package/interfaces/zoom.d.ts +9 -0
- package/observables/taiga-ui-cdk-observables.metadata.json +1 -1
- package/package.json +3 -3
- package/pipes/filter/taiga-ui-cdk-pipes-filter.metadata.json +1 -1
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.metadata.json +1 -1
- package/services/index.d.ts +2 -1
- package/services/taiga-ui-cdk-services.metadata.json +1 -1
- package/services/zoom.service.d.ts +6 -0
- package/tokens/index.d.ts +3 -2
- package/tokens/taiga-ui-cdk-tokens.metadata.json +1 -1
- package/tokens/zoom-options.d.ts +3 -0
- package/types/index.d.ts +1 -1
- package/types/taiga-ui-cdk-types.metadata.json +1 -1
- package/utils/dom/index.d.ts +1 -1
- package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
- package/utils/miscellaneous/distance-between-touches.d.ts +1 -0
- package/utils/miscellaneous/fallback-value.d.ts +1 -0
- package/utils/miscellaneous/index.d.ts +2 -1
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-focus-trap.js","sources":["ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.directive.ts","ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.module.ts","ng://@taiga-ui/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Renderer2,\n} from '@angular/core';\nimport {containsOrAfter} from '@taiga-ui/cdk/utils/dom';\nimport {\n blurNativeFocused,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n// @dynamic\n@Directive({\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n },\n})\nexport class TuiFocusTrapDirective implements OnDestroy {\n private readonly activeElement = getNativeFocused(this.documentRef);\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n /**\n * This would cause currently focused element to lose focus\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n Promise.resolve().then(() => {\n setNativeFocused(this.elementRef.nativeElement);\n });\n }\n\n @HostListener('blur')\n onBlur() {\n this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabIndex');\n }\n\n @HostListener('window:focusin.silent', ['$event.target'])\n onFocusIn(node: Node) {\n if (containsOrAfter(this.elementRef.nativeElement, node)) {\n return;\n }\n\n const focusable = getClosestFocusable(\n this.elementRef.nativeElement,\n false,\n this.elementRef.nativeElement,\n );\n\n if (focusable) {\n setNativeFocused(focusable);\n }\n }\n\n ngOnDestroy() {\n blurNativeFocused(this.documentRef);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n Promise.resolve().then(() => {\n // TODO: iframe warning\n if (this.activeElement instanceof HTMLElement) {\n setNativeFocused(this.activeElement);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiFocusTrapDirective} from './focus-trap.directive';\n\n@NgModule({\n declarations: [TuiFocusTrapDirective],\n exports: [TuiFocusTrapDirective],\n})\nexport class TuiFocusTrapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAiBA;;IAUI,+BACuC,WAAqB,EAEvC,UAAmC,EAChB,QAAmB;QAJ3D,iBAcC;QAbsC,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAChB,aAAQ,GAAR,QAAQ,CAAW;QAN1C,kBAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,W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,CAAC;QAKO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;OAPb,qBAAqB,CAyDjC;IAAD,4BAAC;CAzDD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-focus-trap.js","sources":["ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.directive.ts","ng://@taiga-ui/cdk/directives/focus-trap/focus-trap.module.ts","ng://@taiga-ui/cdk/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Renderer2,\n} from '@angular/core';\nimport {containsOrAfter} from '@taiga-ui/cdk/utils/dom';\nimport {\n blurNativeFocused,\n getClosestFocusable,\n getNativeFocused,\n setNativeFocused,\n} from '@taiga-ui/cdk/utils/focus';\n\n// @dynamic\n@Directive({\n selector: '[tuiFocusTrap]',\n host: {\n tabIndex: '0',\n },\n})\nexport class TuiFocusTrapDirective implements OnDestroy {\n private readonly activeElement = getNativeFocused(this.documentRef);\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n ) {\n /**\n * This would cause currently focused element to lose focus\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n Promise.resolve().then(() => {\n setNativeFocused(this.elementRef.nativeElement);\n });\n }\n\n @HostListener('blur')\n onBlur() {\n this.renderer.removeAttribute(this.elementRef.nativeElement, 'tabIndex');\n }\n\n @HostListener('window:focusin.silent', ['$event.target'])\n onFocusIn(node: Node) {\n if (containsOrAfter(this.elementRef.nativeElement, node)) {\n return;\n }\n\n const focusable = getClosestFocusable(\n this.elementRef.nativeElement,\n false,\n this.elementRef.nativeElement,\n );\n\n if (focusable) {\n setNativeFocused(focusable);\n }\n }\n\n ngOnDestroy() {\n blurNativeFocused(this.documentRef);\n\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n Promise.resolve().then(() => {\n // TODO: iframe warning\n if (this.activeElement instanceof HTMLElement) {\n setNativeFocused(this.activeElement);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusTrapDirective} from './focus-trap.directive';\n\n@NgModule({\n declarations: [TuiFocusTrapDirective],\n exports: [TuiFocusTrapDirective],\n})\nexport class TuiFocusTrapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAiBA;;IAUI,+BACuC,WAAqB,EAEvC,UAAmC,EAChB,QAAmB;QAJ3D,iBAcC;QAbsC,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAChB,aAAQ,GAAR,QAAQ,CAAW;QAN1C,kBAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;;;;;;QAahE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;YACnB,gBAAgB,CAAC,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACnD,CAAC,CAAC;KACN;IAGD,sCAAM,GAAN;QACI,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;KAC5E;IAGD,yCAAS,GAAT,UAAU,IAAU;QAChB,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE;YACtD,OAAO;SACV;QAED,IAAM,SAAS,GAAG,mBAAmB,CACjC,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,KAAK,EACL,IAAI,CAAC,UAAU,C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k/directives/focus-visible/focus-visible.module.ts","ng://@taiga-ui/cdk/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n/**\n * Directive to imitate :focus-visible\n * (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n * in browsers that do not support it\n * @dynamic\n */\n@Directive({\n selector: '[tuiFocusVisibleChange]',\n outputs: ['tuiFocusVisibleChange'],\n providers: [TuiDestroyService, TuiFocusVisibleService],\n})\nexport class TuiFocusVisibleDirective {\n constructor(\n @Inject(TuiFocusVisibleService)\n readonly tuiFocusVisibleChange: Observable<boolean>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiFocusVisibleDirective} from './focus-visible.directive';\n\n@NgModule({\n declarations: [TuiFocusVisibleDirective],\n exports: [TuiFocusVisibleDirective],\n})\nexport class TuiFocusVisibleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;;IAYI,kCAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;;gBADgC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;IAFzB,wBAAwB;QALpC,SAAS,CAAC;YACP,QAAQ,EAAE,yBAAyB;YACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;YAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;SACzD,CAAC;QAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;OAF1B,wBAAwB,CAKpC;IAAD,+BAAC;CALD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-focus-visible.js","sources":["ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.directive.ts","ng://@taiga-ui/cdk/directives/focus-visible/focus-visible.module.ts","ng://@taiga-ui/cdk/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n/**\n * Directive to imitate :focus-visible\n * (https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n * in browsers that do not support it\n * @dynamic\n */\n@Directive({\n selector: '[tuiFocusVisibleChange]',\n outputs: ['tuiFocusVisibleChange'],\n providers: [TuiDestroyService, TuiFocusVisibleService],\n})\nexport class TuiFocusVisibleDirective {\n constructor(\n @Inject(TuiFocusVisibleService)\n readonly tuiFocusVisibleChange: Observable<boolean>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusVisibleDirective} from './focus-visible.directive';\n\n@NgModule({\n declarations: [TuiFocusVisibleDirective],\n exports: [TuiFocusVisibleDirective],\n})\nexport class TuiFocusVisibleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;;IAYI,kCAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;;gBADgC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;IAFzB,wBAAwB;QALpC,SAAS,CAAC;YACP,QAAQ,EAAE,yBAAyB;YACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;YAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;SACzD,CAAC;QAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;OAF1B,wBAAwB,CAKpC;IAAD,+BAAC;CALD;;;ICPA;KAAqC;IAAxB,qBAAqB;QAJjC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-focusable.js","sources":["ng://@taiga-ui/cdk/directives/focusable/focusable.directive.ts","ng://@taiga-ui/cdk/directives/focusable/focusable.module.ts","ng://@taiga-ui/cdk/directives/focusable/taiga-ui-cdk-directives-focusable.ts"],"sourcesContent":["import {Directive, HostBinding, Input} from '@angular/core';\n\n/**\n * Abstraction over `tabindex`\n */\n@Directive({\n selector: '[tuiFocusable]',\n})\nexport class TuiFocusableDirective {\n /**\n * Element can be focused with keyboard\n */\n @Input('tuiFocusable')\n focusable = true;\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiFocusableDirective} from './focusable.directive';\n\n@NgModule({\n declarations: [TuiFocusableDirective],\n exports: [TuiFocusableDirective],\n})\nexport class TuiFocusableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;IAMA;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,sBAAI,2CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SAClC;;;OAAA;IALD;QADC,KAAK,CAAC,cAAc,CAAC;4DACL;IAGjB;QADC,WAAW,CAAC,UAAU,CAAC;yDAGvB;IAVQ,qBAAqB;QAHjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;SAC7B,CAAC;OACW,qBAAqB,CAWjC;IAAD,4BAAC;CAXD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-focusable.js","sources":["ng://@taiga-ui/cdk/directives/focusable/focusable.directive.ts","ng://@taiga-ui/cdk/directives/focusable/focusable.module.ts","ng://@taiga-ui/cdk/directives/focusable/taiga-ui-cdk-directives-focusable.ts"],"sourcesContent":["import {Directive, HostBinding, Input} from '@angular/core';\n\n/**\n * Abstraction over `tabindex`\n */\n@Directive({\n selector: '[tuiFocusable]',\n})\nexport class TuiFocusableDirective {\n /**\n * Element can be focused with keyboard\n */\n @Input('tuiFocusable')\n focusable = true;\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.focusable ? 0 : -1;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusableDirective} from './focusable.directive';\n\n@NgModule({\n declarations: [TuiFocusableDirective],\n exports: [TuiFocusableDirective],\n})\nexport class TuiFocusableModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;IAMA;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,sBAAI,2CAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SAClC;;;OAAA;IALD;QADC,KAAK,CAAC,cAAc,CAAC;4DACL;IAGjB;QADC,WAAW,CAAC,UAAU,CAAC;yDAGvB;IAVQ,qBAAqB;QAHjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;SAC7B,CAAC;OACW,qBAAqB,CAWjC;IAAD,4BAAC;CAXD;;;ICAA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-focused.js","sources":["ng://@taiga-ui/cdk/directives/focused/focused.directive.ts","ng://@taiga-ui/cdk/directives/focused/focused.module.ts","ng://@taiga-ui/cdk/directives/focused/taiga-ui-cdk-directives-focused.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n/**\n * Directive to monitor focus/blur status, works with focusIn/focus-out\n * instead of focus/blur to sync events order with Internet Explorer and\n * other focus related directives that require bubbling\n */\n@Directive({\n selector: '[tuiFocusedChange]',\n})\nexport class TuiFocusedDirective {\n @Output()\n readonly tuiFocusedChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef)\n {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n ) {\n this.tuiFocusedChange = merge(\n typedFromEvent(nativeElement, 'focusin'),\n typedFromEvent(nativeElement, 'focusout'),\n ).pipe(\n map(() => isNativeFocused(nativeElement)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(ngZone),\n );\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiFocusedDirective} from './focused.directive';\n\n@NgModule({\n declarations: [TuiFocusedDirective],\n exports: [TuiFocusedDirective],\n})\nexport class TuiFocusedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;IAYI,6BAEI,EAAwC,EACxB,MAAc;YAD7B,gCAAa;QAGd,IAAI,CAAC,gBAAgB,GAAG,KAAK,CACzB,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,CAC5C,CAAC,IAAI,CACF,GAAG,CAAC,cAAM,OAAA,eAAe,CAAC,aAAa,CAAC,GAAA,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;;gBAboB,UAAU,uBAD1B,MAAM,SAAC,UAAU;gBAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;IALlB;QADC,MAAM,EAAE;iEACsC;IAFtC,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;OAPV,mBAAmB,CAoB/B;IAAD,0BAAC;CApBD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-focused.js","sources":["ng://@taiga-ui/cdk/directives/focused/focused.directive.ts","ng://@taiga-ui/cdk/directives/focused/focused.module.ts","ng://@taiga-ui/cdk/directives/focused/taiga-ui-cdk-directives-focused.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, NgZone, Output} from '@angular/core';\nimport {tuiZoneOptimized, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, skip, startWith} from 'rxjs/operators';\n\n/**\n * Directive to monitor focus/blur status, works with focusIn/focus-out\n * instead of focus/blur to sync events order with Internet Explorer and\n * other focus related directives that require bubbling\n */\n@Directive({\n selector: '[tuiFocusedChange]',\n})\nexport class TuiFocusedDirective {\n @Output()\n readonly tuiFocusedChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef)\n {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n ) {\n this.tuiFocusedChange = merge(\n typedFromEvent(nativeElement, 'focusin'),\n typedFromEvent(nativeElement, 'focusout'),\n ).pipe(\n map(() => isNativeFocused(nativeElement)),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(ngZone),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFocusedDirective} from './focused.directive';\n\n@NgModule({\n declarations: [TuiFocusedDirective],\n exports: [TuiFocusedDirective],\n})\nexport class TuiFocusedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;IAYI,6BAEI,EAAwC,EACxB,MAAc;YAD7B,gCAAa;QAGd,IAAI,CAAC,gBAAgB,GAAG,KAAK,CACzB,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,EACxC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,CAC5C,CAAC,IAAI,CACF,GAAG,CAAC,cAAM,OAAA,eAAe,CAAC,aAAa,CAAC,GAAA,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;;gBAboB,UAAU,uBAD1B,MAAM,SAAC,UAAU;gBAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;IALlB;QADC,MAAM,EAAE;iEACsC;IAFtC,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;OAPV,mBAAmB,CAoB/B;IAAD,0BAAC;CApBD;;;ICNA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-for.js","sources":["ng://@taiga-ui/cdk/directives/for/for.directive.ts","ng://@taiga-ui/cdk/directives/for/for.module.ts","ng://@taiga-ui/cdk/directives/for/taiga-ui-cdk-directives-for.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Input,\n OnChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]',\n})\nexport class TuiForDirective implements OnChanges {\n @Input()\n ngForOf: unknown[] | null = [];\n\n @Input()\n ngForElse?: TemplateRef<{}>;\n\n @Input()\n ngForEmpty?: TemplateRef<{}>;\n\n private ref?: EmbeddedViewRef<{}>;\n\n constructor(private readonly vcr: ViewContainerRef) {}\n\n ngOnChanges() {\n this.ref?.destroy();\n\n if (this.ngForOf?.length === 0 && this.ngForEmpty) {\n this.ref = this.vcr.createEmbeddedView(this.ngForEmpty);\n } else if (!this.ngForOf && this.ngForElse) {\n this.ref = this.vcr.createEmbeddedView(this.ngForElse);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiForDirective} from './for.directive';\n\n@NgModule({\n declarations: [TuiForDirective],\n exports: [TuiForDirective],\n})\nexport class TuiForModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAwBI,yBAA6B,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAVlD,YAAO,GAAqB,EAAE,CAAC;KAUuB;IAEtD,qCAAW,GAAX;;QACI,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,GAAG;QAEpB,IAAI,OAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,MAAK,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE;YAC/C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YACxC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D;KACJ;;gBAViC,gBAAgB;;IAVlD;QADC,KAAK,EAAE;oDACuB;IAG/B;QADC,KAAK,EAAE;sDACoB;IAG5B;QADC,KAAK,EAAE;uDACqB;IARpB,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,0DAA0D;SACvE,CAAC;OACW,eAAe,CAuB3B;IAAD,sBAAC;CAvBD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-for.js","sources":["ng://@taiga-ui/cdk/directives/for/for.directive.ts","ng://@taiga-ui/cdk/directives/for/for.module.ts","ng://@taiga-ui/cdk/directives/for/taiga-ui-cdk-directives-for.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Input,\n OnChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]',\n})\nexport class TuiForDirective implements OnChanges {\n @Input()\n ngForOf: unknown[] | null = [];\n\n @Input()\n ngForElse?: TemplateRef<{}>;\n\n @Input()\n ngForEmpty?: TemplateRef<{}>;\n\n private ref?: EmbeddedViewRef<{}>;\n\n constructor(private readonly vcr: ViewContainerRef) {}\n\n ngOnChanges() {\n this.ref?.destroy();\n\n if (this.ngForOf?.length === 0 && this.ngForEmpty) {\n this.ref = this.vcr.createEmbeddedView(this.ngForEmpty);\n } else if (!this.ngForOf && this.ngForElse) {\n this.ref = this.vcr.createEmbeddedView(this.ngForElse);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForDirective} from './for.directive';\n\n@NgModule({\n declarations: [TuiForDirective],\n exports: [TuiForDirective],\n})\nexport class TuiForModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAwBI,yBAA6B,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAVlD,YAAO,GAAqB,EAAE,CAAC;KAUuB;IAEtD,qCAAW,GAAX;;QACI,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,GAAG;QAEpB,IAAI,OAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,MAAK,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE;YAC/C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YACxC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D;KACJ;;gBAViC,gBAAgB;;IAVlD;QADC,KAAK,EAAE;oDACuB;IAG/B;QADC,KAAK,EAAE;sDACoB;IAG5B;QADC,KAAK,EAAE;uDACqB;IARpB,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,0DAA0D;SACvE,CAAC;OACW,eAAe,CAuB3B;IAAD,sBAAC;CAvBD;;;ICJA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-high-dpi.js","sources":["ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.directive.ts","ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.module.ts","ng://@taiga-ui/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n * @dynamic\n */\n@Directive({\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpiDirective {\n constructor(\n @Inject(WINDOW) {devicePixelRatio}: Window,\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<unknown>,\n ) {\n if (devicePixelRatio > 1) {\n viewContainer.createEmbeddedView(templateRef);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHighDpiDirective} from './high-dpi.directive';\n\n@NgModule({\n declarations: [TuiHighDpiDirective],\n exports: [TuiHighDpiDirective],\n})\nexport class TuiHighDpiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;IAQI,6BACoB,EAA0B,EAChB,aAA+B,EACpC,WAAiC;YAFrC,sCAAgB;QAIjC,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;;gBAPuC,MAAM,uBAAzC,MAAM,SAAC,MAAM;gBAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJd,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,cAAc;SAC3B,CAAC;QAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAJf,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-high-dpi.js","sources":["ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.directive.ts","ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.module.ts","ng://@taiga-ui/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n * @dynamic\n */\n@Directive({\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpiDirective {\n constructor(\n @Inject(WINDOW) {devicePixelRatio}: Window,\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<unknown>,\n ) {\n if (devicePixelRatio > 1) {\n viewContainer.createEmbeddedView(templateRef);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHighDpiDirective} from './high-dpi.directive';\n\n@NgModule({\n declarations: [TuiHighDpiDirective],\n exports: [TuiHighDpiDirective],\n})\nexport class TuiHighDpiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;IAQI,6BACoB,EAA0B,EAChB,aAA+B,EACpC,WAAiC;YAFrC,sCAAgB;QAIjC,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;;gBAPuC,MAAM,uBAAzC,MAAM,SAAC,MAAM;gBAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJd,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,cAAc;SAC3B,CAAC;QAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAJf,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;ICFA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {TuiHoveredService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<Element>,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n this.tuiHoveredChange = hoveredService.createHovered$(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAWI,6BACwB,EAAoC,EAC7B,cAAiC;YADvC,gCAAa;QAGlC,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;KACxE;;gBAJwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACyB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IAJ7B;QADC,MAAM,EAAE;iEACsC;IAFtC,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OANrB,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {TuiHoveredService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange: Observable<boolean>;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<Element>,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n this.tuiHoveredChange = hoveredService.createHovered$(nativeElement);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAWI,6BACwB,EAAoC,EAC7B,cAAiC;YADvC,gCAAa;QAGlC,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;KACxE;;gBAJwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACyB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IAJ7B;QADC,MAAM,EAAE;iEACsC;IAFtC,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OANrB,mBAAmB,CAU/B;IAAD,0BAAC;CAVD;;;ICCA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-input-mode.js","sources":["ng://@taiga-ui/cdk/directives/input-mode/input-mode.directive.ts","ng://@taiga-ui/cdk/directives/input-mode/input-mode.module.ts","ng://@taiga-ui/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputModeT} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector: 'input[tuiInputMode]',\n})\nexport class TuiInputModeDirective {\n @Input('tuiInputMode')\n @HostBinding('attr.inputmode')\n @HostBinding('attr.x-inputmode')\n mode: TuiInputModeT = 'text';\n\n constructor(\n @Attribute('pattern') private readonly pattern: string | null,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {}\n\n @HostBinding('attr.pattern')\n get patternAttribute(): string | null {\n return this.mode === 'numeric' && this.isIOS && !this.pattern\n ? '[0-9]*'\n : this.pattern;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiInputModeDirective} from './input-mode.directive';\n\n@NgModule({\n declarations: [TuiInputModeDirective],\n exports: [TuiInputModeDirective],\n})\nexport class TuiInputModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;IAYI,+BAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;kBACvD,QAAQ;kBACR,IAAI,CAAC,OAAO,CAAC;SACtB;;;OAAA;;6CATI,SAAS,SAAC,SAAS;8CACnB,MAAM,SAAC,UAAU;;IAJtB;QAHC,KAAK,CAAC,cAAc,CAAC;QACrB,WAAW,CAAC,gBAAgB,CAAC;QAC7B,WAAW,CAAC,kBAAkB,CAAC;uDACH;IAQ7B;QADC,WAAW,CAAC,cAAc,CAAC;iEAK3B;IAhBQ,qBAAqB;QAHjC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OARd,qBAAqB,CAiBjC;IAAD,4BAAC;CAjBD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-input-mode.js","sources":["ng://@taiga-ui/cdk/directives/input-mode/input-mode.directive.ts","ng://@taiga-ui/cdk/directives/input-mode/input-mode.module.ts","ng://@taiga-ui/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputModeT} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector: 'input[tuiInputMode]',\n})\nexport class TuiInputModeDirective {\n @Input('tuiInputMode')\n @HostBinding('attr.inputmode')\n @HostBinding('attr.x-inputmode')\n mode: TuiInputModeT = 'text';\n\n constructor(\n @Attribute('pattern') private readonly pattern: string | null,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {}\n\n @HostBinding('attr.pattern')\n get patternAttribute(): string | null {\n return this.mode === 'numeric' && this.isIOS && !this.pattern\n ? '[0-9]*'\n : this.pattern;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiInputModeDirective} from './input-mode.directive';\n\n@NgModule({\n declarations: [TuiInputModeDirective],\n exports: [TuiInputModeDirective],\n})\nexport class TuiInputModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;IAYI,+BAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,sBAAI,mDAAgB;aAApB;YACI,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;kBACvD,QAAQ;kBACR,IAAI,CAAC,OAAO,CAAC;SACtB;;;OAAA;;6CATI,SAAS,SAAC,SAAS;8CACnB,MAAM,SAAC,UAAU;;IAJtB;QAHC,KAAK,CAAC,cAAc,CAAC;QACrB,WAAW,CAAC,gBAAgB,CAAC;QAC7B,WAAW,CAAC,kBAAkB,CAAC;uDACH;IAQ7B;QADC,WAAW,CAAC,cAAc,CAAC;iEAK3B;IAhBQ,qBAAqB;QAHjC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OARd,qBAAqB,CAiBjC;IAAD,4BAAC;CAjBD;;;ICFA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-let.js","sources":["ng://@taiga-ui/cdk/directives/let/let-context.ts","ng://@taiga-ui/cdk/directives/let/let.directive.ts","ng://@taiga-ui/cdk/directives/let/let.module.ts","ng://@taiga-ui/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiLetDirective} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContextWithImplicit<T> {\n constructor(private readonly internalDirectiveInstance: TuiLetDirective<T>) {}\n\n get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n selector: '[tuiLet]',\n})\nexport class TuiLetDirective<T> {\n @Input()\n tuiLet!: T;\n\n constructor(\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiLetContext<T>>,\n ) {\n viewContainer.createEmbeddedView(templateRef, new TuiLetContext<T>(this));\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n _dir: TuiLetDirective<T>,\n _ctx: any,\n ): _ctx is TuiLetDirective<T> {\n return true;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiLetDirective} from './let.directive';\n\n@NgModule({\n declarations: [TuiLetDirective],\n exports: [TuiLetDirective],\n})\nexport class TuiLetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;;;IAII,uBAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,sBAAI,oCAAS;aAAb;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IAED,sBAAI,iCAAM;aAAV;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IACL,oBAAC;AAAD,CAAC;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-let.js","sources":["ng://@taiga-ui/cdk/directives/let/let-context.ts","ng://@taiga-ui/cdk/directives/let/let.directive.ts","ng://@taiga-ui/cdk/directives/let/let.module.ts","ng://@taiga-ui/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiLetDirective} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContextWithImplicit<T> {\n constructor(private readonly internalDirectiveInstance: TuiLetDirective<T>) {}\n\n get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n selector: '[tuiLet]',\n})\nexport class TuiLetDirective<T> {\n @Input()\n tuiLet!: T;\n\n constructor(\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiLetContext<T>>,\n ) {\n viewContainer.createEmbeddedView(templateRef, new TuiLetContext<T>(this));\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n _dir: TuiLetDirective<T>,\n _ctx: any,\n ): _ctx is TuiLetDirective<T> {\n return true;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiLetDirective} from './let.directive';\n\n@NgModule({\n declarations: [TuiLetDirective],\n exports: [TuiLetDirective],\n})\nexport class TuiLetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;;;IAII,uBAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,sBAAI,oCAAS;aAAb;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IAED,sBAAI,iCAAM;aAAV;YACI,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;SAChD;;;OAAA;IACL,oBAAC;AAAD,CAAC;;ACbD;;;;;IAWI,yBAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQM,sCAAsB,GAA7B,UACI,IAAwB,EACxB,IAAS;QAET,OAAO,IAAI,CAAC;KACf;;gBAjB4C,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;gBACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;IAJvB;QADC,KAAK,EAAE;mDACG;IAFF,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;SACvB,CAAC;QAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OANf,eAAe,CAuB3B;IAAD,sBAAC;CAvBD;;;ICHA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-media.js","sources":["ng://@taiga-ui/cdk/directives/media/media.directive.ts","ng://@taiga-ui/cdk/directives/media/media.module.ts","ng://@taiga-ui/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\n\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\nexport function volumeAssertion(volume: number): boolean {\n return isFinite(volume) && volume >= 0 && volume <= 1;\n}\n\n@Directive({\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n})\nexport class TuiMediaDirective {\n @Input()\n @HostBinding('volume')\n @tuiDefaultProp(volumeAssertion)\n volume = 1;\n\n @Input('playbackRate')\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.elementRef.nativeElement.currentTime = currentTime;\n }\n }\n\n @Input()\n set paused(paused: boolean) {\n if (paused) {\n this.elementRef.nativeElement.pause();\n } else {\n this.elementRef.nativeElement.play();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n @Output()\n readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n readonly volumeChange = new EventEmitter<number>();\n\n private playbackRate = 1;\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLMediaElement>,\n ) {}\n\n get paused(): boolean {\n return this.elementRef.nativeElement.paused;\n }\n\n get currentTime(): number {\n return this.elementRef.nativeElement.currentTime;\n }\n\n // @bad TODO: Make sure no other events can affect this like network issues etc.\n @HostListener('ended', ['true'])\n @HostListener('pause', ['true'])\n @HostListener('play', ['false'])\n onPausedChange(paused: boolean) {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener('volumechange')\n onVolumeChange() {\n this.volume = this.elementRef.nativeElement.volume;\n this.volumeChange.emit(this.volume);\n }\n\n @HostListener('timeupdate')\n @HostListener('seeking')\n @HostListener('seeked')\n onCurrentTimeChange() {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener('durationchange')\n changeDetectionTrigger() {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number) {\n this.playbackRate = playbackRate;\n this.elementRef.nativeElement.playbackRate = this.playbackRate;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMediaDirective} from './media.directive';\n\n@NgModule({\n declarations: [TuiMediaDirective],\n exports: [TuiMediaDirective],\n})\nexport class TuiMediaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAYgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzC,CAAC;SAEe,eAAe,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AAC1D,CAAC;;IA+CG,2BAEqB,UAAwC;QAAxC,eAAU,GAAV,UAAU,CAA8B;QAvC7D,WAAM,GAAG,CAAC,CAAC;QA2BF,sBAAiB,GAAG,IAAI,YAAY,EAAU,CAAC;QAG/C,iBAAY,GAAG,IAAI,YAAY,EAAW,CAAC;QAG3C,iBAAY,GAAG,IAAI,YAAY,EAAU,CAAC;QAE3C,iBAAY,GAAG,CAAC,CAAC;KAKrB;IApCJ,sBAAI,iDAAkB;aAAtB,UAAuB,YAAoB;YACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;SACzC;;;OAAA;IAID,sBAAI,0CAAW;aAoCf;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC;SACpD;aAtCD,UAAgB,WAAmB;YAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;gBACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;aAC3D;SACJ;;;OAAA;IAGD,sBAAI,qCAAM;aAy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,CAAC;wDAK7C;IAGD;QADC,KAAK,EAAE;mDAQP;IAGD;QADC,MAAM,EAAE;gEAC+C;IAGxD;QADC,MAAM,EAAE;2DAC2C;IAGpD;QADC,MAAM,EAAE;2DAC0C;IAqBnD;QAHC,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;2DAI/B;IAGD;QADC,YAAY,CAAC,cAAc,CAAC;2DAI5B;IAKD;QAHC,YAAY,CAAC,YAAY,CAAC;QAC1B,YAAY,CAAC,SAAS,CAAC;QACvB,YAAY,CAAC,QAAQ,CAAC;gEAGtB;IAGD;QADC,YAAY,CAAC,gBAAgB,CAAC;mEAG9B;IA/EQ,iBAAiB;QAJ7B,SAAS,CAAC;YACP,QAAQ,EAAE,kCAAkC;YAC5C,QAAQ,EAAE,UAAU;SACvB,CAAC;QA2CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA1Cd,iBAAiB,CAqF7B;IAAD,wBAAC;CArFD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-media.js","sources":["ng://@taiga-ui/cdk/directives/media/media.directive.ts","ng://@taiga-ui/cdk/directives/media/media.module.ts","ng://@taiga-ui/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\n\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\nexport function volumeAssertion(volume: number): boolean {\n return isFinite(volume) && volume >= 0 && volume <= 1;\n}\n\n@Directive({\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n})\nexport class TuiMediaDirective {\n @Input()\n @HostBinding('volume')\n @tuiDefaultProp(volumeAssertion)\n volume = 1;\n\n @Input('playbackRate')\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.elementRef.nativeElement.currentTime = currentTime;\n }\n }\n\n @Input()\n set paused(paused: boolean) {\n if (paused) {\n this.elementRef.nativeElement.pause();\n } else {\n this.elementRef.nativeElement.play();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n @Output()\n readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n readonly volumeChange = new EventEmitter<number>();\n\n private playbackRate = 1;\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLMediaElement>,\n ) {}\n\n get paused(): boolean {\n return this.elementRef.nativeElement.paused;\n }\n\n get currentTime(): number {\n return this.elementRef.nativeElement.currentTime;\n }\n\n // @bad TODO: Make sure no other events can affect this like network issues etc.\n @HostListener('ended', ['true'])\n @HostListener('pause', ['true'])\n @HostListener('play', ['false'])\n onPausedChange(paused: boolean) {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener('volumechange')\n onVolumeChange() {\n this.volume = this.elementRef.nativeElement.volume;\n this.volumeChange.emit(this.volume);\n }\n\n @HostListener('timeupdate')\n @HostListener('seeking')\n @HostListener('seeked')\n onCurrentTimeChange() {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener('durationchange')\n changeDetectionTrigger() {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number) {\n this.playbackRate = playbackRate;\n this.elementRef.nativeElement.playbackRate = this.playbackRate;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMediaDirective} from './media.directive';\n\n@NgModule({\n declarations: [TuiMediaDirective],\n exports: [TuiMediaDirective],\n})\nexport class TuiMediaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAYgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzC,CAAC;SAEe,eAAe,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AAC1D,CAAC;;IA+CG,2BAEqB,UAAwC;QAAxC,eAAU,GAAV,UAAU,CAA8B;QAvC7D,WAAM,GAAG,CAAC,CAAC;QA2BF,sBAAiB,GAAG,IAAI,YAAY,EAAU,CAAC;QAG/C,iBAAY,GAAG,IAAI,YAAY,EAAW,CAAC;QAG3C,iBAAY,GAAG,IAAI,YAAY,EAAU,CAAC;QAE3C,iBAAY,GAAG,CAAC,CAAC;KAKrB;IApCJ,sBAAI,iDAAkB;aAAtB,UAAuB,YAAoB;YACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;SACzC;;;OAAA;IAID,sBAAI,0CAAW;aAoCf;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC;SACpD;aAtCD,UAAgB,WAAmB;YAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;gBACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;aAC3D;SACJ;;;OAAA;IAGD,sBAAI,qCAAM;aAyBV;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC;SAC/C;aA3BD,UAAW,MAAe;YACtB,IAAI,MAAM,EAAE;gBACR,IAAI,CAAC,UAAU,CAAC,aAAa,CAA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HC,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;2DAI/B;IAGD;QADC,YAAY,CAAC,cAAc,CAAC;2DAI5B;IAKD;QAHC,YAAY,CAAC,YAAY,CAAC;QAC1B,YAAY,CAAC,SAAS,CAAC;QACvB,YAAY,CAAC,QAAQ,CAAC;gEAGtB;IAGD;QADC,YAAY,CAAC,gBAAgB,CAAC;mEAG9B;IA/EQ,iBAAiB;QAJ7B,SAAS,CAAC;YACP,QAAQ,EAAE,kCAAkC;YAC5C,QAAQ,EAAE,UAAU;SACvB,CAAC;QA2CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA1Cd,iBAAiB,CAqF7B;IAAD,wBAAC;CArFD;;;IChBA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-obscured.js","sources":["ng://@taiga-ui/cdk/directives/obscured/obscured.directive.ts","ng://@taiga-ui/cdk/directives/obscured/obscured.module.ts","ng://@taiga-ui/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {Directive, Inject, Input, Optional, Output, Self} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiActiveZoneDirective} from '@taiga-ui/cdk/directives/active-zone';\nimport {\n TuiDestroyService,\n TuiObscuredService,\n TuiParentsScrollService,\n} from '@taiga-ui/cdk/services';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {map, switchMap} from 'rxjs/operators';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n selector: '[tuiObscured]',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiObscuredDirective {\n private readonly enabled$ = new Subject<boolean>();\n\n @Input()\n @tuiRequiredSetter()\n set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n\n @Output()\n readonly tuiObscured: Observable<boolean>;\n\n constructor(\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Self()\n @Inject(TuiObscuredService)\n obscured$: TuiObscuredService,\n ) {\n const mapped$ = obscured$.pipe(\n map(\n obscuredBy =>\n !!obscuredBy &&\n (!activeZone ||\n !obscuredBy.length ||\n obscuredBy.every(element => !activeZone.contains(element))),\n ),\n );\n\n this.tuiObscured = this.enabled$.pipe(\n switchMap(enabled => (enabled ? mapped$ : EMPTY)),\n );\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiObscuredDirective} from './obscured.directive';\n\n@NgModule({\n declarations: [TuiObscuredDirective],\n exports: [TuiObscuredDirective],\n})\nexport class TuiObscuredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;;;;IAmBI,8BAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAA,UAAU;YACN,OAAA,CAAC,CAAC,UAAU;iBACX,CAAC,UAAU;oBACR,CAAC,UAAU,CAAC,MAAM;oBAClB,UAAU,CAAC,KAAK,CAAC,UAAA,OAAO,IAAI,OAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAA,CAAC,CAAC;SAAA,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,UAAA,OAAO,IAAI,QAAC,OAAO,GAAG,OAAO,GAAG,KAAK,IAAC,CAAC,CACpD,CAAC;KACL;IA5BD,sBAAI,oDAAkB;aAAtB,UAAuB,OAAgB;YACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;;;OAAA;;gBAQe,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;gBAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;IAZ9B;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;kEAGnB;IAGD;QADC,MAAM,EAAE;6DACiC;IAVjC,oBAAoB;QAJhC,SAAS,CAAC;YACP,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;SAC9E,CAAC;QAcO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;QAE9B,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAjBtB,oBAAoB,CAkChC;IAAD,2BAAC;CAlCD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-obscured.js","sources":["ng://@taiga-ui/cdk/directives/obscured/obscured.directive.ts","ng://@taiga-ui/cdk/directives/obscured/obscured.module.ts","ng://@taiga-ui/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {Directive, Inject, Input, Optional, Output, Self} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiActiveZoneDirective} from '@taiga-ui/cdk/directives/active-zone';\nimport {\n TuiDestroyService,\n TuiObscuredService,\n TuiParentsScrollService,\n} from '@taiga-ui/cdk/services';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {map, switchMap} from 'rxjs/operators';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n selector: '[tuiObscured]',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiObscuredDirective {\n private readonly enabled$ = new Subject<boolean>();\n\n @Input()\n @tuiRequiredSetter()\n set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n\n @Output()\n readonly tuiObscured: Observable<boolean>;\n\n constructor(\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Self()\n @Inject(TuiObscuredService)\n obscured$: TuiObscuredService,\n ) {\n const mapped$ = obscured$.pipe(\n map(\n obscuredBy =>\n !!obscuredBy &&\n (!activeZone ||\n !obscuredBy.length ||\n obscuredBy.every(element => !activeZone.contains(element))),\n ),\n );\n\n this.tuiObscured = this.enabled$.pipe(\n switchMap(enabled => (enabled ? mapped$ : EMPTY)),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiObscuredDirective} from './obscured.directive';\n\n@NgModule({\n declarations: [TuiObscuredDirective],\n exports: [TuiObscuredDirective],\n})\nexport class TuiObscuredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;;;;IAmBI,8BAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,IAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAA,UAAU;YACN,OAAA,CAAC,CAAC,UAAU;iBACX,CAAC,UAAU;oBACR,CAAC,UAAU,CAAC,MAAM;oBAClB,UAAU,CAAC,KAAK,CAAC,UAAA,OAAO,IAAI,OAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAA,CAAC,CAAC;SAAA,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,UAAA,OAAO,IAAI,QAAC,OAAO,GAAG,OAAO,GAAG,KAAK,IAAC,CAAC,CACpD,CAAC;KACL;IA5BD,sBAAI,oDAAkB;aAAtB,UAAuB,OAAgB;YACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC/B;;;OAAA;;gBAQe,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;gBAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;IAZ9B;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;kEAGnB;IAGD;QADC,MAAM,EAAE;6DACiC;IAVjC,oBAAoB;QAJhC,SAAS,CAAC;YACP,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;SAC9E,CAAC;QAcO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;QAE9B,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAjBtB,oBAAoB,CAkChC;IAAD,2BAAC;CAlCD;;;ICVA;KAAiC;IAApB,iBAAiB;QAJ7B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["ng://@taiga-ui/cdk/directives/overscroll/overscroll.directive.ts","ng://@taiga-ui/cdk/directives/overscroll/overscroll.module.ts","ng://@taiga-ui/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Inject, Input, NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollModeT} from '@taiga-ui/cdk/types';\nimport {canScroll, getScrollParent} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n * @dynamic\n */\n@Directive({\n selector: '[tuiOverscroll]',\n providers: [TuiDestroyService],\n})\nexport class TuiOverscrollDirective {\n @Input('tuiOverscroll')\n mode: TuiOverscrollModeT = 'scroll';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n typedFromEvent(nativeElement, 'wheel', {passive: false})\n .pipe(\n filter(() => this.enabled),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe(event => {\n this.processEvent(\n event,\n !!event.deltaY,\n event.deltaY ? event.deltaY < 0 : event.deltaX < 0,\n );\n });\n\n typedFromEvent(nativeElement, 'touchstart', {passive: true})\n .pipe(\n switchMap(({touches}) => {\n let {clientX, clientY} = touches[0];\n let deltaX = 0;\n let deltaY = 0;\n let vertical: boolean;\n\n return typedFromEvent(nativeElement, 'touchmove', {\n passive: false,\n }).pipe(\n filter(() => this.enabled),\n tap(event => {\n // We have to have it in tap instead of subscribe due to variables in closure\n const changedTouch = event.changedTouches[0];\n\n deltaX = clientX - changedTouch.clientX;\n deltaY = clientY - changedTouch.clientY;\n clientX = changedTouch.clientX;\n clientY = changedTouch.clientY;\n\n if (vertical === undefined) {\n vertical = Math.abs(deltaY) > Math.abs(deltaX);\n }\n\n this.processEvent(\n event,\n vertical,\n vertical ? deltaY < 0 : deltaX < 0,\n );\n }),\n );\n }),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe();\n }\n\n get enabled(): boolean {\n return this.mode !== 'none';\n }\n\n @HostBinding('style.overscrollBehavior')\n get overscrollBehavior(): 'contain' | null {\n return this.enabled ? 'contain' : null;\n }\n\n private processEvent(\n event: TuiEventWith<Event, HTMLElement>,\n vertical: boolean,\n negative: boolean,\n ) {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (!cancelable || !(target instanceof Element)) {\n return;\n }\n\n // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior\n if (\n this.mode === 'all' &&\n ((vertical && !currentTarget.contains(getScrollParent(target))) ||\n (!vertical && !currentTarget.contains(getScrollParent(target, false))))\n ) {\n event.preventDefault();\n\n return;\n }\n\n // This is Safari/IE/Edge fallback\n if (\n vertical &&\n ((negative && !canScroll(target, currentTarget, true, false)) ||\n (!negative && !canScroll(target, currentTarget, true, true)))\n ) {\n event.preventDefault();\n\n return;\n }\n\n if (\n !vertical &&\n ((negative && !canScroll(target, currentTarget, false, false)) ||\n (!negative && !canScroll(target, currentTarget, false, true)))\n ) {\n event.preventDefault();\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiOverscrollDirective} from './overscroll.directive';\n\n@NgModule({\n declarations: [TuiOverscrollDirective],\n exports: [TuiOverscrollDirective],\n})\nexport class TuiOverscrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA;;;;;IAYI,gCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B;QAHzD,iBAwDC;YAvDwB,gCAAa;QAHtC,SAAI,GAAuB,QAAQ,CAAC;QAOhC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,GAAA,CAAC,EAC1B,SAAS,CAAC,QAAQ,CAAC,EACnB,WAAW,CAAC,MAAM,CAAC,CACtB;aACA,SAAS,CAAC,UAAA,KAAK;YACZ,KAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,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CAAC,cAAc,EAAE,CAAC;SAC1B;KACJ;;gBA3GwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;;IAL7B;QADC,KAAK,CAAC,eAAe,CAAC;wDACa;IAiEpC;QADC,WAAW,CAAC,0BAA0B,CAAC;oEAGvC;IArEQ,sBAAsB;QAJlC,SAAS,CAAC;YACP,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAPrB,sBAAsB,CAiHlC;IAAD,6BAAC;CAjHD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["ng://@taiga-ui/cdk/directives/overscroll/overscroll.directive.ts","ng://@taiga-ui/cdk/directives/overscroll/overscroll.module.ts","ng://@taiga-ui/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Inject, Input, NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollModeT} from '@taiga-ui/cdk/types';\nimport {canScroll, getScrollParent} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n * @dynamic\n */\n@Directive({\n selector: '[tuiOverscroll]',\n providers: [TuiDestroyService],\n})\nexport class TuiOverscrollDirective {\n @Input('tuiOverscroll')\n mode: TuiOverscrollModeT = 'scroll';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n typedFromEvent(nativeElement, 'wheel', {passive: false})\n .pipe(\n filter(() => this.enabled),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe(event => {\n this.processEvent(\n event,\n !!event.deltaY,\n event.deltaY ? event.deltaY < 0 : event.deltaX < 0,\n );\n });\n\n typedFromEvent(nativeElement, 'touchstart', {passive: true})\n .pipe(\n switchMap(({touches}) => {\n let {clientX, clientY} = touches[0];\n let deltaX = 0;\n let deltaY = 0;\n let vertical: boolean;\n\n return typedFromEvent(nativeElement, 'touchmove', {\n passive: false,\n }).pipe(\n filter(() => this.enabled),\n tap(event => {\n // We have to have it in tap instead of subscribe due to variables in closure\n const changedTouch = event.changedTouches[0];\n\n deltaX = clientX - changedTouch.clientX;\n deltaY = clientY - changedTouch.clientY;\n clientX = changedTouch.clientX;\n clientY = changedTouch.clientY;\n\n if (vertical === undefined) {\n vertical = Math.abs(deltaY) > Math.abs(deltaX);\n }\n\n this.processEvent(\n event,\n vertical,\n vertical ? deltaY < 0 : deltaX < 0,\n );\n }),\n );\n }),\n takeUntil(destroy$),\n tuiZonefree(ngZone),\n )\n .subscribe();\n }\n\n get enabled(): boolean {\n return this.mode !== 'none';\n }\n\n @HostBinding('style.overscrollBehavior')\n get overscrollBehavior(): 'contain' | null {\n return this.enabled ? 'contain' : null;\n }\n\n private processEvent(\n event: TuiEventWith<Event, HTMLElement>,\n vertical: boolean,\n negative: boolean,\n ) {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (!cancelable || !(target instanceof Element)) {\n return;\n }\n\n // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior\n if (\n this.mode === 'all' &&\n ((vertical && !currentTarget.contains(getScrollParent(target))) ||\n (!vertical && !currentTarget.contains(getScrollParent(target, false))))\n ) {\n event.preventDefault();\n\n return;\n }\n\n // This is Safari/IE/Edge fallback\n if (\n vertical &&\n ((negative && !canScroll(target, currentTarget, true, false)) ||\n (!negative && !canScroll(target, currentTarget, true, true)))\n ) {\n event.preventDefault();\n\n return;\n }\n\n if (\n !vertical &&\n ((negative && !canScroll(target, currentTarget, false, false)) ||\n (!negative && !canScroll(target, currentTarget, false, true)))\n ) {\n event.preventDefault();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiOverscrollDirective} from './overscroll.directive';\n\n@NgModule({\n declarations: [TuiOverscrollDirective],\n exports: [TuiOverscrollDirective],\n})\nexport class TuiOverscrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA;;;;;IAYI,gCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B;QAHzD,iBAwDC;YAvDwB,gCAAa;QAHtC,SAAI,GAAuB,QAAQ,CAAC;QAOhC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,GAAA,CAAC,EAC1B,SAAS,CAAC,QAAQ,CAAC,EACnB,WAAW,CAAC,MAAM,CAAC,CACtB;aACA,SAAS,CAAC,UAAA,KAAK;YACZ,KAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,MAAM,EACd,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CACrD,CAAC;SACL,CAAC,CAAC;QAEP,cAAc,CAAC,aAAa,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;aACvD,IAAI,CACD,SAAS,CAAC,UAAC,EAAS;gBAAR,oBAAO;YACX,IAAA,eAA+B,EAA9B,oBAAO,EAAE,oBAAqB,CAAC;YACpC,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,IAAI,MAAM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MO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAPrB,sBAAsB,CAiHlC;IAAD,6BAAC;CAjHD;;;ICRA;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["ng://@taiga-ui/cdk/directives/pan/pan.directive.ts","ng://@taiga-ui/cdk/directives/pan/pan.module.ts","ng://@taiga-ui/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiPan]',\n outputs: ['tuiPan'],\n providers: [TuiPanService],\n})\nexport class TuiPanDirective {\n constructor(@Inject(TuiPanService) readonly tuiPan: TuiPanService) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPanDirective} from './pan.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiPanDirective],\n exports: [TuiPanDirective],\n})\nexport class TuiPanModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAOI,yBAA4C,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;KAAI;;gBAAjB,aAAa,uBAApD,MAAM,SAAC,aAAa;;IADxB,eAAe;QAL3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;YACnB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC7B,CAAC;QAEe,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;OADzB,eAAe,CAE3B;IAAD,sBAAC;CAFD;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["ng://@taiga-ui/cdk/directives/pan/pan.directive.ts","ng://@taiga-ui/cdk/directives/pan/pan.module.ts","ng://@taiga-ui/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiPan]',\n outputs: ['tuiPan'],\n providers: [TuiPanService],\n})\nexport class TuiPanDirective {\n constructor(@Inject(TuiPanService) readonly tuiPan: TuiPanService) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPanDirective} from './pan.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiPanDirective],\n exports: [TuiPanDirective],\n})\nexport class TuiPanModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAOI,yBAA4C,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;KAAI;;gBAAjB,aAAa,uBAApD,MAAM,SAAC,aAAa;;IADxB,eAAe;QAL3B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;YACnB,SAAS,EAAE,CAAC,aAAa,CAAC;SAC7B,CAAC;QAEe,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;OADzB,eAAe,CAE3B;IAAD,sBAAC;CAFD;;ACLA;;;;IAOA;KAA4B;IAAf,YAAY;QAJxB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACXA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["ng://@taiga-ui/cdk/directives/pressed/pressed.directive.ts","ng://@taiga-ui/cdk/directives/pressed/pressed.module.ts","ng://@taiga-ui/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {pressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector: '[tuiPressedChange]',\n})\nexport class TuiPressedDirective {\n @Output()\n readonly tuiPressedChange = pressedObservable(this.elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n });\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n ) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPressedDirective} from './pressed.directive';\n\n@NgModule({\n declarations: [TuiPressedDirective],\n exports: [TuiPressedDirective],\n})\nexport class TuiPressedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAaI,6BACyC,UAA+B,EAEnD,qBAA8B;QAFV,eAAU,GAAV,UAAU,CAAqB;QAEnD,0BAAqB,GAArB,qBAAqB,CAAS;QAP1C,qBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzE,WAAW,EAAE,IAAI,CAAC,qBAAqB;SAC1C,CAAC,CAAC;KAMC;;gBAHiD,UAAU,uBAA1D,MAAM,SAAC,UAAU;8CACjB,MAAM,SAAC,4BAA4B;;IANxC;QADC,MAAM,EAAE;iEAGN;IAJM,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OARhC,mBAAmB,CAW/B;IAAD,0BAAC;CAXD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["ng://@taiga-ui/cdk/directives/pressed/pressed.directive.ts","ng://@taiga-ui/cdk/directives/pressed/pressed.module.ts","ng://@taiga-ui/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {pressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector: '[tuiPressedChange]',\n})\nexport class TuiPressedDirective {\n @Output()\n readonly tuiPressedChange = pressedObservable(this.elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n });\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPressedDirective} from './pressed.directive';\n\n@NgModule({\n declarations: [TuiPressedDirective],\n exports: [TuiPressedDirective],\n})\nexport class TuiPressedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAaI,6BACyC,UAA+B,EAEnD,qBAA8B;QAFV,eAAU,GAAV,UAAU,CAAqB;QAEnD,0BAAqB,GAArB,qBAAqB,CAAS;QAP1C,qBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzE,WAAW,EAAE,IAAI,CAAC,qBAAqB;SAC1C,CAAC,CAAC;KAMC;;gBAHiD,UAAU,uBAA1D,MAAM,SAAC,UAAU;8CACjB,MAAM,SAAC,4BAA4B;;IANxC;QADC,MAAM,EAAE;iEAGN;IAJM,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;QAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OARhC,mBAAmB,CAW/B;IAAD,0BAAC;CAXD;;;ICCA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.directive.ts","ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.module.ts","ng://@taiga-ui/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone} from '@angular/core';\nimport {preventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n * @dynamic\n */\n@Directive({\n selector: '[tuiPreventDefault]',\n providers: [TuiDestroyService],\n})\nexport class TuiPreventDefaultDirective {\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Attribute('tuiPreventDefault') eventName: string,\n ) {\n fromEvent(nativeElement, eventName, {passive: false})\n .pipe(tuiZonefree(ngZone), preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPreventDefaultDirective} from './prevent-default.directive';\n\n@NgModule({\n declarations: [TuiPreventDefaultDirective],\n exports: [TuiPreventDefaultDirective],\n})\nexport class TuiPreventDefaultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;IAUI,oCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;YAH5B,gCAAa;QAKlC,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aAChD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAChE,SAAS,EAAE,CAAC;KACpB;;gBARwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;6CACxB,SAAS,SAAC,mBAAmB;;IALzB,0BAA0B;QAJtC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;YAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;OAL1B,0BAA0B,CAWtC;IAAD,iCAAC;CAXD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.directive.ts","ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.module.ts","ng://@taiga-ui/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone} from '@angular/core';\nimport {preventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n * @dynamic\n */\n@Directive({\n selector: '[tuiPreventDefault]',\n providers: [TuiDestroyService],\n})\nexport class TuiPreventDefaultDirective {\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Attribute('tuiPreventDefault') eventName: string,\n ) {\n fromEvent(nativeElement, eventName, {passive: false})\n .pipe(tuiZonefree(ngZone), preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPreventDefaultDirective} from './prevent-default.directive';\n\n@NgModule({\n declarations: [TuiPreventDefaultDirective],\n exports: [TuiPreventDefaultDirective],\n})\nexport class TuiPreventDefaultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;IAUI,oCACwB,EAAwC,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;YAH5B,gCAAa;QAKlC,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aAChD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAChE,SAAS,EAAE,CAAC;KACpB;;gBARwC,UAAU,uBAA9C,MAAM,SAAC,UAAU;gBACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;gBACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;6CACxB,SAAS,SAAC,mBAAmB;;IALzB,0BAA0B;QAJtC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;YAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;OAL1B,0BAA0B,CAWtC;IAAD,iCAAC;CAXD;;;ICPA;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.directive.ts","ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.module.ts","ng://@taiga-ui/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {clamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimesDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(clamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainer: ViewContainerRef,\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<TuiRepeatTimesContext>,\n ) {}\n\n private addContainers(count: number) {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number) {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiRepeatTimesDirective} from './repeat-times.directive';\n\n@NgModule({\n declarations: [TuiRepeatTimesDirective],\n exports: [TuiRepeatTimesDirective],\n})\nexport class TuiRepeatTimesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,IAAM,SAAS,GAAG,OAAO,CAAC;;IAGtB,+BAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;KAAI;IAC9C,4BAAC;AAAD,CAAC,IAAA;AAED;;;;;;;;IAyBI,iCAEqB,aAA+B,EAE/B,WAA+C;QAF/C,kBAAa,GAAb,aAAa,CAAkB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;KAChE;IAjBJ,sBAAI,qDAAgB;aAApB,UAAqB,KAAa;YAC9B,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;YAElD,IAAA,kCAAM,CAAuB;YAEpC,IAAI,KAAK,GAAG,MAAM,EAAE;gBAChB,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;aACzC;iBAAM;gBACH,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;aACjC;SACJ;;;OAAA;IASO,+CAAa,GAArB,UAAsB,KAAa;QAC/B,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE;YAChE,IAAI,CAAC,aAAa,CAAC,kBAAkB,CACjC,IAAI,CAAC,WAAW,EAChB,IAAI,qBAAqB,CAAC,KAAK,CAAC,CACnC,CAAC;SACL;KACJ;IAEO,kDAAgB,GAAxB,UAAyB,MAAc;QACnC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;YACzC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;SAC/B;KACJ;;gBAlBmC,gBAAgB,uBAD/C,MAAM,SAAC,gBAAgB;gBAGM,WAAW,uBADxC,MAAM,SAAC,WAAW;;IAfvB;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;mEAWnB;IAbQ,uBAAuB;QAHnC,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;SACjD,CAAC;QAiBO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QAExB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OAlBf,uBAAuB,CAoCnC;IAAD,8BAAC;CApCD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.directive.ts","ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.module.ts","ng://@taiga-ui/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {clamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimesDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(clamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainer: ViewContainerRef,\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<TuiRepeatTimesContext>,\n ) {}\n\n private addContainers(count: number) {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number) {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRepeatTimesDirective} from './repeat-times.directive';\n\n@NgModule({\n declarations: [TuiRepeatTimesDirective],\n exports: [TuiRepeatTimesDirective],\n})\nexport class TuiRepeatTimesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,IAAM,SAAS,GAAG,OAAO,CAAC;;IAGtB,+BAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;KAAI;IAC9C,4BAAC;AAAD,CAAC,IAAA;AAED;;;;;;;;IAyBI,iCAEqB,aAA+B,EAE/B,WAA+C;QAF/C,kBAAa,GAAb,aAAa,CAAkB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;KAChE;IAjBJ,sBAAI,qDAAgB;aAApB,UAAqB,KAAa;YAC9B,IAAM,SAAS,G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,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["ng://@taiga-ui/cdk/directives/resize/resize.directive.ts","ng://@taiga-ui/cdk/directives/resize/resize.module.ts","ng://@taiga-ui/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiResize]',\n outputs: ['tuiResize'],\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiResizeDirective {\n constructor(\n @Inject(TuiResizeService)\n readonly tuiResize: Observable<ReadonlyArray<ResizeObserverEntry>>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiResizeDirective} from './resize.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiResizeDirective],\n exports: [TuiResizeDirective],\n})\nexport class TuiResizeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;IAOI,4BAEa,SAAyD;QAAzD,cAAS,GAAT,SAAS,CAAgD;KAClE;;gBADoB,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;IAFnB,kBAAkB;QAL9B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,OAAO,EAAE,CAAC,WAAW,CAAC;YACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;SACnD,CAAC;QAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;OAFpB,kBAAkB,CAK9B;IAAD,yBAAC;CALD;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["ng://@taiga-ui/cdk/directives/resize/resize.directive.ts","ng://@taiga-ui/cdk/directives/resize/resize.module.ts","ng://@taiga-ui/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: '[tuiResize]',\n outputs: ['tuiResize'],\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiResizeDirective {\n constructor(\n @Inject(TuiResizeService)\n readonly tuiResize: Observable<ReadonlyArray<ResizeObserverEntry>>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizeDirective} from './resize.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiResizeDirective],\n exports: [TuiResizeDirective],\n})\nexport class TuiResizeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;IAOI,4BAEa,SAAyD;QAAzD,cAAS,GAAT,SAAS,CAAgD;KAClE;;gBADoB,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;IAFnB,kBAAkB;QAL9B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,OAAO,EAAE,CAAC,WAAW,CAAC;YACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;SACnD,CAAC;QAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;OAFpB,kBAAkB,CAK9B;IAAD,yBAAC;CALD;;ACNA;;;;IAOA;KAA+B;IAAlB,eAAe;QAJ3B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACXA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["ng://@taiga-ui/cdk/directives/swipe/swipe.directive.ts","ng://@taiga-ui/cdk/directives/swipe/swipe.module.ts","ng://@taiga-ui/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiSwipe]',\n outputs: ['tuiSwipe'],\n providers: [TuiSwipeService],\n})\nexport class TuiSwipeDirective {\n constructor(@Inject(TuiSwipeService) readonly tuiSwipe: TuiSwipeService) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiSwipeDirective} from './swipe.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiSwipeDirective],\n exports: [TuiSwipeDirective],\n})\nexport class TuiSwipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAOI,2BAA8C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;;gBAAnB,eAAe,uBAA1D,MAAM,SAAC,eAAe;;IAD1B,iBAAiB;QAL7B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,SAAS,EAAE,CAAC,eAAe,CAAC;SAC/B,CAAC;QAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OAD3B,iBAAiB,CAE7B;IAAD,wBAAC;CAFD;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["ng://@taiga-ui/cdk/directives/swipe/swipe.directive.ts","ng://@taiga-ui/cdk/directives/swipe/swipe.module.ts","ng://@taiga-ui/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiSwipe]',\n outputs: ['tuiSwipe'],\n providers: [TuiSwipeService],\n})\nexport class TuiSwipeDirective {\n constructor(@Inject(TuiSwipeService) readonly tuiSwipe: TuiSwipeService) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSwipeDirective} from './swipe.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiSwipeDirective],\n exports: [TuiSwipeDirective],\n})\nexport class TuiSwipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAOI,2BAA8C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;;gBAAnB,eAAe,uBAA1D,MAAM,SAAC,eAAe;;IAD1B,iBAAiB;QAL7B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,SAAS,EAAE,CAAC,eAAe,CAAC;SAC/B,CAAC;QAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OAD3B,iBAAiB,CAE7B;IAAD,wBAAC;CAFD;;ACLA;;;;IAOA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACXA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["ng://@taiga-ui/cdk/directives/validator/validator.directive.ts","ng://@taiga-ui/cdk/directives/validator/validator.module.ts","ng://@taiga-ui/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector: '[tuiValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TuiValidatorDirective),\n multi: true,\n },\n ],\n})\nexport class TuiValidatorDirective implements Validator, OnChanges, OnDestroy {\n private onChange = EMPTY_FUNCTION;\n\n @Input()\n @tuiDefaultProp()\n tuiValidator: ValidatorFn = Validators.nullValidator;\n\n validate(control: AbstractControl): ValidationErrors | null {\n return this.tuiValidator(control);\n }\n\n registerOnValidatorChange(onChange: Function) {\n this.onChange = onChange;\n }\n\n ngOnChanges() {\n this.onChange();\n }\n\n ngOnDestroy() {\n this.tuiValidator = Validators.nullValidator;\n this.onChange();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiValidatorDirective} from './validator.directive';\n\n@NgModule({\n declarations: [TuiValidatorDirective],\n exports: [TuiValidatorDirective],\n})\nexport class TuiValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAsBA;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;8BAvBY,qBAAqB;IAO9B,wCAAQ,GAAR,UAAS,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yDAAyB,GAAzB,UAA0B,QAAkB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;;IAjBD;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;+DACoC;IAL5C,qBAAqB;QAVjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,aAAa;oBACtB,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;oBACpD,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,qBAAqB,CAuBjC;IAAD,4BAAC;CAvBD;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["ng://@taiga-ui/cdk/directives/validator/validator.directive.ts","ng://@taiga-ui/cdk/directives/validator/validator.module.ts","ng://@taiga-ui/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector: '[tuiValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TuiValidatorDirective),\n multi: true,\n },\n ],\n})\nexport class TuiValidatorDirective implements Validator, OnChanges, OnDestroy {\n private onChange = EMPTY_FUNCTION;\n\n @Input()\n @tuiDefaultProp()\n tuiValidator: ValidatorFn = Validators.nullValidator;\n\n validate(control: AbstractControl): ValidationErrors | null {\n return this.tuiValidator(control);\n }\n\n registerOnValidatorChange(onChange: Function) {\n this.onChange = onChange;\n }\n\n ngOnChanges() {\n this.onChange();\n }\n\n ngOnDestroy() {\n this.tuiValidator = Validators.nullValidator;\n this.onChange();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValidatorDirective} from './validator.directive';\n\n@NgModule({\n declarations: [TuiValidatorDirective],\n exports: [TuiValidatorDirective],\n})\nexport class TuiValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAsBA;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;8BAvBY,qBAAqB;IAO9B,wCAAQ,GAAR,UAAS,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yDAAyB,GAAzB,UAA0B,QAAkB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;;IAjBD;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;+DACoC;IAL5C,qBAAqB;QAVjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,aAAa;oBACtB,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;oBACpD,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,qBAAqB,CAuBjC;IAAD,4BAAC;CAvBD;;;ICdA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __decorate, __param } from 'tslib';
|
|
2
|
+
import { Inject, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import { TuiZoomService } from '@taiga-ui/cdk/services';
|
|
4
|
+
|
|
5
|
+
// @dynamic
|
|
6
|
+
var TuiZoomDirective = /** @class */ (function () {
|
|
7
|
+
function TuiZoomDirective(tuiZoom) {
|
|
8
|
+
this.tuiZoom = tuiZoom;
|
|
9
|
+
}
|
|
10
|
+
TuiZoomDirective.ctorParameters = function () { return [
|
|
11
|
+
{ type: TuiZoomService, decorators: [{ type: Inject, args: [TuiZoomService,] }] }
|
|
12
|
+
]; };
|
|
13
|
+
TuiZoomDirective = __decorate([
|
|
14
|
+
Directive({
|
|
15
|
+
selector: '[tuiZoom]',
|
|
16
|
+
outputs: ['tuiZoom'],
|
|
17
|
+
providers: [TuiZoomService],
|
|
18
|
+
host: {
|
|
19
|
+
'[style.touch-actions]': '"none"',
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
__param(0, Inject(TuiZoomService))
|
|
23
|
+
], TuiZoomDirective);
|
|
24
|
+
return TuiZoomDirective;
|
|
25
|
+
}());
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @experimental
|
|
29
|
+
*/
|
|
30
|
+
var TuiZoomModule = /** @class */ (function () {
|
|
31
|
+
function TuiZoomModule() {
|
|
32
|
+
}
|
|
33
|
+
TuiZoomModule = __decorate([
|
|
34
|
+
NgModule({
|
|
35
|
+
declarations: [TuiZoomDirective],
|
|
36
|
+
exports: [TuiZoomDirective],
|
|
37
|
+
})
|
|
38
|
+
], TuiZoomModule);
|
|
39
|
+
return TuiZoomModule;
|
|
40
|
+
}());
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Generated bundle index. Do not edit.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
export { TuiZoomDirective, TuiZoomModule };
|
|
47
|
+
//# sourceMappingURL=taiga-ui-cdk-directives-zoom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["ng://@taiga-ui/cdk/directives/zoom/zoom.directive.ts","ng://@taiga-ui/cdk/directives/zoom/zoom.module.ts","ng://@taiga-ui/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\n\n// @dynamic\n@Directive({\n selector: '[tuiZoom]',\n outputs: ['tuiZoom'],\n providers: [TuiZoomService],\n host: {\n '[style.touch-actions]': '\"none\"',\n },\n})\nexport class TuiZoomDirective {\n constructor(@Inject(TuiZoomService) readonly tuiZoom: TuiZoomService) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiZoomDirective} from './zoom.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiZoomDirective],\n exports: [TuiZoomDirective],\n})\nexport class TuiZoomModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;IAUI,0BAA6C,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;KAAI;;gBAAlB,cAAc,uBAAvD,MAAM,SAAC,cAAc;;IADzB,gBAAgB;QAR5B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,OAAO,EAAE,CAAC,SAAS,CAAC;YACpB,SAAS,EAAE,CAAC,cAAc,CAAC;YAC3B,IAAI,EAAE;gBACF,uBAAuB,EAAE,QAAQ;aACpC;SACJ,CAAC;QAEe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;OAD1B,gBAAgB,CAE5B;IAAD,uBAAC;CAFD;;ACRA;;;;IAOA;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACXA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '@taiga-ui/cdk/directives/active-zone';
|
|
2
|
-
export * from '@taiga-ui/cdk/directives/autofilled';
|
|
3
2
|
export * from '@taiga-ui/cdk/directives/auto-focus';
|
|
3
|
+
export * from '@taiga-ui/cdk/directives/autofilled';
|
|
4
4
|
export * from '@taiga-ui/cdk/directives/checked';
|
|
5
5
|
export * from '@taiga-ui/cdk/directives/drag';
|
|
6
6
|
export * from '@taiga-ui/cdk/directives/droppable';
|
|
@@ -17,13 +17,14 @@ export * from '@taiga-ui/cdk/directives/let';
|
|
|
17
17
|
export * from '@taiga-ui/cdk/directives/media';
|
|
18
18
|
export * from '@taiga-ui/cdk/directives/obscured';
|
|
19
19
|
export * from '@taiga-ui/cdk/directives/overscroll';
|
|
20
|
+
export * from '@taiga-ui/cdk/directives/pan';
|
|
20
21
|
export * from '@taiga-ui/cdk/directives/pressed';
|
|
21
|
-
export * from '@taiga-ui/cdk/directives/resize';
|
|
22
22
|
export * from '@taiga-ui/cdk/directives/prevent-default';
|
|
23
23
|
export * from '@taiga-ui/cdk/directives/repeat-times';
|
|
24
|
-
export * from '@taiga-ui/cdk/directives/
|
|
25
|
-
export * from '@taiga-ui/cdk/directives/pan';
|
|
24
|
+
export * from '@taiga-ui/cdk/directives/resize';
|
|
26
25
|
export * from '@taiga-ui/cdk/directives/swipe';
|
|
26
|
+
export * from '@taiga-ui/cdk/directives/validator';
|
|
27
|
+
export * from '@taiga-ui/cdk/directives/zoom';
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives.js","sources":["ng://@taiga-ui/cdk/directives/taiga-ui-cdk-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives.js","sources":["ng://@taiga-ui/cdk/directives/taiga-ui-cdk-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;"}
|
|
@@ -53,6 +53,17 @@ var TuiTransactionAutofillName;
|
|
|
53
53
|
TuiTransactionAutofillName["TransactionAmount"] = "transaction-amount";
|
|
54
54
|
})(TuiTransactionAutofillName || (TuiTransactionAutofillName = {}));
|
|
55
55
|
|
|
56
|
+
var TuiDayOfWeek;
|
|
57
|
+
(function (TuiDayOfWeek) {
|
|
58
|
+
TuiDayOfWeek[TuiDayOfWeek["Sunday"] = 0] = "Sunday";
|
|
59
|
+
TuiDayOfWeek[TuiDayOfWeek["Monday"] = 1] = "Monday";
|
|
60
|
+
TuiDayOfWeek[TuiDayOfWeek["Tuesday"] = 2] = "Tuesday";
|
|
61
|
+
TuiDayOfWeek[TuiDayOfWeek["Wednesday"] = 3] = "Wednesday";
|
|
62
|
+
TuiDayOfWeek[TuiDayOfWeek["Thursday"] = 4] = "Thursday";
|
|
63
|
+
TuiDayOfWeek[TuiDayOfWeek["Friday"] = 5] = "Friday";
|
|
64
|
+
TuiDayOfWeek[TuiDayOfWeek["Saturday"] = 6] = "Saturday";
|
|
65
|
+
})(TuiDayOfWeek || (TuiDayOfWeek = {}));
|
|
66
|
+
|
|
56
67
|
/**
|
|
57
68
|
* @deprecated use join type {@link TuiInputModeT}
|
|
58
69
|
*/
|
|
@@ -111,17 +122,6 @@ var TuiOverscrollMode;
|
|
|
111
122
|
TuiOverscrollMode["None"] = "none";
|
|
112
123
|
})(TuiOverscrollMode || (TuiOverscrollMode = {}));
|
|
113
124
|
|
|
114
|
-
var TuiDayOfWeek;
|
|
115
|
-
(function (TuiDayOfWeek) {
|
|
116
|
-
TuiDayOfWeek[TuiDayOfWeek["Sunday"] = 0] = "Sunday";
|
|
117
|
-
TuiDayOfWeek[TuiDayOfWeek["Monday"] = 1] = "Monday";
|
|
118
|
-
TuiDayOfWeek[TuiDayOfWeek["Tuesday"] = 2] = "Tuesday";
|
|
119
|
-
TuiDayOfWeek[TuiDayOfWeek["Wednesday"] = 3] = "Wednesday";
|
|
120
|
-
TuiDayOfWeek[TuiDayOfWeek["Thursday"] = 4] = "Thursday";
|
|
121
|
-
TuiDayOfWeek[TuiDayOfWeek["Friday"] = 5] = "Friday";
|
|
122
|
-
TuiDayOfWeek[TuiDayOfWeek["Saturday"] = 6] = "Saturday";
|
|
123
|
-
})(TuiDayOfWeek || (TuiDayOfWeek = {}));
|
|
124
|
-
|
|
125
125
|
/**
|
|
126
126
|
* Generated bundle index. Do not edit.
|
|
127
127
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-enums.js","sources":["ng://@taiga-ui/cdk/enums/autocomplete.ts","ng://@taiga-ui/cdk/enums/
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-enums.js","sources":["ng://@taiga-ui/cdk/enums/autocomplete.ts","ng://@taiga-ui/cdk/enums/day-of-week.ts","ng://@taiga-ui/cdk/enums/input-mode.ts","ng://@taiga-ui/cdk/enums/input-type.ts","ng://@taiga-ui/cdk/enums/month-number.ts","ng://@taiga-ui/cdk/enums/overscroll-mode.ts","ng://@taiga-ui/cdk/enums/taiga-ui-cdk-enums.ts"],"sourcesContent":["export const enum TuiCreditCardAutofillName {\n Off = 'off',\n CcName = 'cc-name',\n CcNumber = 'cc-number',\n CcCsc = 'cc-csc',\n CcExp_mounth = 'cc-exp-month',\n CcExp_year = 'cc-exp-year',\n CcExp = 'cc-exp',\n CcType = 'cc-type',\n}\n\nexport const enum TuiNameAutofillName {\n Off = 'off',\n Name = 'name',\n GivenName = 'given-name',\n AdditionalName = 'additional-name',\n FamilyName = 'family-name',\n}\n\nexport const enum TuiAccountAutofillName {\n Off = 'off',\n Username = 'username',\n NewPassword = 'new-password',\n CurrentPassword = 'current-password',\n}\n\nexport const enum TuiEmailAutofillName {\n Off = 'off',\n Email = 'email',\n}\n\nexport const enum TuiAddressAutofillName {\n Off = 'off',\n StreetAddress = 'street-address',\n PostalCode = 'postal-code',\n CountryName = 'country-name',\n}\n\nexport const enum TuiPhoneAutofillName {\n Off = 'off',\n Tel = 'tel',\n}\n\nexport const enum TuiDateAutofillName {\n Off = 'off',\n Bday = 'bday',\n}\n\nexport const enum TuiTransactionAutofillName {\n Off = 'off',\n TransactionCurrency = 'transaction-currency',\n TransactionAmount = 'transaction-amount',\n}\nexport type TuiAutofillFieldName =\n | TuiCreditCardAutofillName\n | TuiNameAutofillName\n | TuiAccountAutofillName\n | TuiEmailAutofillName\n | TuiAddressAutofillName\n | TuiPhoneAutofillName\n | TuiDateAutofillName\n | TuiTransactionAutofillName;\n","export const enum TuiDayOfWeek {\n Sunday,\n Monday,\n Tuesday,\n Wednesday,\n Thursday,\n Friday,\n Saturday,\n}\n","/**\n * @deprecated use join type {@link TuiInputModeT}\n */\nexport const enum TuiInputMode {\n None = 'none',\n Text = 'text',\n Decimal = 'decimal',\n Numeric = 'numeric',\n Tel = 'tel',\n Email = 'email',\n Url = 'url',\n Search = 'search',\n}\n","/**\n * @deprecated use join type {@link TuiInputTypeT}\n */\nexport const enum TuiInputType {\n Text = 'text',\n Tel = 'tel',\n Email = 'email',\n Url = 'url',\n Password = 'password',\n}\n","export const enum TuiMonthNumber {\n January,\n February,\n March,\n April,\n May,\n June,\n July,\n August,\n September,\n October,\n November,\n December,\n}\n","/**\n * Modes for {@link TuiOverscrollDirective}:\n *\n * All — blocks all scroll actions\n * Scroll — blocks scroll actions only if content is scrollable (equivalent to overscroll-behavior: contain)\n * None — blocking is disabled\n * @deprecated use join type {@link TuiOverscrollModeT}\n */\nexport const enum TuiOverscrollMode {\n All = 'all',\n Scroll = 'scroll',\n None = 'none',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"IAAkB;AAAlB,WAAkB,yBAAyB;IACvC,wCAAW,CAAA;IACX,+CAAkB,CAAA;IAClB,mDAAsB,CAAA;IACtB,6CAAgB,CAAA;IAChB,0DAA6B,CAAA;IAC7B,uDAA0B,CAAA;IAC1B,6CAAgB,CAAA;IAChB,+CAAkB,CAAA;AACtB,CAAC,EATiB,yBAAyB,KAAzB,yBAAyB,QAS1C;IAEiB;AAAlB,WAAkB,mBAAmB;IACjC,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,yDAAkC,CAAA;IAClC,iDAA0B,CAAA;AAC9B,C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