@taiga-ui/cdk 3.491.0-canary.34e703b → 3.491.1-canary.5e01f6f
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/abstract/control.d.ts +0 -6
- package/abstract/interactive.d.ts +0 -9
- package/abstract/portal-host.d.ts +0 -3
- package/abstract/portal-service.d.ts +0 -3
- package/abstract/taiga-ui-cdk-abstract.d.ts +0 -3
- package/abstract/theme-switcher.d.ts +0 -6
- package/bundles/taiga-ui-cdk-abstract.umd.js +0 -32
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +0 -9
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +0 -10
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +0 -8
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +0 -11
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +0 -10
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +0 -4
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components.umd.js +0 -4
- package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +1 -109
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +0 -284
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +0 -26
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +1 -44
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-control.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +0 -10
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +0 -5
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +0 -18
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +0 -17
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +0 -9
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +0 -10
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +0 -9
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +1 -7
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +0 -17
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +0 -10
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-platform.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +0 -12
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +0 -11
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +0 -5
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +0 -8
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +0 -4
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js +1 -3
- package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +1 -34
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +1 -7
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +5 -53
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +5 -109
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-types.umd.js +1 -3
- package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +0 -4
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +0 -10
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +2 -53
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +0 -51
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +0 -7
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +0 -38
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +6 -42
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +0 -14
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +1 -19
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +0 -4
- package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk.umd.js +0 -4
- package/bundles/taiga-ui-cdk.umd.js.map +1 -1
- package/classes/assert.d.ts +0 -5
- package/classes/taiga-ui-cdk-classes.d.ts +0 -3
- package/coercion/coerce-boolean-property.d.ts +0 -4
- package/coercion/taiga-ui-cdk-coercion.d.ts +0 -3
- package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +0 -3
- package/components/dialog-host/dialog-host.component.d.ts +0 -3
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +0 -3
- package/components/dropdown-host/dropdown-host.component.d.ts +0 -3
- package/components/dropdown-host/dropdown-portal.service.d.ts +0 -3
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +0 -3
- package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +0 -3
- package/components/taiga-ui-cdk-components.d.ts +0 -3
- package/constants/always-false-handler.d.ts +0 -3
- package/constants/always-true-handler.d.ts +0 -3
- package/constants/browser.d.ts +0 -4
- package/constants/empty.d.ts +0 -5
- package/constants/matcher.d.ts +0 -19
- package/constants/parent-animation.d.ts +0 -6
- package/constants/stringify.d.ts +0 -3
- package/constants/taiga-ui-cdk-constants.d.ts +0 -3
- package/constants/unicode-chars.d.ts +0 -51
- package/constants/used-icons.d.ts +0 -6
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/date-fillers.d.ts +0 -11
- package/date-time/date-format.d.ts +0 -3
- package/date-time/date-separator.d.ts +0 -3
- package/date-time/day-range.d.ts +0 -33
- package/date-time/day.d.ts +0 -91
- package/date-time/month-range.d.ts +0 -3
- package/date-time/month.d.ts +0 -56
- package/date-time/taiga-ui-cdk-date-time.d.ts +0 -3
- package/date-time/time.d.ts +0 -36
- package/date-time/year.d.ts +0 -42
- package/decorators/debounce.d.ts +0 -4
- package/decorators/default-prop.d.ts +0 -9
- package/decorators/pure.d.ts +0 -18
- package/decorators/required-setter.d.ts +0 -9
- package/decorators/taiga-ui-cdk-decorators.d.ts +0 -3
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +0 -3
- package/directives/auto-focus/handlers/ios.handler.d.ts +0 -39
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +0 -3
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +0 -3
- package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +0 -3
- package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +0 -3
- package/directives/control/taiga-ui-cdk-directives-control.d.ts +0 -3
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +0 -3
- package/directives/drag/drag.directive.d.ts +0 -3
- package/directives/drag/drag.module.d.ts +0 -3
- package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +0 -3
- package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +0 -3
- package/directives/element/taiga-ui-cdk-directives-element.d.ts +0 -3
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +0 -3
- package/directives/focus-visible/focus-visible.directive.d.ts +0 -5
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +0 -3
- package/directives/focusable/focusable.directive.d.ts +0 -6
- package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +0 -3
- package/directives/focused/focused.directive.d.ts +0 -5
- package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +0 -3
- package/directives/for/taiga-ui-cdk-directives-for.d.ts +0 -3
- package/directives/for-async/for-async.module.d.ts +0 -3
- package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +0 -3
- package/directives/high-dpi/high-dpi.directive.d.ts +0 -3
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +0 -3
- package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +0 -3
- package/directives/item/item.directive.d.ts +0 -3
- package/directives/item/taiga-ui-cdk-directives-item.d.ts +0 -3
- package/directives/let/let-context.d.ts +0 -3
- package/directives/let/let.directive.d.ts +0 -10
- package/directives/let/taiga-ui-cdk-directives-let.d.ts +0 -3
- package/directives/media/taiga-ui-cdk-directives-media.d.ts +0 -3
- package/directives/obscured/obscured.directive.d.ts +0 -3
- package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +0 -3
- package/directives/overscroll/overscroll.directive.d.ts +0 -3
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +0 -3
- package/directives/pan/pan.module.d.ts +0 -3
- package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +0 -3
- package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +0 -3
- package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +0 -3
- package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +0 -3
- package/directives/prevent-default/prevent-default.directive.d.ts +0 -5
- package/directives/prevent-default/prevent-default.module.d.ts +0 -3
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +0 -3
- package/directives/repeat-times/repeat-times.directive.d.ts +0 -7
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +0 -3
- package/directives/resize/resize.module.d.ts +0 -3
- package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +0 -3
- package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +0 -3
- package/directives/swipe/swipe.module.d.ts +0 -3
- package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +0 -3
- package/directives/taiga-ui-cdk-directives.d.ts +0 -3
- package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +0 -3
- package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +0 -3
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +0 -3
- package/directives/zoom/zoom.module.d.ts +0 -3
- package/enums/taiga-ui-cdk-enums.d.ts +0 -3
- package/esm2015/abstract/control.js +1 -7
- package/esm2015/abstract/interactive.js +1 -11
- package/esm2015/abstract/portal-host.js +1 -4
- package/esm2015/abstract/portal-service.js +1 -4
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +1 -4
- package/esm2015/abstract/theme-switcher.js +1 -7
- package/esm2015/classes/assert.js +1 -6
- package/esm2015/classes/taiga-ui-cdk-classes.js +1 -4
- package/esm2015/coercion/coerce-boolean-property.js +1 -7
- package/esm2015/coercion/taiga-ui-cdk-coercion.js +1 -4
- package/esm2015/components/alert-host/alert-host.component.js +1 -5
- package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +1 -4
- package/esm2015/components/dialog-host/dialog-host.component.js +1 -8
- package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +1 -4
- package/esm2015/components/dropdown-host/dropdown-host.component.js +1 -4
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +1 -4
- package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +1 -4
- package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +1 -4
- package/esm2015/components/taiga-ui-cdk-components.js +1 -4
- package/esm2015/constants/always-false-handler.js +1 -5
- package/esm2015/constants/always-true-handler.js +1 -5
- package/esm2015/constants/browser.js +1 -5
- package/esm2015/constants/empty.js +1 -6
- package/esm2015/constants/matcher.js +1 -20
- package/esm2015/constants/parent-animation.js +1 -7
- package/esm2015/constants/stringify.js +1 -4
- package/esm2015/constants/svg-node-filter.js +1 -3
- package/esm2015/constants/taiga-ui-cdk-constants.js +1 -4
- package/esm2015/constants/unicode-chars.js +1 -52
- package/esm2015/constants/used-icons.js +1 -7
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/date-fillers.js +1 -12
- package/esm2015/date-time/date-format.js +1 -4
- package/esm2015/date-time/date-separator.js +1 -4
- package/esm2015/date-time/day-range.js +1 -34
- package/esm2015/date-time/day.js +1 -94
- package/esm2015/date-time/month-range.js +1 -4
- package/esm2015/date-time/month.js +1 -57
- package/esm2015/date-time/taiga-ui-cdk-date-time.js +1 -4
- package/esm2015/date-time/time.js +1 -37
- package/esm2015/date-time/year.js +1 -43
- package/esm2015/decorators/debounce.js +1 -5
- package/esm2015/decorators/default-prop.js +1 -10
- package/esm2015/decorators/required-setter.js +1 -10
- package/esm2015/decorators/taiga-ui-cdk-decorators.js +1 -4
- package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +1 -4
- package/esm2015/directives/auto-focus/autofocus.options.js +2 -3
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +1 -40
- package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +1 -4
- package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +1 -4
- package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +1 -4
- package/esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js +1 -4
- package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +1 -4
- package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +1 -4
- package/esm2015/directives/drag/drag.directive.js +1 -4
- package/esm2015/directives/drag/drag.module.js +1 -4
- package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +1 -4
- package/esm2015/directives/droppable/droppable.directive.js +1 -2
- package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +1 -4
- package/esm2015/directives/element/element.directive.js +1 -15
- package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +1 -4
- package/esm2015/directives/focus-trap/focus-trap.directive.js +1 -14
- package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +1 -4
- package/esm2015/directives/focus-visible/focus-visible.directive.js +1 -6
- package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +1 -4
- package/esm2015/directives/focusable/focusable.directive.js +1 -7
- package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +1 -4
- package/esm2015/directives/focused/focused.directive.js +1 -6
- package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +1 -4
- package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +1 -4
- package/esm2015/directives/for-async/for-async.module.js +1 -4
- package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +1 -4
- package/esm2015/directives/high-dpi/high-dpi.directive.js +1 -4
- package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +1 -4
- package/esm2015/directives/hovered/hovered.service.js +2 -4
- package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +1 -4
- package/esm2015/directives/item/item.directive.js +1 -4
- package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +1 -4
- package/esm2015/directives/let/let-context.js +1 -4
- package/esm2015/directives/let/let.directive.js +1 -11
- package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +1 -4
- package/esm2015/directives/media/media.directive.js +1 -4
- package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +1 -4
- package/esm2015/directives/obscured/obscured.directive.js +1 -4
- package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +1 -4
- package/esm2015/directives/overscroll/overscroll.directive.js +1 -7
- package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +1 -4
- package/esm2015/directives/pan/pan.module.js +1 -4
- package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +1 -4
- package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +1 -4
- package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +1 -4
- package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +1 -4
- package/esm2015/directives/prevent-default/prevent-default.directive.js +1 -6
- package/esm2015/directives/prevent-default/prevent-default.module.js +1 -4
- package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +1 -4
- package/esm2015/directives/repeat-times/repeat-times.directive.js +1 -8
- package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +1 -4
- package/esm2015/directives/resize/resize.module.js +1 -4
- package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +1 -4
- package/esm2015/directives/resizer/resizer.directive.js +1 -2
- package/esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js +1 -4
- package/esm2015/directives/swipe/swipe.module.js +1 -4
- package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +1 -4
- package/esm2015/directives/taiga-ui-cdk-directives.js +1 -4
- package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +1 -4
- package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +1 -4
- package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +1 -4
- package/esm2015/directives/zoom/zoom.module.js +1 -4
- package/esm2015/enums/day-of-week.js +1 -3
- package/esm2015/enums/month-number.js +1 -3
- package/esm2015/enums/taiga-ui-cdk-enums.js +1 -4
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +1 -4
- package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +1 -4
- package/esm2015/observables/control-value.js +1 -4
- package/esm2015/observables/drag-and-drop-from.js +1 -3
- package/esm2015/observables/focus-visible-observable.js +2 -6
- package/esm2015/observables/is-alive.js +1 -4
- package/esm2015/observables/items-query-list-observable.js +1 -7
- package/esm2015/observables/mouse-drag-finish-from.js +1 -5
- package/esm2015/observables/scroll-from.js +1 -4
- package/esm2015/observables/taiga-ui-cdk-observables.js +1 -4
- package/esm2015/observables/typed-from-event.js +1 -5
- package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +1 -4
- package/esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js +1 -4
- package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +1 -4
- package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +1 -4
- package/esm2015/pipes/replace/replace.pipe.js +2 -4
- package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +1 -4
- package/esm2015/pipes/taiga-ui-cdk-pipes.js +1 -4
- package/esm2015/services/destroy.service.js +1 -9
- package/esm2015/services/directive-styles.service.js +1 -4
- package/esm2015/services/focus-visible.service.js +1 -6
- package/esm2015/services/id.service.js +1 -4
- package/esm2015/services/obscured.service.js +2 -10
- package/esm2015/services/pan.service.js +2 -4
- package/esm2015/services/parents-scroll.service.js +2 -7
- package/esm2015/services/resize.service.js +2 -8
- package/esm2015/services/static-request.service.js +2 -5
- package/esm2015/services/taiga-ui-cdk-services.js +1 -4
- package/esm2015/taiga-ui-cdk.js +1 -4
- package/esm2015/tokens/active-element.js +4 -26
- package/esm2015/tokens/alerts.js +1 -4
- package/esm2015/tokens/default-renderer.js +2 -10
- package/esm2015/tokens/dialogs.js +1 -5
- package/esm2015/tokens/ensure-base-href.js +1 -4
- package/esm2015/tokens/focusable-item-accessor.js +1 -4
- package/esm2015/tokens/is-android.js +1 -4
- package/esm2015/tokens/is-apple.js +1 -4
- package/esm2015/tokens/is-chromium.js +1 -4
- package/esm2015/tokens/is-cypress.js +1 -5
- package/esm2015/tokens/is-e2e.js +1 -4
- package/esm2015/tokens/is-firefox.js +1 -4
- package/esm2015/tokens/is-ios.js +1 -4
- package/esm2015/tokens/is-mobile.js +1 -5
- package/esm2015/tokens/is-playwright.js +1 -4
- package/esm2015/tokens/is-webkit.js +1 -4
- package/esm2015/tokens/platform.js +1 -2
- package/esm2015/tokens/range.js +1 -4
- package/esm2015/tokens/removed-element.js +1 -4
- package/esm2015/tokens/scroll-ref.js +1 -4
- package/esm2015/tokens/swipe-options.js +1 -4
- package/esm2015/tokens/taiga-ui-cdk-tokens.js +1 -4
- package/esm2015/tokens/take-only-trusted-events.js +1 -7
- package/esm2015/tokens/window-height.js +1 -4
- package/esm2015/tokens/zoom-options.js +1 -4
- package/esm2015/types/taiga-ui-cdk-types.js +1 -4
- package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +1 -4
- package/esm2015/utils/color/hex-to-rgba.js +1 -2
- package/esm2015/utils/color/hsv-to-rgb.js +1 -4
- package/esm2015/utils/color/rgb-to-hsv.js +1 -2
- package/esm2015/utils/color/rgba-to-hex.js +1 -2
- package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +1 -4
- package/esm2015/utils/dom/element-checks.js +1 -2
- package/esm2015/utils/dom/get-actual-target.js +1 -4
- package/esm2015/utils/dom/get-clipboard-data-text.js +1 -4
- package/esm2015/utils/dom/get-element-obscurers.js +1 -10
- package/esm2015/utils/dom/get-element-offset.js +1 -8
- package/esm2015/utils/dom/get-scroll-parent.js +1 -7
- package/esm2015/utils/dom/get-selected-text.js +1 -9
- package/esm2015/utils/dom/is-inside-iframe.js +1 -4
- package/esm2015/utils/dom/is-node-in.js +1 -8
- package/esm2015/utils/dom/retarget-boundary-crossing.js +3 -3
- package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +1 -4
- package/esm2015/utils/focus/blur-native-focused.js +1 -4
- package/esm2015/utils/focus/get-closest-focusable.js +1 -5
- package/esm2015/utils/focus/get-native-focused.js +1 -6
- package/esm2015/utils/focus/is-native-focused-in.js +1 -8
- package/esm2015/utils/focus/is-native-focused.js +1 -9
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +1 -7
- package/esm2015/utils/focus/move-focus.js +1 -8
- package/esm2015/utils/focus/set-native-mouse-focused.js +1 -8
- package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +1 -4
- package/esm2015/utils/format/px.js +1 -4
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +1 -4
- package/esm2015/utils/math/clamp.js +1 -8
- package/esm2015/utils/math/normalize-to-int-number.js +1 -9
- package/esm2015/utils/math/quantize.js +1 -7
- package/esm2015/utils/math/round.js +1 -8
- package/esm2015/utils/math/sum.js +1 -4
- package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +1 -4
- package/esm2015/utils/math/to-radians.js +1 -4
- package/esm2015/utils/miscellaneous/create-options.js +1 -2
- package/esm2015/utils/miscellaneous/flat-length.js +1 -6
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +1 -7
- package/esm2015/utils/miscellaneous/is-number.js +1 -2
- package/esm2015/utils/miscellaneous/is-object.js +1 -2
- package/esm2015/utils/miscellaneous/is-string.js +1 -2
- package/esm2015/utils/miscellaneous/is-valid-url.js +7 -8
- package/esm2015/utils/miscellaneous/nullable-same.js +1 -9
- package/esm2015/utils/miscellaneous/object-from-entries.js +1 -9
- package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +1 -4
- package/esm2015/utils/os/is-apple-platform.js +1 -11
- package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +1 -4
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -16
- package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +1 -4
- package/esm2015/utils/taiga-ui-cdk-utils.js +1 -4
- package/exceptions/taiga-ui-cdk-exceptions.d.ts +0 -3
- package/fesm2015/taiga-ui-cdk-abstract.js +0 -32
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +0 -9
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +0 -10
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +0 -8
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +0 -11
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +0 -10
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +0 -4
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components.js +0 -4
- package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +1 -109
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +0 -284
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +0 -26
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +1 -44
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-control.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +0 -10
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +0 -5
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +0 -18
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +0 -17
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +0 -9
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +0 -10
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +0 -9
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +1 -7
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +0 -17
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +0 -10
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-platform.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +0 -12
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +0 -11
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resizer.js +0 -5
- package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +0 -8
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +0 -4
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js +1 -3
- package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +1 -34
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +1 -7
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +5 -52
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +4 -108
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-types.js +1 -3
- package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +0 -4
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +0 -10
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +2 -53
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +0 -51
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +0 -7
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +0 -38
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +6 -42
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +0 -14
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +1 -19
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js +0 -4
- package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
- package/fesm2015/taiga-ui-cdk.js +0 -4
- package/fesm2015/taiga-ui-cdk.js.map +1 -1
- package/interfaces/control-value-transformer.d.ts +0 -3
- package/interfaces/day-like.d.ts +0 -3
- package/interfaces/focusable-element-accessor.d.ts +0 -4
- package/interfaces/month-like.d.ts +0 -3
- package/interfaces/taiga-ui-cdk-interfaces.d.ts +0 -3
- package/interfaces/year-like.d.ts +0 -3
- package/observables/control-value.d.ts +0 -3
- package/observables/is-alive.d.ts +0 -3
- package/observables/items-query-list-observable.d.ts +0 -6
- package/observables/mouse-drag-finish-from.d.ts +0 -4
- package/observables/scroll-from.d.ts +0 -3
- package/observables/taiga-ui-cdk-observables.d.ts +0 -3
- package/package.json +1 -1
- package/pipes/filter/filter.pipe.d.ts +0 -7
- package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +0 -3
- package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +0 -3
- package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +0 -3
- package/pipes/mapper/mapper.pipe.d.ts +0 -7
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +0 -3
- package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +0 -3
- package/pipes/taiga-ui-cdk-pipes.d.ts +0 -3
- package/schematics/constants/file-globs.js +1 -3
- package/schematics/ng-add/index.js +0 -1
- package/schematics/ng-add/schema.d.ts +0 -12
- package/schematics/ng-update/steps/show-warnings.js +0 -5
- package/schematics/ng-update/v3/constants/breakpoints.js +0 -2
- package/schematics/ng-update/v3/constants/enums.js +0 -4
- package/schematics/ng-update/v3/constants/templates.d.ts +0 -5
- package/schematics/ng-update/v3/constants/templates.js +0 -5
- package/schematics/ng-update/v3/index.js +1 -5
- package/schematics/ng-update/v3/steps/migrate-date-time.js +0 -18
- package/schematics/ng-update/v3/steps/migrate-progress.js +1 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +0 -6
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +0 -5
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +0 -1
- package/schematics/ng-update/v3/steps/migrate-templates.js +0 -1
- package/schematics/ng-update/v3/steps/miscellaneous.js +0 -4
- package/schematics/ng-update/v3/steps/replace-functions.js +1 -1
- package/schematics/ng-update/v3-30/index.js +0 -1
- package/schematics/ng-update/v3-35/index.js +0 -1
- package/schematics/ng-update/v3-36/index.js +0 -1
- package/schematics/ng-update/v3-40/index.js +0 -1
- package/schematics/ng-update/v3-5/index.js +0 -1
- package/schematics/ng-update/v4/index.js +0 -1
- package/schematics/utils/add-import-to-component.js +0 -1
- package/schematics/utils/angular/ng-module.d.ts +0 -3
- package/schematics/utils/angular/ng-module.js +0 -3
- package/schematics/utils/angular-json-manipulations.js +0 -7
- package/schematics/utils/colored-log.js +1 -1
- package/schematics/utils/get-projects.js +1 -3
- package/schematics/utils/is-ci.js +11 -13
- package/schematics/utils/progress.js +0 -1
- package/schematics/utils/push-to-array-property.js +0 -1
- package/schematics/utils/templates/elements.d.ts +0 -19
- package/schematics/utils/templates/elements.js +2 -26
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +0 -44
- package/schematics/utils/templates/ng-component-input-manipulations.js +1 -47
- package/services/destroy.service.d.ts +0 -8
- package/services/directive-styles.service.d.ts +0 -3
- package/services/focus-visible.service.d.ts +0 -5
- package/services/id.service.d.ts +0 -3
- package/services/obscured.service.d.ts +0 -5
- package/services/parents-scroll.service.d.ts +0 -3
- package/services/taiga-ui-cdk-services.d.ts +0 -3
- package/taiga-ui-cdk.d.ts +0 -3
- package/tokens/active-element.d.ts +0 -3
- package/tokens/alerts.d.ts +0 -3
- package/tokens/default-renderer.d.ts +0 -6
- package/tokens/dialogs.d.ts +0 -3
- package/tokens/ensure-base-href.d.ts +0 -3
- package/tokens/focusable-item-accessor.d.ts +0 -3
- package/tokens/is-android.d.ts +0 -3
- package/tokens/is-apple.d.ts +0 -3
- package/tokens/is-chromium.d.ts +0 -3
- package/tokens/is-cypress.d.ts +0 -4
- package/tokens/is-e2e.d.ts +0 -3
- package/tokens/is-firefox.d.ts +0 -3
- package/tokens/is-ios.d.ts +0 -3
- package/tokens/is-mobile.d.ts +0 -3
- package/tokens/is-playwright.d.ts +0 -3
- package/tokens/is-webkit.d.ts +0 -3
- package/tokens/range.d.ts +0 -3
- package/tokens/removed-element.d.ts +0 -3
- package/tokens/scroll-ref.d.ts +0 -3
- package/tokens/swipe-options.d.ts +0 -3
- package/tokens/taiga-ui-cdk-tokens.d.ts +0 -3
- package/tokens/take-only-trusted-events.d.ts +0 -6
- package/tokens/window-height.d.ts +0 -3
- package/tokens/zoom-options.d.ts +0 -3
- package/types/autocomplete.d.ts +0 -1
- package/types/date-mode.d.ts +0 -5
- package/types/event-with.d.ts +0 -3
- package/types/mapper.d.ts +0 -8
- package/types/matcher.d.ts +0 -8
- package/types/taiga-ui-cdk-types.d.ts +0 -3
- package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +0 -3
- package/utils/color/hsv-to-rgb.d.ts +0 -3
- package/utils/color/taiga-ui-cdk-utils-color.d.ts +0 -3
- package/utils/dom/get-actual-target.d.ts +0 -3
- package/utils/dom/get-clipboard-data-text.d.ts +0 -3
- package/utils/dom/get-element-obscurers.d.ts +0 -9
- package/utils/dom/get-element-offset.d.ts +0 -7
- package/utils/dom/get-scroll-parent.d.ts +0 -6
- package/utils/dom/get-selected-text.d.ts +0 -8
- package/utils/dom/is-inside-iframe.d.ts +0 -3
- package/utils/dom/is-node-in.d.ts +0 -7
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +0 -3
- package/utils/focus/blur-native-focused.d.ts +0 -3
- package/utils/focus/get-closest-focusable.d.ts +0 -20
- package/utils/focus/get-native-focused.d.ts +0 -5
- package/utils/focus/is-native-focused-in.d.ts +0 -6
- package/utils/focus/is-native-focused.d.ts +0 -8
- package/utils/focus/is-native-keyboard-focusable.d.ts +0 -6
- package/utils/focus/move-focus.d.ts +0 -7
- package/utils/focus/set-native-mouse-focused.d.ts +0 -7
- package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +0 -3
- package/utils/format/px.d.ts +0 -3
- package/utils/format/taiga-ui-cdk-utils-format.d.ts +0 -3
- package/utils/math/clamp.d.ts +0 -7
- package/utils/math/normalize-to-int-number.d.ts +0 -8
- package/utils/math/quantize.d.ts +0 -6
- package/utils/math/sum.d.ts +0 -3
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +0 -3
- package/utils/math/to-radians.d.ts +0 -3
- package/utils/miscellaneous/create-options.d.ts +0 -1
- package/utils/miscellaneous/flat-length.d.ts +0 -5
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -6
- package/utils/miscellaneous/is-string.js +0 -1
- package/utils/miscellaneous/nullable-same.d.ts +0 -8
- package/utils/miscellaneous/object-from-entries.d.ts +0 -8
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +0 -3
- package/utils/os/is-apple-platform.d.ts +0 -10
- package/utils/os/taiga-ui-cdk-utils-os.d.ts +0 -3
- package/utils/svg/svg-linear-gradient-processor.d.ts +0 -14
- package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +0 -3
- package/utils/taiga-ui-cdk-utils.d.ts +0 -3
@@ -69,24 +69,17 @@
|
|
69
69
|
return !!node && "nodeType" in node && node.nodeType === Node.ELEMENT_NODE;
|
70
70
|
}
|
71
71
|
function tuiIsHTMLElement(node) {
|
72
|
-
// TODO: iframe warning
|
73
72
|
return node instanceof HTMLElement;
|
74
73
|
}
|
75
74
|
function tuiIsTextNode(node) {
|
76
75
|
return node.nodeType === Node.TEXT_NODE;
|
77
76
|
}
|
78
77
|
|
79
|
-
/**
|
80
|
-
* Gets actual target from open Shadow DOM if event happened within it
|
81
|
-
*/
|
82
78
|
function tuiGetActualTarget(event) {
|
83
79
|
return event.composedPath()[0];
|
84
80
|
}
|
85
81
|
|
86
82
|
var DEFAULT_FORMAT = "text/plain";
|
87
|
-
/**
|
88
|
-
* Gets text from data of clipboardEvent, it also works in IE and Edge browsers
|
89
|
-
*/
|
90
83
|
function tuiGetClipboardDataText(event, format) {
|
91
84
|
if (format === void 0) { format = DEFAULT_FORMAT; }
|
92
85
|
return "clipboardData" in event && event.clipboardData !== null
|
@@ -101,15 +94,6 @@
|
|
101
94
|
: node.ownerDocument;
|
102
95
|
}
|
103
96
|
|
104
|
-
/**
|
105
|
-
* Returns array of Elements covering edges of given element or null if at least one edge middle point is visible
|
106
|
-
*
|
107
|
-
* CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered
|
108
|
-
* TODO: v4.0 change function signature to
|
109
|
-
* ```ts
|
110
|
-
* function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null
|
111
|
-
* ```
|
112
|
-
*/
|
113
97
|
function tuiGetElementObscures(element) {
|
114
98
|
var ownerDocument = element.ownerDocument;
|
115
99
|
if (!(ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.defaultView) || !element.getBoundingClientRect) {
|
@@ -141,13 +125,6 @@
|
|
141
125
|
return filtered.length === 4 ? filtered : null;
|
142
126
|
}
|
143
127
|
|
144
|
-
/**
|
145
|
-
* Calculates offset for an element relative to it's parent several levels above
|
146
|
-
*
|
147
|
-
* @param host parent element
|
148
|
-
* @param element
|
149
|
-
* @return object with offsetTop and offsetLeft number properties
|
150
|
-
*/
|
151
128
|
function tuiGetElementOffset(host, element) {
|
152
129
|
ngDevMode && classes.tuiAssert.assert(host.contains(element), "Host must contain element");
|
153
130
|
var offsetTop = element.offsetTop, offsetLeft = element.offsetLeft, offsetParent = element.offsetParent;
|
@@ -159,12 +136,6 @@
|
|
159
136
|
return { offsetTop: offsetTop, offsetLeft: offsetLeft };
|
160
137
|
}
|
161
138
|
|
162
|
-
/**
|
163
|
-
* Finds the nearest parent with scroll in it
|
164
|
-
*
|
165
|
-
* @param element initial element
|
166
|
-
* @param vertical flag for orientation of scroll
|
167
|
-
*/
|
168
139
|
function tuiGetScrollParent(element, vertical) {
|
169
140
|
if (vertical === void 0) { vertical = true; }
|
170
141
|
if (element === null) {
|
@@ -179,14 +150,6 @@
|
|
179
150
|
return tuiGetScrollParent(element.parentElement, vertical);
|
180
151
|
}
|
181
152
|
|
182
|
-
/**
|
183
|
-
* @description:
|
184
|
-
* cross browser way to get selected text
|
185
|
-
*
|
186
|
-
* History:
|
187
|
-
* BUG - window.getSelection() fails when text selected in a form field
|
188
|
-
* https://bugzilla.mozilla.org/show_bug.cgi?id=85686
|
189
|
-
*/
|
190
153
|
function tuiGetSelectedText(_b) {
|
191
154
|
var getSelection = _b.getSelection, document = _b.document;
|
192
155
|
var _a;
|
@@ -204,20 +167,10 @@
|
|
204
167
|
return (tuiIsTextfield(element) && !element.readOnly) || !!element.isContentEditable;
|
205
168
|
}
|
206
169
|
|
207
|
-
/**
|
208
|
-
* Checks if an app is running inside <iframe /> tag
|
209
|
-
*/
|
210
170
|
function tuiIsInsideIframe(win) {
|
211
171
|
return win.parent !== win;
|
212
172
|
}
|
213
173
|
|
214
|
-
/**
|
215
|
-
* Checks if node is inside a specific selector
|
216
|
-
*
|
217
|
-
* @param node
|
218
|
-
* @param selector
|
219
|
-
* @return true if node is inside a particular selector
|
220
|
-
*/
|
221
174
|
function tuiIsNodeIn(node, selector) {
|
222
175
|
var _a;
|
223
176
|
return tuiIsTextNode(node)
|
@@ -246,18 +199,14 @@
|
|
246
199
|
function tuiRetargetedBoundaryCrossing(event) {
|
247
200
|
var _a, _b;
|
248
201
|
if ("explicitOriginalTarget" in event) {
|
249
|
-
return (event === null || event === void 0 ? void 0 : event.explicitOriginalTarget) !== event.target;
|
202
|
+
return (event === null || event === void 0 ? void 0 : event.explicitOriginalTarget) !== event.target;
|
250
203
|
}
|
251
204
|
if ("layerX" in event && "layerY" in event) {
|
252
|
-
return ((_a = event === null || event === void 0 ? void 0 : event.layerX) !== null && _a !== void 0 ? _a : 0) < 0 || ((_b = event === null || event === void 0 ? void 0 : event.layerY) !== null && _b !== void 0 ? _b : 0) < 0;
|
205
|
+
return ((_a = event === null || event === void 0 ? void 0 : event.layerX) !== null && _a !== void 0 ? _a : 0) < 0 || ((_b = event === null || event === void 0 ? void 0 : event.layerY) !== null && _b !== void 0 ? _b : 0) < 0;
|
253
206
|
}
|
254
207
|
return false;
|
255
208
|
}
|
256
209
|
|
257
|
-
/**
|
258
|
-
* Generated bundle index. Do not edit.
|
259
|
-
*/
|
260
|
-
|
261
210
|
exports.tuiCanScroll = tuiCanScroll;
|
262
211
|
exports.tuiContainsOrAfter = tuiContainsOrAfter;
|
263
212
|
exports.tuiGetActualTarget = tuiGetActualTarget;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-dom.umd.js","sources":["../../../projects/cdk/utils/dom/can-scroll.ts","../../../projects/cdk/utils/dom/contains-or-after.ts","../../../projects/cdk/utils/dom/element-checks.ts","../../../projects/cdk/utils/dom/get-actual-target.ts","../../../projects/cdk/utils/dom/get-clipboard-data-text.ts","../../../projects/cdk/utils/dom/get-document-or-shadow-root.ts","../../../projects/cdk/utils/dom/get-element-obscurers.ts","../../../projects/cdk/utils/dom/get-element-offset.ts","../../../projects/cdk/utils/dom/get-scroll-parent.ts","../../../projects/cdk/utils/dom/get-selected-text.ts","../../../projects/cdk/utils/dom/is-current-target.ts","../../../projects/cdk/utils/dom/is-element-editable.ts","../../../projects/cdk/utils/dom/is-inside-iframe.ts","../../../projects/cdk/utils/dom/is-node-in.ts","../../../projects/cdk/utils/dom/point-to-client-rect.ts","../../../projects/cdk/utils/dom/retarget-boundary-crossing.ts","../../../projects/cdk/utils/dom/taiga-ui-cdk-utils-dom.ts"],"sourcesContent":["export function tuiCanScroll(\n element: Element,\n rootElement: Element,\n vertical: boolean,\n scrollEnd: boolean,\n): boolean {\n return vertical\n ? canScrollVertical(element, rootElement, scrollEnd)\n : canScrollHorizontal(element, rootElement, scrollEnd);\n}\n\nfunction canScrollVertical(\n element: Element,\n rootElement: Element,\n scrollEnd: boolean,\n): boolean {\n let currentElement = element;\n\n while (currentElement !== rootElement.parentElement) {\n if (\n (Math.floor(currentElement.scrollTop) > 0 && !scrollEnd) ||\n (Math.ceil(currentElement.scrollTop + currentElement.clientHeight) <\n currentElement.scrollHeight &&\n scrollEnd)\n ) {\n return true;\n }\n\n if (currentElement.parentElement) {\n currentElement = currentElement.parentElement;\n } else {\n return false;\n }\n }\n\n return false;\n}\n\nfunction canScrollHorizontal(\n element: Element,\n rootElement: Element,\n scrollEnd: boolean,\n): boolean {\n let currentElement = element;\n\n while (currentElement !== rootElement.parentElement) {\n if (\n (Math.floor(currentElement.scrollLeft) > 0 && !scrollEnd) ||\n (Math.ceil(currentElement.scrollLeft + currentElement.clientWidth) <\n currentElement.scrollWidth &&\n scrollEnd)\n ) {\n return true;\n }\n\n if (currentElement.parentElement) {\n currentElement = currentElement.parentElement;\n } else {\n return false;\n }\n }\n\n return false;\n}\n","export function tuiContainsOrAfter(current: Node, node: Node): boolean {\n try {\n return (\n current.contains(node) ||\n !!(node.compareDocumentPosition(current) & Node.DOCUMENT_POSITION_PRECEDING)\n );\n } catch {\n return false;\n }\n}\n","export function tuiIsInput(element: Element): element is HTMLInputElement {\n return element.matches(`input`);\n}\n\nexport function tuiIsTextarea(element: Element): element is HTMLTextAreaElement {\n return element.matches(`textarea`);\n}\n\nexport function tuiIsTextfield(\n element: Element,\n): element is HTMLInputElement | HTMLTextAreaElement {\n return tuiIsInput(element) || tuiIsTextarea(element);\n}\n\nexport function tuiIsElement(\n node?: Element | EventTarget | Node | null,\n): node is Element {\n return !!node && `nodeType` in node && node.nodeType === Node.ELEMENT_NODE;\n}\n\nexport function tuiIsHTMLElement(node: unknown): node is HTMLElement {\n // TODO: iframe warning\n return node instanceof HTMLElement;\n}\n\nexport function tuiIsTextNode(node: Node): node is Text {\n return node.nodeType === Node.TEXT_NODE;\n}\n","/**\n * Gets actual target from open Shadow DOM if event happened within it\n */\nexport function tuiGetActualTarget(event: Event): Node {\n return event.composedPath()[0] as Node;\n}\n","const DEFAULT_FORMAT = `text/plain`;\n\n/**\n * Gets text from data of clipboardEvent, it also works in IE and Edge browsers\n */\nexport function tuiGetClipboardDataText(\n event: ClipboardEvent,\n format: string = DEFAULT_FORMAT,\n): string {\n return `clipboardData` in event && event.clipboardData !== null\n ? event.clipboardData.getData(format) ||\n event.clipboardData.getData(DEFAULT_FORMAT)\n : (event as any).target.ownerDocument.defaultView.clipboardData.getData(`text`);\n}\n","export function tuiGetDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot {\n return `getRootNode` in node && node.isConnected\n ? (node.getRootNode() as Document)\n : (node.ownerDocument as DocumentOrShadowRoot);\n}\n","import {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {tuiGetDocumentOrShadowRoot} from './get-document-or-shadow-root';\n\n/**\n * Returns array of Elements covering edges of given element or null if at least one edge middle point is visible\n *\n * CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered\n * TODO: v4.0 change function signature to\n * ```ts\n * function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null\n * ```\n */\nexport function tuiGetElementObscures(element: Element): readonly Element[] | null {\n const {ownerDocument} = element;\n\n if (!ownerDocument?.defaultView || !element.getBoundingClientRect) {\n return null;\n }\n\n const {innerWidth, innerHeight} = ownerDocument.defaultView;\n const doc = tuiGetDocumentOrShadowRoot(element);\n const rect = element.getBoundingClientRect();\n\n if (rect.width === 0 && rect.height === 0) {\n return null;\n }\n\n const left = tuiClamp(Math.round(rect.left) + 2, 0, innerWidth);\n const top = tuiClamp(Math.round(rect.top) + 2, 0, innerHeight);\n const right = tuiClamp(Math.round(rect.right) - 2, 0, innerWidth);\n const bottom = tuiClamp(Math.round(rect.bottom) - 2, 0, innerHeight);\n const horizontalMiddle = tuiClamp(\n Math.round(rect.left + rect.width / 2),\n 0,\n innerWidth,\n );\n const verticalMiddle = tuiClamp(\n Math.round(rect.top + rect.height / 2),\n 0,\n innerHeight,\n );\n const elements = [\n doc.elementFromPoint(horizontalMiddle, top),\n doc.elementFromPoint(horizontalMiddle, bottom),\n doc.elementFromPoint(left, verticalMiddle),\n doc.elementFromPoint(right, verticalMiddle),\n ];\n const nonNull = elements.filter(tuiIsPresent);\n\n if (!nonNull.length) {\n return nonNull;\n }\n\n const filtered = nonNull.filter(el => !element.contains(el));\n\n return filtered.length === 4 ? filtered : null;\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nimport {tuiIsHTMLElement} from './element-checks';\n\n/**\n * Calculates offset for an element relative to it's parent several levels above\n *\n * @param host parent element\n * @param element\n * @return object with offsetTop and offsetLeft number properties\n */\nexport function tuiGetElementOffset(\n host: Element,\n element: HTMLElement,\n): {offsetLeft: number; offsetTop: number} {\n ngDevMode && tuiAssert.assert(host.contains(element), `Host must contain element`);\n\n let {offsetTop, offsetLeft, offsetParent} = element;\n\n while (tuiIsHTMLElement(offsetParent) && offsetParent !== host) {\n offsetTop += offsetParent.offsetTop;\n offsetLeft += offsetParent.offsetLeft;\n offsetParent = offsetParent.offsetParent;\n }\n\n return {offsetTop, offsetLeft};\n}\n","/**\n * Finds the nearest parent with scroll in it\n *\n * @param element initial element\n * @param vertical flag for orientation of scroll\n */\nexport function tuiGetScrollParent(\n element: Element | null,\n vertical: boolean = true,\n): Element | null {\n if (element === null) {\n return null;\n }\n\n if (vertical && element.scrollHeight > element.clientHeight) {\n return element;\n }\n\n if (!vertical && element.scrollWidth > element.clientWidth) {\n return element;\n }\n\n return tuiGetScrollParent(element.parentElement, vertical);\n}\n","import {tuiIsTextfield} from './element-checks';\n\n/**\n * @description:\n * cross browser way to get selected text\n *\n * History:\n * BUG - window.getSelection() fails when text selected in a form field\n * https://bugzilla.mozilla.org/show_bug.cgi?id=85686\n */\nexport function tuiGetSelectedText({getSelection, document}: Window): string | null {\n return document.activeElement && tuiIsTextfield(document.activeElement)\n ? document.activeElement.value.slice(\n document.activeElement.selectionStart || 0,\n document.activeElement.selectionEnd || 0,\n )\n : getSelection()?.toString() || null;\n}\n","export function tuiIsCurrentTarget({target, currentTarget}: Event): boolean {\n return target === currentTarget;\n}\n","import {tuiIsTextfield} from './element-checks';\n\nexport function tuiIsElementEditable(element: HTMLElement): boolean {\n return (tuiIsTextfield(element) && !element.readOnly) || !!element.isContentEditable;\n}\n","/**\n * Checks if an app is running inside <iframe /> tag\n */\nexport function tuiIsInsideIframe(win: Window): boolean {\n return win.parent !== win;\n}\n","import {tuiIsElement, tuiIsTextNode} from './element-checks';\n\n/**\n * Checks if node is inside a specific selector\n *\n * @param node\n * @param selector\n * @return true if node is inside a particular selector\n */\nexport function tuiIsNodeIn(node: Node, selector: string): boolean {\n return tuiIsTextNode(node)\n ? !!node.parentElement?.closest(selector)\n : tuiIsElement(node) && !!node.closest(selector);\n}\n","export function tuiPointToClientRect(x: number = 0, y: number = 0): DOMRect {\n const rect = {\n x,\n y,\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n } as const;\n\n return {\n ...rect,\n toJSON() {\n return rect;\n },\n };\n}\n","export function tuiRetargetedBoundaryCrossing(event: any): boolean {\n if (`explicitOriginalTarget` in event) {\n return event?.explicitOriginalTarget !== event.target; // firefox\n }\n\n if (`layerX` in event && `layerY` in event) {\n return (event?.layerX ?? 0) < 0 || (event?.layerY ?? 0) < 0; // chrome/safari/etc\n }\n\n return false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiClamp","tuiIsPresent","tuiAssert"],"mappings":";;;;;;IAAM,SAAU,YAAY,CACxB,OAAgB,EAChB,WAAoB,EACpB,QAAiB,EACjB,SAAkB,EAAA;IAElB,IAAA,OAAO,QAAQ;cACT,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC;cAClD,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAC/D,CAAC;IAED,SAAS,iBAAiB,CACtB,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,CAAC;IACzD,KAAA;IAED,IAAA,IAAI,QAAQ,IAAI,KAAK,IAAI,QAAQ,IAAI,KAAK,EAAE;IACxC,QAAA,OAAO,CAAC,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAL,KAAK,CAAE,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAL,KAAK,CAAE,MAAM,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAC,IAAI,CAAC,CAAC;IAC/D,KAAA;IAED,IAAA,OAAO,KAAK,CAAC;IACjB;;ICVA;;IAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-dom.umd.js","sources":["../../../projects/cdk/utils/dom/can-scroll.ts","../../../projects/cdk/utils/dom/contains-or-after.ts","../../../projects/cdk/utils/dom/element-checks.ts","../../../projects/cdk/utils/dom/get-actual-target.ts","../../../projects/cdk/utils/dom/get-clipboard-data-text.ts","../../../projects/cdk/utils/dom/get-document-or-shadow-root.ts","../../../projects/cdk/utils/dom/get-element-obscurers.ts","../../../projects/cdk/utils/dom/get-element-offset.ts","../../../projects/cdk/utils/dom/get-scroll-parent.ts","../../../projects/cdk/utils/dom/get-selected-text.ts","../../../projects/cdk/utils/dom/is-current-target.ts","../../../projects/cdk/utils/dom/is-element-editable.ts","../../../projects/cdk/utils/dom/is-inside-iframe.ts","../../../projects/cdk/utils/dom/is-node-in.ts","../../../projects/cdk/utils/dom/point-to-client-rect.ts","../../../projects/cdk/utils/dom/retarget-boundary-crossing.ts"],"sourcesContent":["export function tuiCanScroll(\n element: Element,\n rootElement: Element,\n vertical: boolean,\n scrollEnd: boolean,\n): boolean {\n return vertical\n ? canScrollVertical(element, rootElement, scrollEnd)\n : canScrollHorizontal(element, rootElement, scrollEnd);\n}\n\nfunction canScrollVertical(\n element: Element,\n rootElement: Element,\n scrollEnd: boolean,\n): boolean {\n let currentElement = element;\n\n while (currentElement !== rootElement.parentElement) {\n if (\n (Math.floor(currentElement.scrollTop) > 0 && !scrollEnd) ||\n (Math.ceil(currentElement.scrollTop + currentElement.clientHeight) <\n currentElement.scrollHeight &&\n scrollEnd)\n ) {\n return true;\n }\n\n if (currentElement.parentElement) {\n currentElement = currentElement.parentElement;\n } else {\n return false;\n }\n }\n\n return false;\n}\n\nfunction canScrollHorizontal(\n element: Element,\n rootElement: Element,\n scrollEnd: boolean,\n): boolean {\n let currentElement = element;\n\n while (currentElement !== rootElement.parentElement) {\n if (\n (Math.floor(currentElement.scrollLeft) > 0 && !scrollEnd) ||\n (Math.ceil(currentElement.scrollLeft + currentElement.clientWidth) <\n currentElement.scrollWidth &&\n scrollEnd)\n ) {\n return true;\n }\n\n if (currentElement.parentElement) {\n currentElement = currentElement.parentElement;\n } else {\n return false;\n }\n }\n\n return false;\n}\n","export function tuiContainsOrAfter(current: Node, node: Node): boolean {\n try {\n return (\n current.contains(node) ||\n !!(node.compareDocumentPosition(current) & Node.DOCUMENT_POSITION_PRECEDING)\n );\n } catch {\n return false;\n }\n}\n","export function tuiIsInput(element: Element): element is HTMLInputElement {\n return element.matches(`input`);\n}\n\nexport function tuiIsTextarea(element: Element): element is HTMLTextAreaElement {\n return element.matches(`textarea`);\n}\n\nexport function tuiIsTextfield(\n element: Element,\n): element is HTMLInputElement | HTMLTextAreaElement {\n return tuiIsInput(element) || tuiIsTextarea(element);\n}\n\nexport function tuiIsElement(\n node?: Element | EventTarget | Node | null,\n): node is Element {\n return !!node && `nodeType` in node && node.nodeType === Node.ELEMENT_NODE;\n}\n\nexport function tuiIsHTMLElement(node: unknown): node is HTMLElement {\n // TODO: iframe warning\n return node instanceof HTMLElement;\n}\n\nexport function tuiIsTextNode(node: Node): node is Text {\n return node.nodeType === Node.TEXT_NODE;\n}\n","/**\n * Gets actual target from open Shadow DOM if event happened within it\n */\nexport function tuiGetActualTarget(event: Event): Node {\n return event.composedPath()[0] as Node;\n}\n","const DEFAULT_FORMAT = `text/plain`;\n\n/**\n * Gets text from data of clipboardEvent, it also works in IE and Edge browsers\n */\nexport function tuiGetClipboardDataText(\n event: ClipboardEvent,\n format: string = DEFAULT_FORMAT,\n): string {\n return `clipboardData` in event && event.clipboardData !== null\n ? event.clipboardData.getData(format) ||\n event.clipboardData.getData(DEFAULT_FORMAT)\n : (event as any).target.ownerDocument.defaultView.clipboardData.getData(`text`);\n}\n","export function tuiGetDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot {\n return `getRootNode` in node && node.isConnected\n ? (node.getRootNode() as Document)\n : (node.ownerDocument as DocumentOrShadowRoot);\n}\n","import {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {tuiGetDocumentOrShadowRoot} from './get-document-or-shadow-root';\n\n/**\n * Returns array of Elements covering edges of given element or null if at least one edge middle point is visible\n *\n * CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered\n * TODO: v4.0 change function signature to\n * ```ts\n * function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null\n * ```\n */\nexport function tuiGetElementObscures(element: Element): readonly Element[] | null {\n const {ownerDocument} = element;\n\n if (!ownerDocument?.defaultView || !element.getBoundingClientRect) {\n return null;\n }\n\n const {innerWidth, innerHeight} = ownerDocument.defaultView;\n const doc = tuiGetDocumentOrShadowRoot(element);\n const rect = element.getBoundingClientRect();\n\n if (rect.width === 0 && rect.height === 0) {\n return null;\n }\n\n const left = tuiClamp(Math.round(rect.left) + 2, 0, innerWidth);\n const top = tuiClamp(Math.round(rect.top) + 2, 0, innerHeight);\n const right = tuiClamp(Math.round(rect.right) - 2, 0, innerWidth);\n const bottom = tuiClamp(Math.round(rect.bottom) - 2, 0, innerHeight);\n const horizontalMiddle = tuiClamp(\n Math.round(rect.left + rect.width / 2),\n 0,\n innerWidth,\n );\n const verticalMiddle = tuiClamp(\n Math.round(rect.top + rect.height / 2),\n 0,\n innerHeight,\n );\n const elements = [\n doc.elementFromPoint(horizontalMiddle, top),\n doc.elementFromPoint(horizontalMiddle, bottom),\n doc.elementFromPoint(left, verticalMiddle),\n doc.elementFromPoint(right, verticalMiddle),\n ];\n const nonNull = elements.filter(tuiIsPresent);\n\n if (!nonNull.length) {\n return nonNull;\n }\n\n const filtered = nonNull.filter(el => !element.contains(el));\n\n return filtered.length === 4 ? filtered : null;\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nimport {tuiIsHTMLElement} from './element-checks';\n\n/**\n * Calculates offset for an element relative to it's parent several levels above\n *\n * @param host parent element\n * @param element\n * @return object with offsetTop and offsetLeft number properties\n */\nexport function tuiGetElementOffset(\n host: Element,\n element: HTMLElement,\n): {offsetLeft: number; offsetTop: number} {\n ngDevMode && tuiAssert.assert(host.contains(element), `Host must contain element`);\n\n let {offsetTop, offsetLeft, offsetParent} = element;\n\n while (tuiIsHTMLElement(offsetParent) && offsetParent !== host) {\n offsetTop += offsetParent.offsetTop;\n offsetLeft += offsetParent.offsetLeft;\n offsetParent = offsetParent.offsetParent;\n }\n\n return {offsetTop, offsetLeft};\n}\n","/**\n * Finds the nearest parent with scroll in it\n *\n * @param element initial element\n * @param vertical flag for orientation of scroll\n */\nexport function tuiGetScrollParent(\n element: Element | null,\n vertical: boolean = true,\n): Element | null {\n if (element === null) {\n return null;\n }\n\n if (vertical && element.scrollHeight > element.clientHeight) {\n return element;\n }\n\n if (!vertical && element.scrollWidth > element.clientWidth) {\n return element;\n }\n\n return tuiGetScrollParent(element.parentElement, vertical);\n}\n","import {tuiIsTextfield} from './element-checks';\n\n/**\n * @description:\n * cross browser way to get selected text\n *\n * History:\n * BUG - window.getSelection() fails when text selected in a form field\n * https://bugzilla.mozilla.org/show_bug.cgi?id=85686\n */\nexport function tuiGetSelectedText({getSelection, document}: Window): string | null {\n return document.activeElement && tuiIsTextfield(document.activeElement)\n ? document.activeElement.value.slice(\n document.activeElement.selectionStart || 0,\n document.activeElement.selectionEnd || 0,\n )\n : getSelection()?.toString() || null;\n}\n","export function tuiIsCurrentTarget({target, currentTarget}: Event): boolean {\n return target === currentTarget;\n}\n","import {tuiIsTextfield} from './element-checks';\n\nexport function tuiIsElementEditable(element: HTMLElement): boolean {\n return (tuiIsTextfield(element) && !element.readOnly) || !!element.isContentEditable;\n}\n","/**\n * Checks if an app is running inside <iframe /> tag\n */\nexport function tuiIsInsideIframe(win: Window): boolean {\n return win.parent !== win;\n}\n","import {tuiIsElement, tuiIsTextNode} from './element-checks';\n\n/**\n * Checks if node is inside a specific selector\n *\n * @param node\n * @param selector\n * @return true if node is inside a particular selector\n */\nexport function tuiIsNodeIn(node: Node, selector: string): boolean {\n return tuiIsTextNode(node)\n ? !!node.parentElement?.closest(selector)\n : tuiIsElement(node) && !!node.closest(selector);\n}\n","export function tuiPointToClientRect(x: number = 0, y: number = 0): DOMRect {\n const rect = {\n x,\n y,\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n } as const;\n\n return {\n ...rect,\n toJSON() {\n return rect;\n },\n };\n}\n","export function tuiRetargetedBoundaryCrossing(event: any): boolean {\n if (`explicitOriginalTarget` in event) {\n return event?.explicitOriginalTarget !== event.target; // firefox\n }\n\n if (`layerX` in event && `layerY` in event) {\n return (event?.layerX ?? 0) < 0 || (event?.layerY ?? 0) < 0; // chrome/safari/etc\n }\n\n return false;\n}\n"],"names":["tuiClamp","tuiIsPresent","tuiAssert"],"mappings":";;;;;;IAAM,SAAU,YAAY,CACxB,OAAgB,EAChB,WAAoB,EACpB,QAAiB,EACjB,SAAkB,EAAA;IAElB,IAAA,OAAO,QAAQ;cACT,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,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AK,KAAK,CAAC,MAAM,CAAC;IACzD,KAAA;IAED,IAAA,IAAI,QAAQ,IAAI,KAAK,IAAI,QAAQ,IAAI,KAAK,EAAE;IACxC,QAAA,OAAO,CAAC,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAL,KAAK,CAAE,MAAM,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,EAAA,GAAA,KAAK,KAAL,IAAA,IAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,KAAK,CAAE,MAAM,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAC,IAAI,CAAC,CAAC;IAC/D,KAAA;IAED,IAAA,OAAO,KAAK,CAAC;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -4,11 +4,6 @@
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.utils = global["taiga-ui"].cdk.utils || {}, global["taiga-ui"].cdk.utils.focus = {}), global["taiga-ui"].cdk.utils.dom, global["taiga-ui"].cdk.constants));
|
5
5
|
})(this, (function (exports, dom, constants) { 'use strict';
|
6
6
|
|
7
|
-
/**
|
8
|
-
* Returns current active element, including shadow dom
|
9
|
-
*
|
10
|
-
* @return element or null
|
11
|
-
*/
|
12
7
|
function tuiGetNativeFocused(_a) {
|
13
8
|
var activeElement = _a.activeElement;
|
14
9
|
if (!(activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot)) {
|
@@ -21,9 +16,6 @@
|
|
21
16
|
return element;
|
22
17
|
}
|
23
18
|
|
24
|
-
/**
|
25
|
-
* Finds and blurs current active element, including shadow DOM
|
26
|
-
*/
|
27
19
|
function tuiBlurNativeFocused(doc) {
|
28
20
|
var activeElement = tuiGetNativeFocused(doc);
|
29
21
|
if (dom.tuiIsHTMLElement(activeElement)) {
|
@@ -31,12 +23,6 @@
|
|
31
23
|
}
|
32
24
|
}
|
33
25
|
|
34
|
-
/**
|
35
|
-
* Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to
|
36
|
-
* only target natural focus order. Not checking the possibility of an element to
|
37
|
-
* be focused, for example element can have display: none applied to it or any other
|
38
|
-
* circumstances could prevent actual focus.
|
39
|
-
*/
|
40
26
|
function tuiIsNativeKeyboardFocusable(element) {
|
41
27
|
if (element.hasAttribute("disabled") || element.getAttribute("tabIndex") === "-1") {
|
42
28
|
return false;
|
@@ -69,10 +55,6 @@
|
|
69
55
|
tuiIsNativeKeyboardFocusable(element)));
|
70
56
|
}
|
71
57
|
|
72
|
-
/**
|
73
|
-
* @description:
|
74
|
-
* Finds the closest element that can be focused with a keyboard or mouse in theory
|
75
|
-
*/
|
76
58
|
function tuiGetClosestFocusable(_a) {
|
77
59
|
var initial = _a.initial, root = _a.root, _b = _a.previous, previous = _b === void 0 ? false : _b, _c = _a.keyboard, keyboard = _c === void 0 ? true : _c;
|
78
60
|
if (!root.ownerDocument) {
|
@@ -92,26 +74,11 @@
|
|
92
74
|
return null;
|
93
75
|
}
|
94
76
|
|
95
|
-
/**
|
96
|
-
* Checks if element is focused.
|
97
|
-
*
|
98
|
-
* Could return true even after blur since element remains focused if you switch away from a browser tab.
|
99
|
-
*
|
100
|
-
* @param node or null (as a common return value of DOM nodes walking)
|
101
|
-
* @return true if focused
|
102
|
-
*/
|
103
77
|
function tuiIsNativeFocused(node) {
|
104
78
|
return !!(node === null || node === void 0 ? void 0 : node.ownerDocument) && tuiGetNativeFocused(node.ownerDocument) === node;
|
105
79
|
}
|
106
80
|
|
107
|
-
/**
|
108
|
-
* Checks if focused element is within given element.
|
109
|
-
*
|
110
|
-
* @param node
|
111
|
-
* @return true if focused node is contained within element
|
112
|
-
*/
|
113
81
|
function tuiIsNativeFocusedIn(node) {
|
114
|
-
// !node.contains - check for IE11
|
115
82
|
if (!node.ownerDocument || !node.contains) {
|
116
83
|
return false;
|
117
84
|
}
|
@@ -119,13 +86,6 @@
|
|
119
86
|
return nativeFocused !== null && node.contains(nativeFocused);
|
120
87
|
}
|
121
88
|
|
122
|
-
/**
|
123
|
-
* Utility method for moving focus in a list of elements
|
124
|
-
*
|
125
|
-
* @param currentIndex currently focused index
|
126
|
-
* @param elements array of focusable elements
|
127
|
-
* @param step a step to move focus by, typically -1 or 1
|
128
|
-
*/
|
129
89
|
function tuiMoveFocus(currentIndex, elements, step) {
|
130
90
|
currentIndex += step;
|
131
91
|
while (currentIndex >= 0 && currentIndex < elements.length) {
|
@@ -137,13 +97,6 @@
|
|
137
97
|
}
|
138
98
|
}
|
139
99
|
|
140
|
-
/**
|
141
|
-
* Focuses or blurs element with mouse action imitation (to spoof {@link TuiFocusVisibleService})
|
142
|
-
*
|
143
|
-
* @param element
|
144
|
-
* @param focused desired focused state
|
145
|
-
* @param preventScroll optionally prevent native browser scroll after focus
|
146
|
-
*/
|
147
100
|
function tuiSetNativeMouseFocused(element, focused, preventScroll) {
|
148
101
|
if (focused === void 0) { focused = true; }
|
149
102
|
if (preventScroll === void 0) { preventScroll = false; }
|
@@ -166,10 +119,6 @@
|
|
166
119
|
}
|
167
120
|
}
|
168
121
|
|
169
|
-
/**
|
170
|
-
* Generated bundle index. Do not edit.
|
171
|
-
*/
|
172
|
-
|
173
122
|
exports.tuiBlurNativeFocused = tuiBlurNativeFocused;
|
174
123
|
exports.tuiGetClosestFocusable = tuiGetClosestFocusable;
|
175
124
|
exports.tuiGetNativeFocused = tuiGetNativeFocused;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-focus.umd.js","sources":["../../../projects/cdk/utils/focus/get-native-focused.ts","../../../projects/cdk/utils/focus/blur-native-focused.ts","../../../projects/cdk/utils/focus/is-native-keyboard-focusable.ts","../../../projects/cdk/utils/focus/is-native-mouse-focusable.ts","../../../projects/cdk/utils/focus/get-closest-focusable.ts","../../../projects/cdk/utils/focus/is-native-focused.ts","../../../projects/cdk/utils/focus/is-native-focused-in.ts","../../../projects/cdk/utils/focus/move-focus.ts","../../../projects/cdk/utils/focus/set-native-mouse-focused.ts","../../../projects/cdk/utils/focus/taiga-ui-cdk-utils-focus.ts"],"sourcesContent":["/**\n * Returns current active element, including shadow dom\n *\n * @return element or null\n */\nexport function tuiGetNativeFocused({activeElement}: Document): Element | null {\n if (!activeElement?.shadowRoot) {\n return activeElement;\n }\n\n let element = activeElement.shadowRoot.activeElement;\n\n while (element?.shadowRoot) {\n element = element.shadowRoot.activeElement;\n }\n\n return element;\n}\n","import {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Finds and blurs current active element, including shadow DOM\n */\nexport function tuiBlurNativeFocused(doc: Document): void {\n const activeElement = tuiGetNativeFocused(doc);\n\n if (tuiIsHTMLElement(activeElement)) {\n activeElement.blur();\n }\n}\n","import {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\n/**\n * Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to\n * only target natural focus order. Not checking the possibility of an element to\n * be focused, for example element can have display: none applied to it or any other\n * circumstances could prevent actual focus.\n */\nexport function tuiIsNativeKeyboardFocusable(element: Element): boolean {\n if (element.hasAttribute(`disabled`) || element.getAttribute(`tabIndex`) === `-1`) {\n return false;\n }\n\n if (\n (tuiIsHTMLElement(element) && element.isContentEditable) ||\n element.getAttribute(`tabIndex`) === `0`\n ) {\n return true;\n }\n\n switch (element.tagName) {\n case `BUTTON`:\n case `SELECT`:\n case `TEXTAREA`:\n return true;\n case `VIDEO`:\n case `AUDIO`:\n return element.hasAttribute(`controls`);\n case `INPUT`:\n return element.getAttribute(`type`) !== `hidden`;\n case `A`:\n case `LINK`:\n return element.hasAttribute(`href`);\n default:\n return false;\n }\n}\n","import {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\n\nexport function tuiIsNativeMouseFocusable(element: Element): boolean {\n return (\n !element.hasAttribute(`disabled`) &&\n (element.getAttribute(`tabIndex`) === `-1` ||\n tuiIsNativeKeyboardFocusable(element))\n );\n}\n","import {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\nimport {tuiIsNativeMouseFocusable} from './is-native-mouse-focusable';\n\nexport interface TuiGetClosestFocusableOptions {\n /**\n * @description:\n * current HTML element\n */\n initial: Element;\n\n /**\n * @description:\n * determine if only keyboard focus is of interest\n */\n keyboard?: boolean;\n\n /**\n * @description:\n * should it look backwards instead (find item that will be focused with Shift + Tab)\n */\n previous?: boolean;\n\n /**\n * @description:\n * top Node limiting the search area\n */\n root: Node;\n}\n\n/**\n * @description:\n * Finds the closest element that can be focused with a keyboard or mouse in theory\n */\nexport function tuiGetClosestFocusable({\n initial,\n root,\n previous = false,\n keyboard = true,\n}: TuiGetClosestFocusableOptions): HTMLElement | null {\n if (!root.ownerDocument) {\n return null;\n }\n\n const check = keyboard ? tuiIsNativeKeyboardFocusable : tuiIsNativeMouseFocusable;\n const treeWalker = root.ownerDocument.createTreeWalker(\n root,\n NodeFilter.SHOW_ELEMENT,\n svgNodeFilter,\n );\n\n treeWalker.currentNode = initial;\n\n while (previous ? treeWalker.previousNode() : treeWalker.nextNode()) {\n if (tuiIsHTMLElement(treeWalker.currentNode)) {\n initial = treeWalker.currentNode;\n }\n\n if (tuiIsHTMLElement(initial) && check(initial)) {\n return initial;\n }\n }\n\n return null;\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Checks if element is focused.\n *\n * Could return true even after blur since element remains focused if you switch away from a browser tab.\n *\n * @param node or null (as a common return value of DOM nodes walking)\n * @return true if focused\n */\nexport function tuiIsNativeFocused(node: Node | null): boolean {\n return !!node?.ownerDocument && tuiGetNativeFocused(node.ownerDocument) === node;\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Checks if focused element is within given element.\n *\n * @param node\n * @return true if focused node is contained within element\n */\nexport function tuiIsNativeFocusedIn(node: Node): boolean {\n // !node.contains - check for IE11\n if (!node.ownerDocument || !node.contains) {\n return false;\n }\n\n const nativeFocused = tuiGetNativeFocused(node.ownerDocument);\n\n return nativeFocused !== null && node.contains(nativeFocused);\n}\n","import {tuiIsNativeFocused} from './is-native-focused';\n\n/**\n * Utility method for moving focus in a list of elements\n *\n * @param currentIndex currently focused index\n * @param elements array of focusable elements\n * @param step a step to move focus by, typically -1 or 1\n */\nexport function tuiMoveFocus(\n currentIndex: number,\n elements: readonly HTMLElement[],\n step: number,\n): void {\n currentIndex += step;\n\n while (currentIndex >= 0 && currentIndex < elements.length) {\n elements[currentIndex].focus();\n\n if (tuiIsNativeFocused(elements[currentIndex])) {\n return;\n }\n\n currentIndex += step;\n }\n}\n","/**\n * Focuses or blurs element with mouse action imitation (to spoof {@link TuiFocusVisibleService})\n *\n * @param element\n * @param focused desired focused state\n * @param preventScroll optionally prevent native browser scroll after focus\n */\nexport function tuiSetNativeMouseFocused(\n element: Element & HTMLOrSVGElement,\n focused: boolean = true,\n preventScroll: boolean = false,\n): void {\n if (!element.ownerDocument) {\n return;\n }\n\n if (typeof Event === `function`) {\n element.dispatchEvent(new Event(`mousedown`, {bubbles: true, cancelable: true}));\n } else {\n const event = element.ownerDocument.createEvent(`Event`);\n\n event.initEvent(`mousedown`, true, true);\n element.dispatchEvent(event);\n }\n\n if (focused) {\n element.focus({preventScroll});\n } else {\n element.blur();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiIsHTMLElement","svgNodeFilter"],"mappings":";;;;;;IAAA;;;;IAIG;IACG,SAAU,mBAAmB,CAAC,EAAyB,EAAA;IAAxB,IAAA,IAAA,aA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Y,IAAI,IAAI,CAAC;IACxB,KAAA;IACL;;ICzBA;;;;;;IAMG;aACa,wBAAwB,CACpC,OAAmC,EACnC,OAAuB,EACvB,aAA8B,EAAA;IAD9B,IAAA,IAAA,OAAA,KAAA,KAAA,CAAA,EAAA,EAAA,OAAuB,GAAA,IAAA,CAAA,EAAA;IACvB,IAAA,IAAA,aAAA,KAAA,KAAA,CAAA,EAAA,EAAA,aAA8B,GAAA,KAAA,CAAA,EAAA;IAE9B,IAAA,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACxB,OAAO;IACV,KAAA;IAED,IAAA,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;IAC7B,QAAA,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;IACpF,KAAA;IAAM,SAAA;YACH,IAAM,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEzD,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACzC,QAAA,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,KAAA;IAED,IAAA,IAAI,OAAO,EAAE;YACT,OAAO,CAAC,KAAK,CAAC,EAAC,aAAa,EAAA,aAAA,EAAC,CAAC,CAAC;IAClC,KAAA;IAAM,SAAA;YACH,OAAO,CAAC,IAAI,EAAE,CAAC;IAClB,KAAA;IACL;;IC9BA;;IAEG;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-focus.umd.js","sources":["../../../projects/cdk/utils/focus/get-native-focused.ts","../../../projects/cdk/utils/focus/blur-native-focused.ts","../../../projects/cdk/utils/focus/is-native-keyboard-focusable.ts","../../../projects/cdk/utils/focus/is-native-mouse-focusable.ts","../../../projects/cdk/utils/focus/get-closest-focusable.ts","../../../projects/cdk/utils/focus/is-native-focused.ts","../../../projects/cdk/utils/focus/is-native-focused-in.ts","../../../projects/cdk/utils/focus/move-focus.ts","../../../projects/cdk/utils/focus/set-native-mouse-focused.ts"],"sourcesContent":["/**\n * Returns current active element, including shadow dom\n *\n * @return element or null\n */\nexport function tuiGetNativeFocused({activeElement}: Document): Element | null {\n if (!activeElement?.shadowRoot) {\n return activeElement;\n }\n\n let element = activeElement.shadowRoot.activeElement;\n\n while (element?.shadowRoot) {\n element = element.shadowRoot.activeElement;\n }\n\n return element;\n}\n","import {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Finds and blurs current active element, including shadow DOM\n */\nexport function tuiBlurNativeFocused(doc: Document): void {\n const activeElement = tuiGetNativeFocused(doc);\n\n if (tuiIsHTMLElement(activeElement)) {\n activeElement.blur();\n }\n}\n","import {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\n/**\n * Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to\n * only target natural focus order. Not checking the possibility of an element to\n * be focused, for example element can have display: none applied to it or any other\n * circumstances could prevent actual focus.\n */\nexport function tuiIsNativeKeyboardFocusable(element: Element): boolean {\n if (element.hasAttribute(`disabled`) || element.getAttribute(`tabIndex`) === `-1`) {\n return false;\n }\n\n if (\n (tuiIsHTMLElement(element) && element.isContentEditable) ||\n element.getAttribute(`tabIndex`) === `0`\n ) {\n return true;\n }\n\n switch (element.tagName) {\n case `BUTTON`:\n case `SELECT`:\n case `TEXTAREA`:\n return true;\n case `VIDEO`:\n case `AUDIO`:\n return element.hasAttribute(`controls`);\n case `INPUT`:\n return element.getAttribute(`type`) !== `hidden`;\n case `A`:\n case `LINK`:\n return element.hasAttribute(`href`);\n default:\n return false;\n }\n}\n","import {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\n\nexport function tuiIsNativeMouseFocusable(element: Element): boolean {\n return (\n !element.hasAttribute(`disabled`) &&\n (element.getAttribute(`tabIndex`) === `-1` ||\n tuiIsNativeKeyboardFocusable(element))\n );\n}\n","import {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\nimport {tuiIsNativeMouseFocusable} from './is-native-mouse-focusable';\n\nexport interface TuiGetClosestFocusableOptions {\n /**\n * @description:\n * current HTML element\n */\n initial: Element;\n\n /**\n * @description:\n * determine if only keyboard focus is of interest\n */\n keyboard?: boolean;\n\n /**\n * @description:\n * should it look backwards instead (find item that will be focused with Shift + Tab)\n */\n previous?: boolean;\n\n /**\n * @description:\n * top Node limiting the search area\n */\n root: Node;\n}\n\n/**\n * @description:\n * Finds the closest element that can be focused with a keyboard or mouse in theory\n */\nexport function tuiGetClosestFocusable({\n initial,\n root,\n previous = false,\n keyboard = true,\n}: TuiGetClosestFocusableOptions): HTMLElement | null {\n if (!root.ownerDocument) {\n return null;\n }\n\n const check = keyboard ? tuiIsNativeKeyboardFocusable : tuiIsNativeMouseFocusable;\n const treeWalker = root.ownerDocument.createTreeWalker(\n root,\n NodeFilter.SHOW_ELEMENT,\n svgNodeFilter,\n );\n\n treeWalker.currentNode = initial;\n\n while (previous ? treeWalker.previousNode() : treeWalker.nextNode()) {\n if (tuiIsHTMLElement(treeWalker.currentNode)) {\n initial = treeWalker.currentNode;\n }\n\n if (tuiIsHTMLElement(initial) && check(initial)) {\n return initial;\n }\n }\n\n return null;\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Checks if element is focused.\n *\n * Could return true even after blur since element remains focused if you switch away from a browser tab.\n *\n * @param node or null (as a common return value of DOM nodes walking)\n * @return true if focused\n */\nexport function tuiIsNativeFocused(node: Node | null): boolean {\n return !!node?.ownerDocument && tuiGetNativeFocused(node.ownerDocument) === node;\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * Checks if focused element is within given element.\n *\n * @param node\n * @return true if focused node is contained within element\n */\nexport function tuiIsNativeFocusedIn(node: Node): boolean {\n // !node.contains - check for IE11\n if (!node.ownerDocument || !node.contains) {\n return false;\n }\n\n const nativeFocused = tuiGetNativeFocused(node.ownerDocument);\n\n return nativeFocused !== null && node.contains(nativeFocused);\n}\n","import {tuiIsNativeFocused} from './is-native-focused';\n\n/**\n * Utility method for moving focus in a list of elements\n *\n * @param currentIndex currently focused index\n * @param elements array of focusable elements\n * @param step a step to move focus by, typically -1 or 1\n */\nexport function tuiMoveFocus(\n currentIndex: number,\n elements: readonly HTMLElement[],\n step: number,\n): void {\n currentIndex += step;\n\n while (currentIndex >= 0 && currentIndex < elements.length) {\n elements[currentIndex].focus();\n\n if (tuiIsNativeFocused(elements[currentIndex])) {\n return;\n }\n\n currentIndex += step;\n }\n}\n","/**\n * Focuses or blurs element with mouse action imitation (to spoof {@link TuiFocusVisibleService})\n *\n * @param element\n * @param focused desired focused state\n * @param preventScroll optionally prevent native browser scroll after focus\n */\nexport function tuiSetNativeMouseFocused(\n element: Element & HTMLOrSVGElement,\n focused: boolean = true,\n preventScroll: boolean = false,\n): void {\n if (!element.ownerDocument) {\n return;\n }\n\n if (typeof Event === `function`) {\n element.dispatchEvent(new Event(`mousedown`, {bubbles: true, cancelable: true}));\n } else {\n const event = element.ownerDocument.createEvent(`Event`);\n\n event.initEvent(`mousedown`, true, true);\n element.dispatchEvent(event);\n }\n\n if (focused) {\n element.focus({preventScroll});\n } else {\n element.blur();\n }\n}\n"],"names":["tuiIsHTMLElement","svgNodeFilter"],"mappings":";;;;;;IAKM,SAAU,mBAAmB,CAAC,EAAyB,EAAA;IAAxB,IAAA,IAAA,aAAa,GAAA,EAAA,CAAA,aAAA,CAAA;QAC9C,IAAI,EAAC,aAAa,KAAb,IAAA,IAAA,aAAa,uBAAb,aAAa,CAAE,UAAU,CAAA,EAAE;IAC5B,QAAA,OAAO,aAAa,CAAC;IACxB,KAAA;IAED,IAAA,IAAI,OAAO,GA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IAAA,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACxB,OAAO;IACV,KAAA;IAED,IAAA,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;IAC7B,QAAA,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;IACpF,KAAA;IAAM,SAAA;YACH,IAAM,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEzD,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACzC,QAAA,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,KAAA;IAED,IAAA,IAAI,OAAO,EAAE;YACT,OAAO,CAAC,KAAK,CAAC,EAAC,aAAa,EAAA,aAAA,EAAC,CAAC,CAAC;IAClC,KAAA;IAAM,SAAA;YACH,OAAO,CAAC,IAAI,EAAE,CAAC;IAClB,KAAA;IACL;;;;;;;;;;;;;;;;;;"}
|
@@ -4,18 +4,11 @@
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.utils = global["taiga-ui"].cdk.utils || {}, global["taiga-ui"].cdk.utils.format = {}), global["taiga-ui"].cdk.classes));
|
5
5
|
})(this, (function (exports, classes) { 'use strict';
|
6
6
|
|
7
|
-
/**
|
8
|
-
* Adds 'px' to the number and turns it into a string
|
9
|
-
*/
|
10
7
|
function tuiPx(value) {
|
11
8
|
ngDevMode && classes.tuiAssert.assert(Number.isFinite(value), "Value must be finite number");
|
12
9
|
return value + "px";
|
13
10
|
}
|
14
11
|
|
15
|
-
/**
|
16
|
-
* Generated bundle index. Do not edit.
|
17
|
-
*/
|
18
|
-
|
19
12
|
exports.tuiPx = tuiPx;
|
20
13
|
|
21
14
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-format.umd.js","sources":["../../../projects/cdk/utils/format/px.ts"
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-format.umd.js","sources":["../../../projects/cdk/utils/format/px.ts"],"sourcesContent":["import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Adds 'px' to the number and turns it into a string\n */\nexport function tuiPx(value: number): string {\n ngDevMode && tuiAssert.assert(Number.isFinite(value), `Value must be finite number`);\n\n return `${value}px`;\n}\n"],"names":["tuiAssert"],"mappings":";;;;;;IAKM,SAAU,KAAK,CAAC,KAAa,EAAA;IAC/B,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,6BAA6B,CAAC,CAAC;QAErF,OAAU,KAAK,OAAI,CAAC;IACxB;;;;;;;;;;"}
|
@@ -4,13 +4,6 @@
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.utils = global["taiga-ui"].cdk.utils || {}, global["taiga-ui"].cdk.utils.math = {}), global["taiga-ui"].cdk.classes));
|
5
5
|
})(this, (function (exports, classes) { 'use strict';
|
6
6
|
|
7
|
-
/**
|
8
|
-
* Clamps a value between two inclusive limits
|
9
|
-
*
|
10
|
-
* @param value
|
11
|
-
* @param min lower limit
|
12
|
-
* @param max upper limit
|
13
|
-
*/
|
14
7
|
function tuiClamp(value, min, max) {
|
15
8
|
ngDevMode && classes.tuiAssert.assert(!Number.isNaN(value));
|
16
9
|
ngDevMode && classes.tuiAssert.assert(!Number.isNaN(min));
|
@@ -27,14 +20,6 @@
|
|
27
20
|
return value >= fromInclude && value < toExclude;
|
28
21
|
}
|
29
22
|
|
30
|
-
/**
|
31
|
-
* Normalizes any number to an integer within inclusive range
|
32
|
-
*
|
33
|
-
* @param value
|
34
|
-
* @param min lower inclusive integer
|
35
|
-
* @param max upper inclusive integer
|
36
|
-
* @return an integer between min and max inclusive
|
37
|
-
*/
|
38
23
|
function tuiNormalizeToIntNumber(value, min, max) {
|
39
24
|
ngDevMode && classes.tuiAssert.assert(Number.isInteger(min));
|
40
25
|
ngDevMode && classes.tuiAssert.assert(Number.isInteger(max));
|
@@ -48,12 +33,6 @@
|
|
48
33
|
return Math.round(value);
|
49
34
|
}
|
50
35
|
|
51
|
-
/**
|
52
|
-
* Rounds a number to the closest value in a fixed discrete series
|
53
|
-
*
|
54
|
-
* @param value
|
55
|
-
* @param quantum series step
|
56
|
-
*/
|
57
36
|
function tuiQuantize(value, quantum) {
|
58
37
|
ngDevMode && classes.tuiAssert.assert(Number.isFinite(value));
|
59
38
|
ngDevMode && classes.tuiAssert.assert(Number.isFinite(quantum));
|
@@ -79,13 +58,6 @@
|
|
79
58
|
if (precision === void 0) { precision = 0; }
|
80
59
|
return calculate(value, precision, Math.trunc);
|
81
60
|
}
|
82
|
-
/**
|
83
|
-
* Rounding number to the set precision
|
84
|
-
*
|
85
|
-
* @param value
|
86
|
-
* @param precision number of digits in a float part
|
87
|
-
* @param func rounding function (round, floor, ceil)
|
88
|
-
*/
|
89
61
|
function calculate(value, precision, func) {
|
90
62
|
if (value === Infinity) {
|
91
63
|
return value;
|
@@ -114,9 +86,6 @@
|
|
114
86
|
}
|
115
87
|
}
|
116
88
|
|
117
|
-
/**
|
118
|
-
* Calculates sum of any number of passed arguments
|
119
|
-
*/
|
120
89
|
function tuiSum() {
|
121
90
|
var args = [];
|
122
91
|
for (var _i = 0; _i < arguments.length; _i++) {
|
@@ -133,17 +102,10 @@
|
|
133
102
|
return parseInt(value, 10);
|
134
103
|
}
|
135
104
|
|
136
|
-
/**
|
137
|
-
* Converts angle in degrees to radians
|
138
|
-
*/
|
139
105
|
function tuiToRadians(deg) {
|
140
106
|
return (deg * Math.PI) / 180;
|
141
107
|
}
|
142
108
|
|
143
|
-
/**
|
144
|
-
* Generated bundle index. Do not edit.
|
145
|
-
*/
|
146
|
-
|
147
109
|
exports.tuiCeil = tuiCeil;
|
148
110
|
exports.tuiClamp = tuiClamp;
|
149
111
|
exports.tuiFloor = tuiFloor;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-math.umd.js","sources":["../../../projects/cdk/utils/math/clamp.ts","../../../projects/cdk/utils/math/in-range.ts","../../../projects/cdk/utils/math/normalize-to-int-number.ts","../../../projects/cdk/utils/math/quantize.ts","../../../projects/cdk/utils/math/round.ts","../../../projects/cdk/utils/math/round-with.ts","../../../projects/cdk/utils/math/sum.ts","../../../projects/cdk/utils/math/to-int.ts","../../../projects/cdk/utils/math/to-integer.ts","../../../projects/cdk/utils/math/to-radians.ts","../../../projects/cdk/utils/math/taiga-ui-cdk-utils-math.ts"],"sourcesContent":["import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Clamps a value between two inclusive limits\n *\n * @param value\n * @param min lower limit\n * @param max upper limit\n */\nexport function tuiClamp(value: number, min: number, max: number): number {\n ngDevMode && tuiAssert.assert(!Number.isNaN(value));\n ngDevMode && tuiAssert.assert(!Number.isNaN(min));\n ngDevMode && tuiAssert.assert(!Number.isNaN(max));\n ngDevMode && tuiAssert.assert(max >= min);\n\n return Math.min(max, Math.max(min, value));\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nexport function tuiInRange(\n value: number,\n fromInclude: number,\n toExclude: number,\n): boolean {\n ngDevMode && tuiAssert.assert(!Number.isNaN(value));\n ngDevMode && tuiAssert.assert(!Number.isNaN(fromInclude));\n ngDevMode && tuiAssert.assert(!Number.isNaN(toExclude));\n ngDevMode && tuiAssert.assert(fromInclude < toExclude);\n\n return value >= fromInclude && value < toExclude;\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Normalizes any number to an integer within inclusive range\n *\n * @param value\n * @param min lower inclusive integer\n * @param max upper inclusive integer\n * @return an integer between min and max inclusive\n */\nexport function tuiNormalizeToIntNumber(value: number, min: number, max: number): number {\n ngDevMode && tuiAssert.assert(Number.isInteger(min));\n ngDevMode && tuiAssert.assert(Number.isInteger(max));\n ngDevMode && tuiAssert.assert(min <= max);\n\n if (Number.isNaN(value) || value <= min) {\n return min;\n }\n\n if (value >= max) {\n return max;\n }\n\n return Math.round(value);\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Rounds a number to the closest value in a fixed discrete series\n *\n * @param value\n * @param quantum series step\n */\nexport function tuiQuantize(value: number, quantum: number): number {\n ngDevMode && tuiAssert.assert(Number.isFinite(value));\n ngDevMode && tuiAssert.assert(Number.isFinite(quantum));\n ngDevMode && tuiAssert.assert(quantum > 0);\n\n const remainder = value % quantum;\n\n return remainder < quantum / 2 ? value - remainder : value + quantum - remainder;\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nconst MAX_PRECISION = 292;\n\nexport function tuiRound(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.round);\n}\n\nexport function tuiCeil(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.ceil);\n}\n\nexport function tuiFloor(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.floor);\n}\n\nexport function tuiTrunc(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.trunc);\n}\n\n/**\n * Rounding number to the set precision\n *\n * @param value\n * @param precision number of digits in a float part\n * @param func rounding function (round, floor, ceil)\n */\nfunction calculate(\n value: number,\n precision: number,\n func: (x: number) => number,\n): number {\n if (value === Infinity) {\n return value;\n }\n\n ngDevMode && tuiAssert.assert(!Number.isNaN(value), `Value must be number`);\n ngDevMode &&\n tuiAssert.assert(Number.isInteger(precision), `Precision must be integer`);\n\n precision = Math.min(precision, MAX_PRECISION);\n\n const pair = `${value}e`.split(`e`);\n const tempValue = func(Number(`${pair[0]}e${Number(pair[1]) + precision}`));\n const processedPair = `${tempValue}e`.split(`e`);\n\n return Number(`${processedPair[0]}e${Number(processedPair[1]) - precision}`);\n}\n","import {TuiRounding} from '@taiga-ui/cdk/types';\n\nimport {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round';\n\nexport function tuiRoundWith({\n value,\n precision,\n method,\n}: {\n method: TuiRounding;\n precision: number;\n value: number;\n}): number {\n switch (method) {\n case `round`:\n return tuiRound(value, precision);\n case `ceil`:\n return tuiCeil(value, precision);\n case `floor`:\n return tuiFloor(value, precision);\n default:\n return tuiTrunc(value, precision);\n }\n}\n","/**\n * Calculates sum of any number of passed arguments\n */\nexport function tuiSum(...args: number[]): number {\n return args.reduce((a, b) => a + b, 0);\n}\n","export function tuiToInt(bool: boolean): 0 | 1 {\n return bool ? 1 : 0;\n}\n","export function tuiToInteger(value: number | string): number {\n return parseInt(value as unknown as string, 10);\n}\n","/**\n * Converts angle in degrees to radians\n */\nexport function tuiToRadians(deg: number): number {\n return (deg * Math.PI) / 180;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiAssert"],"mappings":";;;;;;IAEA;;;;;;IAMG;aACa,QAAQ,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAA;IAC5D,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACpD,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAClD,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAE1C,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,G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cdk/utils/math/in-range.ts","../../../projects/cdk/utils/math/normalize-to-int-number.ts","../../../projects/cdk/utils/math/quantize.ts","../../../projects/cdk/utils/math/round.ts","../../../projects/cdk/utils/math/round-with.ts","../../../projects/cdk/utils/math/sum.ts","../../../projects/cdk/utils/math/to-int.ts","../../../projects/cdk/utils/math/to-integer.ts","../../../projects/cdk/utils/math/to-radians.ts"],"sourcesContent":["import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Clamps a value between two inclusive limits\n *\n * @param value\n * @param min lower limit\n * @param max upper limit\n */\nexport function tuiClamp(value: number, min: number, max: number): number {\n ngDevMode && tuiAssert.assert(!Number.isNaN(value));\n ngDevMode && tuiAssert.assert(!Number.isNaN(min));\n ngDevMode && tuiAssert.assert(!Number.isNaN(max));\n ngDevMode && tuiAssert.assert(max >= min);\n\n return Math.min(max, Math.max(min, value));\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nexport function tuiInRange(\n value: number,\n fromInclude: number,\n toExclude: number,\n): boolean {\n ngDevMode && tuiAssert.assert(!Number.isNaN(value));\n ngDevMode && tuiAssert.assert(!Number.isNaN(fromInclude));\n ngDevMode && tuiAssert.assert(!Number.isNaN(toExclude));\n ngDevMode && tuiAssert.assert(fromInclude < toExclude);\n\n return value >= fromInclude && value < toExclude;\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Normalizes any number to an integer within inclusive range\n *\n * @param value\n * @param min lower inclusive integer\n * @param max upper inclusive integer\n * @return an integer between min and max inclusive\n */\nexport function tuiNormalizeToIntNumber(value: number, min: number, max: number): number {\n ngDevMode && tuiAssert.assert(Number.isInteger(min));\n ngDevMode && tuiAssert.assert(Number.isInteger(max));\n ngDevMode && tuiAssert.assert(min <= max);\n\n if (Number.isNaN(value) || value <= min) {\n return min;\n }\n\n if (value >= max) {\n return max;\n }\n\n return Math.round(value);\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Rounds a number to the closest value in a fixed discrete series\n *\n * @param value\n * @param quantum series step\n */\nexport function tuiQuantize(value: number, quantum: number): number {\n ngDevMode && tuiAssert.assert(Number.isFinite(value));\n ngDevMode && tuiAssert.assert(Number.isFinite(quantum));\n ngDevMode && tuiAssert.assert(quantum > 0);\n\n const remainder = value % quantum;\n\n return remainder < quantum / 2 ? value - remainder : value + quantum - remainder;\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nconst MAX_PRECISION = 292;\n\nexport function tuiRound(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.round);\n}\n\nexport function tuiCeil(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.ceil);\n}\n\nexport function tuiFloor(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.floor);\n}\n\nexport function tuiTrunc(value: number, precision: number = 0): number {\n return calculate(value, precision, Math.trunc);\n}\n\n/**\n * Rounding number to the set precision\n *\n * @param value\n * @param precision number of digits in a float part\n * @param func rounding function (round, floor, ceil)\n */\nfunction calculate(\n value: number,\n precision: number,\n func: (x: number) => number,\n): number {\n if (value === Infinity) {\n return value;\n }\n\n ngDevMode && tuiAssert.assert(!Number.isNaN(value), `Value must be number`);\n ngDevMode &&\n tuiAssert.assert(Number.isInteger(precision), `Precision must be integer`);\n\n precision = Math.min(precision, MAX_PRECISION);\n\n const pair = `${value}e`.split(`e`);\n const tempValue = func(Number(`${pair[0]}e${Number(pair[1]) + precision}`));\n const processedPair = `${tempValue}e`.split(`e`);\n\n return Number(`${processedPair[0]}e${Number(processedPair[1]) - precision}`);\n}\n","import {TuiRounding} from '@taiga-ui/cdk/types';\n\nimport {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round';\n\nexport function tuiRoundWith({\n value,\n precision,\n method,\n}: {\n method: TuiRounding;\n precision: number;\n value: number;\n}): number {\n switch (method) {\n case `round`:\n return tuiRound(value, precision);\n case `ceil`:\n return tuiCeil(value, precision);\n case `floor`:\n return tuiFloor(value, precision);\n default:\n return tuiTrunc(value, precision);\n }\n}\n","/**\n * Calculates sum of any number of passed arguments\n */\nexport function tuiSum(...args: number[]): number {\n return args.reduce((a, b) => a + b, 0);\n}\n","export function tuiToInt(bool: boolean): 0 | 1 {\n return bool ? 1 : 0;\n}\n","export function tuiToInteger(value: number | string): number {\n return parseInt(value as unknown as string, 10);\n}\n","/**\n * Converts angle in degrees to radians\n */\nexport function tuiToRadians(deg: number): number {\n return (deg * Math.PI) / 180;\n}\n"],"names":["tuiAssert"],"mappings":";;;;;;aASgB,QAAQ,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAA;IAC5D,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACpD,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAClD,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAE1C,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC/C;;aCdgB,UAAU,CACtB,KAAa,EACb,WAAmB,EACnB,SAAiB,EAAA;IAEjB,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACpD,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAC1D,IAAA,SAAS,IAAIA,iBAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC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