@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;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;IAG9B,YACuC,WAAqB,EAEvC,UAAmC,EAChB,QAAmB;QAHpB,gBAAW,GAAX,WAAW,CAAU;QAEvC,eAAU,GAAV,UAAU,CAAyB;QAChB,aAAQ,GAAR,QAAQ,CAAW;QAN1C,kBAAa,GAAG,gBAAgB,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AA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAPb,qBAAqB,CAyDjC;;
|
|
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;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;IAG9B,YACuC,WAAqB,EAEvC,UAAmC,EAChB,QAAmB;QAHpB,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,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACnD,CAAC,CAAC;KACN;IAGD,MAAM;QACF,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;KAC5E;IAGD,SAAS,CAAC,IAAU;QAChB,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE;YACtD,OAAO;SACV;QAED,MAAM,SAAS,GAAG,mBAAmB,CACjC,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,KAAK,EACL,IAAI,CAAC,UAAU,CAAC,aAAa,CAChC,CAAC;QAEF,IAAI,SAAS,EAAE;YACX,gBAAgB,CAAC,SAAS,CAAC,CAAC;SAC/B;KACJ;IAED,WAAW;QACP,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;;;;;;;QAQpC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;;YAEnB,IAAI,IAAI,CAAC,aAAa,YAAY,WAAW,EAAE;gBAC3C,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACxC;SACJ,CAAC,CAAC;KACN;EACJ;;YArDuD,QAAQ,uBAAvD,MAAM,SAAC,QAAQ;YAEa,UAAU,uBADtC,MAAM,SAAC,UAAU;YAE4B,SAAS,uBAAtD,MAAM,SAAC,SAAS;;AAarB;IADC,YAAY,CAAC,MAAM,CAAC;mDAGpB;AAGD;IADC,YAAY,CAAC,uBAAuB,EAAE,CAAC,eAAe,CAAC,CAAC;sDAexD;AAvCQ,qBAAqB;IANjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE;YACF,QAAQ,EAAE,GAAG;SAChB;KACJ,CAAC;IAKO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAPb,qBAAqB,CAyDjC;;ICzEY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
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';\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;;;;;;IAWa,wBAAwB,GAArC,MAAa,wBAAwB;IACjC,YAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;EACP;;YAFuC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;AAFzB,wBAAwB;IALpC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;KACzD,CAAC;IAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAF1B,wBAAwB,CAKpC;;
|
|
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;;;;;;IAWa,wBAAwB,GAArC,MAAa,wBAAwB;IACjC,YAEa,qBAA0C;QAA1C,0BAAqB,GAArB,qBAAqB,CAAqB;KACnD;EACP;;YAFuC,UAAU,uBADzC,MAAM,SAAC,sBAAsB;;AAFzB,wBAAwB;IALpC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,OAAO,EAAE,CAAC,uBAAuB,CAAC;QAClC,SAAS,EAAE,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;KACzD,CAAC;IAGO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAF1B,wBAAwB,CAKpC;;ICZY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
|
|
@@ -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,qBAAqB,GAAlC,MAAa,qBAAqB;IAAlC;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC;EACJ;AANG;IADC,KAAK,CAAC,cAAc,CAAC;wDACL;AAGjB;IADC,WAAW,CAAC,UAAU,CAAC;qDAGvB;AAVQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;KAC7B,CAAC;GACW,qBAAqB,CAWjC;;
|
|
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,qBAAqB,GAAlC,MAAa,qBAAqB;IAAlC;;;;QAKI,cAAS,GAAG,IAAI,CAAC;KAMpB;IAHG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC;EACJ;AANG;IADC,KAAK,CAAC,cAAc,CAAC;wDACL;AAGjB;IADC,WAAW,CAAC,UAAU,CAAC;qDAGvB;AAVQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;KAC7B,CAAC;GACW,qBAAqB,CAWjC;;ICXY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
|
|
@@ -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;;;;;IAQa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YAEI,EAAC,aAAa,EAA0B,EACxB,MAAc;QAE9B,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,MAAM,eAAe,CAAC,aAAa,CAAC,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;EACJ;;YAdwB,UAAU,uBAD1B,MAAM,SAAC,UAAU;YAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;AALlB;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GAPV,mBAAmB,CAoB/B;;
|
|
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;;;;;IAQa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YAEI,EAAC,aAAa,EAA0B,EACxB,MAAc;QAE9B,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,MAAM,eAAe,CAAC,aAAa,CAAC,CAAC,EACzC,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,EACP,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;KACL;EACJ;;YAdwB,UAAU,uBAD1B,MAAM,SAAC,UAAU;YAEM,MAAM,uBAA7B,MAAM,SAAC,MAAM;;AALlB;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAElB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;GAPV,mBAAmB,CAoB/B;;IC1BY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
|
|
@@ -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":";;;IAYa,eAAe,GAA5B,MAAa,eAAe;IAYxB,YAA6B,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAVlD,YAAO,GAAqB,EAAE,CAAC;KAUuB;IAEtD,WAAW;;QACP,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;EACJ;;YAXqC,gBAAgB;;AAVlD;IADC,KAAK,EAAE;gDACuB;AAG/B;IADC,KAAK,EAAE;kDACoB;AAG5B;IADC,KAAK,EAAE;mDACqB;AARpB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,0DAA0D;KACvE,CAAC;GACW,eAAe,CAuB3B;;
|
|
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":";;;IAYa,eAAe,GAA5B,MAAa,eAAe;IAYxB,YAA6B,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAVlD,YAAO,GAAqB,EAAE,CAAC;KAUuB;IAEtD,WAAW;;QACP,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;EACJ;;YAXqC,gBAAgB;;AAVlD;IADC,KAAK,EAAE;gDACuB;AAG/B;IADC,KAAK,EAAE;kDACoB;AAG5B;IADC,KAAK,EAAE;mDACqB;AARpB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,0DAA0D;KACvE,CAAC;GACW,eAAe,CAuB3B;;IC3BY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACR5B;;;;;;"}
|
|
@@ -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;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YACoB,EAAC,gBAAgB,EAAS,EAChB,aAA+B,EACpC,WAAiC;QAEtD,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;EACJ;;YAR2C,MAAM,uBAAzC,MAAM,SAAC,MAAM;YAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJd,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;KAC3B,CAAC;IAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAJf,mBAAmB,CAU/B;;
|
|
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;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YACoB,EAAC,gBAAgB,EAAS,EAChB,aAA+B,EACpC,WAAiC;QAEtD,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;EACJ;;YAR2C,MAAM,uBAAzC,MAAM,SAAC,MAAM;YAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJd,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;KAC3B,CAAC;IAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAJf,mBAAmB,CAU/B;;ICZY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
|
|
@@ -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":";;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YACwB,EAAC,aAAa,EAAsB,EAC7B,cAAiC;QAE5D,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;KACxE;EACJ;;YAL4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACyB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;AAJ7B;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GANrB,mBAAmB,CAU/B;;
|
|
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":";;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI5B,YACwB,EAAC,aAAa,EAAsB,EAC7B,cAAiC;QAE5D,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;KACxE;EACJ;;YAL4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACyB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;AAJ7B;IADC,MAAM,EAAE;6DACsC;AAFtC,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GANrB,mBAAmB,CAU/B;;ICTY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
|
|
@@ -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;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAM9B,YAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;cACvD,QAAQ;cACR,IAAI,CAAC,OAAO,CAAC;KACtB;EACJ;;yCAVQ,SAAS,SAAC,SAAS;0CACnB,MAAM,SAAC,UAAU;;AAJtB;IAHC,KAAK,CAAC,cAAc,CAAC;IACrB,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,kBAAkB,CAAC;mDACH;AAQ7B;IADC,WAAW,CAAC,cAAc,CAAC;6DAK3B;AAhBQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,qBAAqB,CAiBjC;;
|
|
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;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAM9B,YAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;cACvD,QAAQ;cACR,IAAI,CAAC,OAAO,CAAC;KACtB;EACJ;;yCAVQ,SAAS,SAAC,SAAS;0CACnB,MAAM,SAAC,UAAU;;AAJtB;IAHC,KAAK,CAAC,cAAc,CAAC;IACrB,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,kBAAkB,CAAC;mDACH;AAQ7B;IADC,WAAW,CAAC,cAAc,CAAC;6DAK3B;AAhBQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,qBAAqB,CAiBjC;;ICnBY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
|
|
@@ -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;;;MAGa,aAAa;IACtB,YAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;;;
|
|
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;;;MAGa,aAAa;IACtB,YAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;;;ACZL;;;;IAOa,eAAe,GAA5B,MAAa,eAAe;IAIxB,YAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQD,OAAO,sBAAsB,CACzB,IAAwB,EACxB,IAAS;QAET,OAAO,IAAI,CAAC;KACf;EACJ;;YAlBgD,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJvB;IADC,KAAK,EAAE;+CACG;AAFF,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;KACvB,CAAC;IAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GANf,eAAe,CAuB3B;;IC1BY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACR5B;;;;;;"}
|
|
@@ -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;IAMY,iBAAiB,GAA9B,MAAa,iBAAiB;IAyC1B,YAEqB,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,IAAI,kBAAkB,CAAC,YAAoB;QACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;KACzC;IAID,IAAI,WAAW,CAAC,WAAmB;QAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;YACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;SAC3D;KACJ;IAGD,IAAI,MAAM,CAAC,MAAe;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AAE;IACP,iBAAiB,CAAC,0BAA0B,CAAC;oDAK7C;AAGD;IADC,KAAK,EAAE;+CAQP;AAGD;IADC,MAAM,EAAE;4DAC+C;AAGxD;IADC,MAAM,EAAE;uDAC2C;AAGpD;IADC,MAAM,EAAE;uDAC0C;AAqBnD;IAHC,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;uDAI/B;AAGD;IADC,YAAY,CAAC,cAAc,CAAC;uDAI5B;AAKD;IAHC,YAAY,CAAC,YAAY,CAAC;IAC1B,YAAY,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,QAAQ,CAAC;4DAGtB;AAGD;IADC,YAAY,CAAC,gBAAgB,CAAC;+DAG9B;AA/EQ,iBAAiB;IAJ7B,SAAS,CAAC;QACP,QAAQ,EAAE,kCAAkC;QAC5C,QAAQ,EAAE,UAAU;KACvB,CAAC;IA2CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GA1Cd,iBAAiB,CAqF7B;;
|
|
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;IAMY,iBAAiB,GAA9B,MAAa,iBAAiB;IAyC1B,YAEqB,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,IAAI,kBAAkB,CAAC,YAAoB;QACvC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;KACzC;IAID,IAAI,WAAW,CAAC,WAAmB;QAC/B,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;YACjD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;SAC3D;KACJ;IAGD,IAAI,MAAM,CAAC,MAAe;QACtB,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;SACzC;aAAM;YACH,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;YACrC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC,C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CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;uDAI/B;AAGD;IADC,YAAY,CAAC,cAAc,CAAC;uDAI5B;AAKD;IAHC,YAAY,CAAC,YAAY,CAAC;IAC1B,YAAY,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,QAAQ,CAAC;4DAGtB;AAGD;IADC,YAAY,CAAC,gBAAgB,CAAC;+DAG9B;AA/EQ,iBAAiB;IAJ7B,SAAS,CAAC;QACP,QAAQ,EAAE,kCAAkC;QAC5C,QAAQ,EAAE,UAAU;KACvB,CAAC;IA2CO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GA1Cd,iBAAiB,CAqF7B;;ICrGY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACR9B;;;;;;"}
|
|
@@ -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;;;IAOa,oBAAoB,GAAjC,MAAa,oBAAoB;IAY7B,YAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAU,IACN,CAAC,CAAC,UAAU;aACX,CAAC,UAAU;gBACR,CAAC,UAAU,CAAC,MAAM;gBAClB,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,OAAO,KAAK,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC,CACpD,CAAC;KACL;IA5BD,IAAI,kBAAkB,CAAC,OAAgB;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;EA2BJ;;YAnBmB,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;YAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;AAZ9B;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;8DAGnB;AAGD;IADC,MAAM,EAAE;yDACiC;AAVjC,oBAAoB;IAJhC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;KAC9E,CAAC;IAcO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GAjBtB,oBAAoB,CAkChC;;
|
|
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;;;IAOa,oBAAoB,GAAjC,MAAa,oBAAoB;IAY7B,YAGI,UAAyC,EAGzC,SAA6B;QAjBhB,aAAQ,GAAG,IAAI,OAAO,EAAW,CAAC;QAmB/C,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAC1B,GAAG,CACC,UAAU,IACN,CAAC,CAAC,UAAU;aACX,CAAC,UAAU;gBACR,CAAC,UAAU,CAAC,MAAM;gBAClB,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CACtE,CACJ,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,SAAS,CAAC,OAAO,KAAK,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC,CACpD,CAAC;KACL;IA5BD,IAAI,kBAAkB,CAAC,OAAgB;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;EA2BJ;;YAnBmB,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;YAInB,kBAAkB,uBAF5B,IAAI,YACJ,MAAM,SAAC,kBAAkB;;AAZ9B;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;8DAGnB;AAGD;IADC,MAAM,EAAE;yDACiC;AAVjC,oBAAoB;IAJhC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QACzB,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;KAC9E,CAAC;IAcO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GAjBtB,oBAAoB,CAkChC;;IC5CY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAJ7B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACRjC;;;;;;"}
|
|
@@ -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;;;;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAI/B,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B;QALzD,SAAI,GAAuB,QAAQ,CAAC;QAOhC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAC1B,SAAS,CAAC,QAAQ,CAAC,EACnB,WAAW,CAAC,MAAM,CAAC,CACtB;aACA,SAAS,CAAC,KAAK;YACZ,IAAI,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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C,MAAM,SAAC,iBAAiB;;AAL7B;IADC,KAAK,CAAC,eAAe,CAAC;oDACa;AAiEpC;IADC,WAAW,CAAC,0BAA0B,CAAC;gEAGvC;AArEQ,sBAAsB;IAJlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IAMO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAPrB,sBAAsB,CAiHlC;;
|
|
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;;;;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAI/B,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B;QALzD,SAAI,GAAuB,QAAQ,CAAC;QAOhC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAC1B,SAAS,CAAC,QAAQ,CAAC,EACnB,WAAW,CAAC,MAAM,CAAC,CACtB;aACA,SAAS,CAAC,KAAK;YACZ,IAAI,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,CAAC,EAAC,OAAO,EAAC;YAChB,IAAI,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACpC,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,IAAI,QAAiB,CAAC;YAEtB,OAAO,cAAc,CAAC,aAAa,EAAE,WAAW,EAAE;gBAC9C,OAAO,EAAE,KAAK;aACjB,CAAC,CAAC,IAA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MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
|
|
@@ -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;IAMa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAA4C,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;KAAI;EACxE;;YADuD,aAAa,uBAApD,MAAM,SAAC,aAAa;;AADxB,eAAe;IAL3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,SAAS,EAAE,CAAC,aAAa,CAAC;KAC7B,CAAC;IAEe,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;GADzB,eAAe,CAE3B;;
|
|
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;IAMa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAA4C,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;KAAI;EACxE;;YADuD,aAAa,uBAApD,MAAM,SAAC,aAAa;;AADxB,eAAe;IAL3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,SAAS,EAAE,CAAC,aAAa,CAAC;KAC7B,CAAC;IAEe,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;GADzB,eAAe,CAE3B;;ACPD;;;IAOa,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACX5B;;;;;;"}
|
|
@@ -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":";;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAM5B,YACyC,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;EACP;;YAJwD,UAAU,uBAA1D,MAAM,SAAC,UAAU;0CACjB,MAAM,SAAC,4BAA4B;;AANxC;IADC,MAAM,EAAE;6DAGN;AAJM,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;GARhC,mBAAmB,CAW/B;;
|
|
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":";;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAM5B,YACyC,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;EACP;;YAJwD,UAAU,uBAA1D,MAAM,SAAC,UAAU;0CACjB,MAAM,SAAC,4BAA4B;;AANxC;IADC,MAAM,EAAE;6DAGN;AAJM,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;GARhC,mBAAmB,CAW/B;;ICVY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
|
|
@@ -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;;;;;IASa,0BAA0B,GAAvC,MAAa,0BAA0B;IACnC,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;QAEjD,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;EACJ;;YAT4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;YACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;yCACxB,SAAS,SAAC,mBAAmB;;AALzB,0BAA0B;IAJtC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;GAL1B,0BAA0B,CAWtC;;
|
|
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;;;;;IASa,0BAA0B,GAAvC,MAAa,0BAA0B;IACnC,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;QAEjD,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;EACJ;;YAT4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;YACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;yCACxB,SAAS,SAAC,mBAAmB;;AALzB,0BAA0B;IAJtC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;GAL1B,0BAA0B,CAWtC;;IClBY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;QAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;ACRvC;;;;;;"}
|
|
@@ -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,MAAM,SAAS,GAAG,OAAO,CAAC;MAEb,qBAAqB;IAC9B,YAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;KAAI;CAC7C;AAED;;;;;;;IAUa,uBAAuB,GAApC,MAAa,uBAAuB;IAehC,YAEqB,aAA+B,EAE/B,WAA+C;QAF/C,kBAAa,GAAb,aAAa,CAAkB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;KAChE;IAjBJ,IAAI,gBAAgB,CAAC,KAAa;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;QAEzD,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC,aAAa,CAAC;QAEpC,IAAI,KAAK,GAAG,MAAM,EAAE;YAChB,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;SACzC;aAAM;YACH,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SACjC;KACJ;IASO,aAAa,CAAC,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,gBAAgB,CAAC,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;EACJ;;YAnBuC,gBAAgB,uBAD/C,MAAM,SAAC,gBAAgB;YAGM,WAAW,uBADxC,MAAM,SAAC,WAAW;;AAfvB;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;+DAWnB;AAbQ,uBAAuB;IAHnC,SAAS,CAAC;QACP,QAAQ,EAAE,oCAAoC;KACjD,CAAC;IAiBO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAlBf,uBAAuB,CAoCnC;;
|
|
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,MAAM,SAAS,GAAG,OAAO,CAAC;MAEb,qBAAqB;IAC9B,YAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;KAAI;CAC7C;AAED;;;;;;;IAUa,uBAAuB,GAApC,MAAa,uBAAuB;IAehC,YAEqB,aAA+B,EAE/B,WAA+C;QAF/C,kBAAa,GAAb,aAAa,CAAkB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;KAChE;IAjBJ,IAAI,gBAAgB,CAAC,KAAa;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,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+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;IAMa,kBAAkB,GAA/B,MAAa,kBAAkB;IAC3B,YAEa,SAAyD;QAAzD,cAAS,GAAT,SAAS,CAAgD;KAClE;EACP;;YAF2B,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;AAFnB,kBAAkB;IAL9B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;KACnD,CAAC;IAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAFpB,kBAAkB,CAK9B;;
|
|
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;IAMa,kBAAkB,GAA/B,MAAa,kBAAkB;IAC3B,YAEa,SAAyD;QAAzD,cAAS,GAAT,SAAS,CAAgD;KAClE;EACP;;YAF2B,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;AAFnB,kBAAkB;IAL9B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;KACnD,CAAC;IAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAFpB,kBAAkB,CAK9B;;ACXD;;;IAOa,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAJ3B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;ACX/B;;;;;;"}
|
|
@@ -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;IAMa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YAA8C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;EAC9E;;YAD2D,eAAe,uBAA1D,MAAM,SAAC,eAAe;;AAD1B,iBAAiB;IAL7B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,SAAS,EAAE,CAAC,eAAe,CAAC;KAC/B,CAAC;IAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;GAD3B,iBAAiB,CAE7B;;
|
|
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;IAMa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YAA8C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;EAC9E;;YAD2D,eAAe,uBAA1D,MAAM,SAAC,eAAe;;AAD1B,iBAAiB;IAL7B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,SAAS,EAAE,CAAC,eAAe,CAAC;KAC/B,CAAC;IAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;GAD3B,iBAAiB,CAE7B;;ACPD;;;IAOa,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACX9B;;;;;;"}
|
|
@@ -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,qBAAqB,6BAAlC,MAAa,qBAAqB;IAAlC;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;IAhBG,QAAQ,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yBAAyB,CAAC,QAAkB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,WAAW;QACP,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,WAAW;QACP,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;EACJ;AAlBG;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;2DACoC;AAL5C,qBAAqB;IAVjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,UAAU,CAAC,MAAM,uBAAqB,CAAC;gBACpD,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;GACW,qBAAqB,CAuBjC;;
|
|
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,qBAAqB,6BAAlC,MAAa,qBAAqB;IAAlC;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;IAhBG,QAAQ,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yBAAyB,CAAC,QAAkB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,WAAW;QACP,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,WAAW;QACP,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;EACJ;AAlBG;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;2DACoC;AAL5C,qBAAqB;IAVjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,UAAU,CAAC,MAAM,uBAAqB,CAAC;gBACpD,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;GACW,qBAAqB,CAuBjC;;ICrCY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
let TuiZoomDirective = class TuiZoomDirective {
|
|
7
|
+
constructor(tuiZoom) {
|
|
8
|
+
this.tuiZoom = tuiZoom;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
TuiZoomDirective.ctorParameters = () => [
|
|
12
|
+
{ type: TuiZoomService, decorators: [{ type: Inject, args: [TuiZoomService,] }] }
|
|
13
|
+
];
|
|
14
|
+
TuiZoomDirective = __decorate([
|
|
15
|
+
Directive({
|
|
16
|
+
selector: '[tuiZoom]',
|
|
17
|
+
outputs: ['tuiZoom'],
|
|
18
|
+
providers: [TuiZoomService],
|
|
19
|
+
host: {
|
|
20
|
+
'[style.touch-actions]': '"none"',
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
__param(0, Inject(TuiZoomService))
|
|
24
|
+
], TuiZoomDirective);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @experimental
|
|
28
|
+
*/
|
|
29
|
+
let TuiZoomModule = class TuiZoomModule {
|
|
30
|
+
};
|
|
31
|
+
TuiZoomModule = __decorate([
|
|
32
|
+
NgModule({
|
|
33
|
+
declarations: [TuiZoomDirective],
|
|
34
|
+
exports: [TuiZoomDirective],
|
|
35
|
+
})
|
|
36
|
+
], TuiZoomModule);
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { TuiZoomDirective, TuiZoomModule };
|
|
43
|
+
//# 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;IASa,gBAAgB,GAA7B,MAAa,gBAAgB;IACzB,YAA6C,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;KAAI;EAC3E;;YADyD,cAAc,uBAAvD,MAAM,SAAC,cAAc;;AADzB,gBAAgB;IAR5B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,SAAS,EAAE,CAAC,cAAc,CAAC;QAC3B,IAAI,EAAE;YACF,uBAAuB,EAAE,QAAQ;SACpC;KACJ,CAAC;IAEe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;GAD1B,gBAAgB,CAE5B;;ACVD;;;IAOa,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACX7B;;;;;;"}
|
|
@@ -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,CAAC,EANiB,mBAAmB,KAAnB,mBAAmB,QAMpC;IAEiB;AAAlB,WAAkB,sBAAsB;IACpC,qCAAW,CAAA;IACX,+CAAqB,CAAA;IACrB,sDAA4B,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