@taiga-ui/cdk 2.55.0 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/control.d.ts +3 -0
- package/abstract/controller.d.ts +4 -7
- package/abstract/dialog.directive.d.ts +3 -0
- package/abstract/dialog.service.d.ts +3 -0
- package/abstract/interactive.d.ts +6 -19
- package/abstract/multiple-control.d.ts +3 -0
- package/abstract/nullable-control.d.ts +3 -0
- package/abstract/package.json +2 -5
- package/abstract/portal-host.d.ts +3 -0
- package/abstract/portal-service.d.ts +3 -0
- package/abstract/taiga-ui-cdk-abstract.d.ts +1 -0
- package/abstract/theme-switcher.d.ts +3 -0
- package/bundles/taiga-ui-cdk-abstract.umd.js +550 -489
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +10 -8
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +8 -4
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +68 -284
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +421 -296
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +403 -270
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components.umd.js +11 -25
- package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +25 -28
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +393 -461
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +336 -260
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +407 -294
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +463 -345
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +102 -316
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +64 -282
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +384 -273
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +63 -280
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +61 -278
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +377 -267
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +66 -281
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +51 -267
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +50 -268
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +54 -271
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +380 -271
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +54 -274
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +54 -269
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +412 -286
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +67 -279
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +62 -281
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +55 -272
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +433 -313
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +397 -284
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +79 -293
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +51 -267
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +57 -273
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +53 -270
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +60 -273
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +384 -272
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +51 -267
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +51 -267
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +388 -274
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +54 -270
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +71 -125
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +14 -62
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +351 -308
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js +2 -2
- package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +25 -32
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +369 -260
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +369 -260
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes.umd.js +7 -11
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +595 -479
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +378 -301
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-types.umd.js +2 -2
- package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +14 -22
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +23 -52
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +64 -86
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +8 -26
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +13 -24
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +26 -33
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +8 -4
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +334 -254
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +19 -35
- package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk.umd.js +47 -65
- package/bundles/taiga-ui-cdk.umd.js.map +1 -1
- package/classes/assert.d.ts +1 -1
- package/classes/package.json +2 -5
- package/classes/taiga-ui-cdk-classes.d.ts +1 -0
- package/coercion/package.json +2 -5
- package/coercion/taiga-ui-cdk-coercion.d.ts +1 -0
- package/components/alert-host/alert-host.component.d.ts +3 -0
- package/components/alert-host/alert-host.module.d.ts +7 -0
- package/components/alert-host/package.json +2 -5
- package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +1 -0
- package/components/dialog-host/dialog-host.component.d.ts +3 -6
- package/components/dialog-host/dialog-host.module.d.ts +10 -0
- package/components/dialog-host/package.json +2 -5
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +1 -0
- package/components/dropdown-host/dropdown-host.component.d.ts +3 -0
- package/components/dropdown-host/dropdown-host.module.d.ts +5 -0
- package/components/dropdown-host/dropdown-portal.service.d.ts +9 -0
- package/components/dropdown-host/index.d.ts +1 -0
- package/components/dropdown-host/package.json +2 -5
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +1 -0
- package/components/index.d.ts +0 -1
- package/components/package.json +2 -5
- package/components/taiga-ui-cdk-components.d.ts +1 -0
- package/constants/empty.d.ts +0 -3
- package/constants/package.json +2 -5
- package/constants/taiga-ui-cdk-constants.d.ts +1 -0
- package/date-time/date-fillers.d.ts +0 -9
- package/date-time/day-range.d.ts +5 -7
- package/date-time/day.d.ts +0 -16
- package/date-time/month-range.d.ts +0 -4
- package/date-time/month.d.ts +0 -17
- package/date-time/package.json +2 -5
- package/date-time/taiga-ui-cdk-date-time.d.ts +1 -0
- package/date-time/year.d.ts +0 -16
- package/decorators/package.json +2 -5
- package/decorators/taiga-ui-cdk-decorators.d.ts +1 -0
- package/directives/active-zone/active-zone.directive.d.ts +3 -0
- package/directives/active-zone/active-zone.module.d.ts +5 -0
- package/directives/active-zone/package.json +2 -5
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +1 -0
- package/directives/auto-focus/autofocus.directive.d.ts +3 -0
- package/directives/auto-focus/autofocus.module.d.ts +5 -0
- package/directives/auto-focus/autofocus.options.d.ts +3 -2
- package/directives/auto-focus/handlers/abstract.handler.d.ts +3 -0
- package/directives/auto-focus/handlers/default.handler.d.ts +3 -0
- package/directives/auto-focus/handlers/ios.handler.d.ts +3 -0
- package/directives/auto-focus/package.json +2 -5
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +1 -0
- package/directives/autofilled/autofilled-style.component.d.ts +3 -0
- package/directives/autofilled/autofilled.directive.d.ts +3 -0
- package/directives/autofilled/autofilled.module.d.ts +6 -0
- package/directives/autofilled/package.json +2 -5
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +1 -0
- package/directives/checked/checked.directive.d.ts +3 -0
- package/directives/checked/checked.module.d.ts +5 -0
- package/directives/checked/package.json +2 -5
- package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +1 -0
- package/directives/copy-processor/copy-processor.directive.d.ts +3 -0
- package/directives/copy-processor/copy-processor.module.d.ts +5 -0
- package/directives/copy-processor/package.json +2 -5
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +1 -0
- package/directives/drag/drag.directive.d.ts +3 -0
- package/directives/drag/drag.module.d.ts +5 -0
- package/directives/drag/package.json +2 -5
- package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +1 -0
- package/directives/droppable/droppable.directive.d.ts +3 -0
- package/directives/droppable/droppable.module.d.ts +5 -0
- package/directives/droppable/package.json +2 -5
- package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +1 -0
- package/directives/element/element.directive.d.ts +3 -0
- package/directives/element/element.module.d.ts +5 -0
- package/directives/element/package.json +2 -5
- package/directives/element/taiga-ui-cdk-directives-element.d.ts +1 -0
- package/directives/focus-trap/focus-trap.directive.d.ts +3 -0
- package/directives/focus-trap/focus-trap.module.d.ts +5 -0
- package/directives/focus-trap/package.json +2 -5
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +1 -0
- package/directives/focus-visible/focus-visible.directive.d.ts +3 -0
- package/directives/focus-visible/focus-visible.module.d.ts +5 -0
- package/directives/focus-visible/package.json +2 -5
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +1 -0
- package/directives/focusable/focusable.directive.d.ts +3 -0
- package/directives/focusable/focusable.module.d.ts +5 -0
- package/directives/focusable/package.json +2 -5
- package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +1 -0
- package/directives/focused/focused.directive.d.ts +3 -0
- package/directives/focused/focused.module.d.ts +5 -0
- package/directives/focused/package.json +2 -5
- package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +1 -0
- package/directives/for/for.directive.d.ts +3 -0
- package/directives/for/for.module.d.ts +5 -0
- package/directives/for/package.json +2 -5
- package/directives/for/taiga-ui-cdk-directives-for.d.ts +1 -0
- package/directives/for-async/for-async.directive.d.ts +3 -0
- package/directives/for-async/for-async.module.d.ts +5 -0
- package/directives/for-async/package.json +2 -5
- package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +1 -0
- package/directives/high-dpi/high-dpi.directive.d.ts +3 -0
- package/directives/high-dpi/high-dpi.module.d.ts +5 -0
- package/directives/high-dpi/package.json +2 -5
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +1 -0
- package/directives/hovered/hovered.directive.d.ts +6 -5
- package/directives/hovered/hovered.module.d.ts +5 -0
- package/directives/hovered/hovered.service.d.ts +11 -0
- package/directives/hovered/index.d.ts +1 -0
- package/directives/hovered/package.json +2 -5
- package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/input-mode/input-mode.directive.d.ts +5 -2
- package/directives/input-mode/input-mode.module.d.ts +5 -0
- package/directives/input-mode/package.json +2 -5
- package/directives/input-mode/taiga-ui-cdk-directives-input-mode.d.ts +1 -0
- package/directives/item/item.directive.d.ts +4 -2
- package/directives/item/item.module.d.ts +5 -0
- package/directives/item/package.json +2 -5
- package/directives/item/taiga-ui-cdk-directives-item.d.ts +1 -0
- package/directives/let/let.directive.d.ts +3 -0
- package/directives/let/let.module.d.ts +5 -0
- package/directives/let/package.json +2 -5
- package/directives/let/taiga-ui-cdk-directives-let.d.ts +1 -0
- package/directives/media/media.directive.d.ts +3 -0
- package/directives/media/media.module.d.ts +5 -0
- package/directives/media/package.json +2 -5
- package/directives/media/taiga-ui-cdk-directives-media.d.ts +1 -0
- package/directives/obscured/obscured.directive.d.ts +3 -0
- package/directives/obscured/obscured.module.d.ts +5 -0
- package/directives/obscured/package.json +2 -5
- package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +1 -0
- package/directives/overscroll/overscroll.directive.d.ts +5 -2
- package/directives/overscroll/overscroll.module.d.ts +5 -0
- package/directives/overscroll/package.json +2 -5
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +1 -0
- package/directives/package.json +2 -5
- package/directives/pan/package.json +2 -5
- package/directives/pan/pan.directive.d.ts +3 -0
- package/directives/pan/pan.module.d.ts +5 -0
- package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +1 -0
- package/directives/portal/package.json +2 -5
- package/directives/portal/portal.directive.d.ts +5 -2
- package/directives/portal/portal.module.d.ts +5 -0
- package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +1 -0
- package/directives/pressed/package.json +2 -5
- package/directives/pressed/pressed.directive.d.ts +3 -0
- package/directives/pressed/pressed.module.d.ts +5 -0
- package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +1 -0
- package/directives/prevent-default/package.json +2 -5
- package/directives/prevent-default/prevent-default.directive.d.ts +3 -0
- package/directives/prevent-default/prevent-default.module.d.ts +5 -0
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +1 -0
- package/directives/repeat-times/package.json +2 -5
- package/directives/repeat-times/repeat-times.directive.d.ts +3 -0
- package/directives/repeat-times/repeat-times.module.d.ts +5 -0
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +1 -0
- package/directives/resize/package.json +2 -5
- package/directives/resize/resize.directive.d.ts +3 -1
- package/directives/resize/resize.module.d.ts +5 -0
- package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +1 -0
- package/directives/swipe/package.json +2 -5
- package/directives/swipe/swipe.directive.d.ts +3 -0
- package/directives/swipe/swipe.module.d.ts +5 -0
- package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +1 -0
- package/directives/taiga-ui-cdk-directives.d.ts +1 -0
- package/directives/validator/package.json +2 -5
- package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +1 -0
- package/directives/validator/validator.directive.d.ts +3 -0
- package/directives/validator/validator.module.d.ts +5 -0
- package/directives/zoom/package.json +2 -5
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +1 -0
- package/directives/zoom/zoom.directive.d.ts +3 -0
- package/directives/zoom/zoom.module.d.ts +5 -0
- package/enums/autocomplete.d.ts +0 -10
- package/enums/index.d.ts +0 -3
- package/enums/package.json +2 -5
- package/enums/taiga-ui-cdk-enums.d.ts +1 -0
- package/esm2015/abstract/control.js +23 -21
- package/esm2015/abstract/controller.js +9 -8
- package/esm2015/abstract/dialog.directive.js +19 -16
- package/esm2015/abstract/dialog.service.js +13 -12
- package/esm2015/abstract/index.js +1 -1
- package/esm2015/abstract/interactive.js +43 -85
- package/esm2015/abstract/multiple-control.js +9 -8
- package/esm2015/abstract/nullable-control.js +9 -8
- package/esm2015/abstract/portal-host.js +21 -20
- package/esm2015/abstract/portal-service.js +9 -8
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +1 -1
- package/esm2015/abstract/theme-switcher.js +13 -14
- package/esm2015/classes/assert.js +3 -5
- package/esm2015/classes/index.js +1 -1
- package/esm2015/classes/taiga-ui-cdk-classes.js +1 -1
- package/esm2015/classes/validation-error.js +1 -1
- package/esm2015/coercion/coerce-boolean-property.js +2 -2
- package/esm2015/coercion/index.js +1 -1
- package/esm2015/coercion/taiga-ui-cdk-coercion.js +1 -1
- package/esm2015/components/alert-host/alert-host.component.js +25 -21
- package/esm2015/components/alert-host/alert-host.module.js +15 -12
- package/esm2015/components/alert-host/index.js +1 -1
- package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +1 -1
- package/esm2015/components/dialog-host/dialog-host.component.js +40 -31
- package/esm2015/components/dialog-host/dialog-host.module.js +26 -13
- package/esm2015/components/dialog-host/index.js +1 -1
- package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +1 -1
- package/esm2015/components/dropdown-host/dropdown-host.component.js +24 -18
- package/esm2015/components/dropdown-host/dropdown-host.module.js +14 -11
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +17 -0
- package/esm2015/components/dropdown-host/index.js +2 -1
- package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +1 -1
- package/esm2015/components/index.js +1 -2
- package/esm2015/components/taiga-ui-cdk-components.js +1 -1
- package/esm2015/constants/always-false-handler.js +1 -1
- package/esm2015/constants/always-true-handler.js +1 -1
- package/esm2015/constants/browser.js +1 -1
- package/esm2015/constants/empty.js +1 -3
- package/esm2015/constants/index.js +1 -1
- package/esm2015/constants/matcher.js +1 -1
- package/esm2015/constants/parent-animation.js +5 -5
- package/esm2015/constants/polling-time.js +1 -1
- package/esm2015/constants/stringify.js +1 -1
- package/esm2015/constants/svg-node-filter.js +2 -2
- package/esm2015/constants/taiga-ui-cdk-constants.js +1 -1
- package/esm2015/constants/unicode-chars.js +11 -11
- package/esm2015/date-time/date-fillers.js +1 -17
- package/esm2015/date-time/date-format.js +3 -3
- package/esm2015/date-time/date-separator.js +3 -3
- package/esm2015/date-time/date-time.js +1 -1
- package/esm2015/date-time/day-range.js +6 -16
- package/esm2015/date-time/day.js +23 -57
- package/esm2015/date-time/days.const.js +1 -1
- package/esm2015/date-time/index.js +1 -1
- package/esm2015/date-time/month-range.js +1 -7
- package/esm2015/date-time/month.js +7 -35
- package/esm2015/date-time/taiga-ui-cdk-date-time.js +1 -1
- package/esm2015/date-time/time.js +13 -14
- package/esm2015/date-time/year.js +6 -34
- package/esm2015/decorators/default-prop.js +1 -1
- package/esm2015/decorators/index.js +1 -1
- package/esm2015/decorators/pure.js +2 -2
- package/esm2015/decorators/required-setter.js +1 -1
- package/esm2015/decorators/taiga-ui-cdk-decorators.js +1 -1
- package/esm2015/directives/active-zone/active-zone.directive.js +37 -30
- package/esm2015/directives/active-zone/active-zone.module.js +14 -11
- package/esm2015/directives/active-zone/index.js +1 -1
- package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +1 -1
- package/esm2015/directives/auto-focus/autofocus.directive.js +18 -18
- package/esm2015/directives/auto-focus/autofocus.module.js +14 -11
- package/esm2015/directives/auto-focus/autofocus.options.js +5 -10
- package/esm2015/directives/auto-focus/handlers/abstract.handler.js +11 -14
- package/esm2015/directives/auto-focus/handlers/default.handler.js +25 -20
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +45 -39
- package/esm2015/directives/auto-focus/index.js +1 -1
- package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +1 -1
- package/esm2015/directives/autofilled/autofilled-style.component.js +14 -12
- package/esm2015/directives/autofilled/autofilled.directive.js +26 -25
- package/esm2015/directives/autofilled/autofilled.module.js +15 -12
- package/esm2015/directives/autofilled/index.js +1 -1
- package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +1 -1
- package/esm2015/directives/checked/checked.directive.js +29 -29
- package/esm2015/directives/checked/checked.module.js +14 -11
- package/esm2015/directives/checked/index.js +1 -1
- package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +1 -1
- package/esm2015/directives/copy-processor/copy-processor.directive.js +22 -19
- package/esm2015/directives/copy-processor/copy-processor.module.js +14 -11
- package/esm2015/directives/copy-processor/index.js +1 -1
- package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +1 -1
- package/esm2015/directives/drag/drag.directive.js +24 -23
- package/esm2015/directives/drag/drag.module.js +14 -11
- package/esm2015/directives/drag/index.js +1 -1
- package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +1 -1
- package/esm2015/directives/droppable/droppable.directive.js +28 -27
- package/esm2015/directives/droppable/droppable.module.js +14 -11
- package/esm2015/directives/droppable/index.js +1 -1
- package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +1 -1
- package/esm2015/directives/element/element.directive.js +16 -15
- package/esm2015/directives/element/element.module.js +14 -11
- package/esm2015/directives/element/index.js +1 -1
- package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +1 -1
- package/esm2015/directives/focus-trap/focus-trap.directive.js +35 -32
- package/esm2015/directives/focus-trap/focus-trap.module.js +14 -11
- package/esm2015/directives/focus-trap/index.js +1 -1
- package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +1 -1
- package/esm2015/directives/focus-visible/focus-visible.directive.js +18 -17
- package/esm2015/directives/focus-visible/focus-visible.module.js +14 -11
- package/esm2015/directives/focus-visible/index.js +1 -1
- package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +1 -1
- package/esm2015/directives/focusable/focusable.directive.js +18 -16
- package/esm2015/directives/focusable/focusable.module.js +14 -11
- package/esm2015/directives/focusable/index.js +1 -1
- package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +1 -1
- package/esm2015/directives/focused/focused.directive.js +22 -21
- package/esm2015/directives/focused/focused.module.js +14 -11
- package/esm2015/directives/focused/index.js +1 -1
- package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +1 -1
- package/esm2015/directives/for/for.directive.js +22 -24
- package/esm2015/directives/for/for.module.js +14 -11
- package/esm2015/directives/for/index.js +1 -1
- package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +1 -1
- package/esm2015/directives/for-async/for-async.directive.js +21 -21
- package/esm2015/directives/for-async/for-async.module.js +14 -11
- package/esm2015/directives/for-async/index.js +1 -1
- package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +1 -1
- package/esm2015/directives/high-dpi/high-dpi.directive.js +21 -18
- package/esm2015/directives/high-dpi/high-dpi.module.js +14 -11
- package/esm2015/directives/high-dpi/index.js +1 -1
- package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +1 -1
- package/esm2015/directives/hovered/hovered.directive.js +21 -40
- package/esm2015/directives/hovered/hovered.module.js +14 -11
- package/esm2015/directives/hovered/hovered.service.js +36 -0
- package/esm2015/directives/hovered/index.js +2 -1
- package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +1 -1
- package/esm2015/directives/index.js +2 -1
- package/esm2015/directives/input-mode/index.js +1 -1
- package/esm2015/directives/input-mode/input-mode.directive.js +33 -27
- package/esm2015/directives/input-mode/input-mode.module.js +14 -11
- package/esm2015/directives/input-mode/taiga-ui-cdk-directives-input-mode.js +1 -1
- package/esm2015/directives/item/index.js +1 -1
- package/esm2015/directives/item/item.directive.js +13 -12
- package/esm2015/directives/item/item.module.js +14 -11
- package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +1 -1
- package/esm2015/directives/let/index.js +1 -1
- package/esm2015/directives/let/let-context.js +1 -1
- package/esm2015/directives/let/let.directive.js +20 -19
- package/esm2015/directives/let/let.module.js +14 -11
- package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +1 -1
- package/esm2015/directives/media/index.js +1 -1
- package/esm2015/directives/media/media.directive.js +59 -47
- package/esm2015/directives/media/media.module.js +14 -11
- package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +1 -1
- package/esm2015/directives/obscured/index.js +1 -1
- package/esm2015/directives/obscured/obscured.directive.js +30 -23
- package/esm2015/directives/obscured/obscured.module.js +14 -11
- package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +1 -1
- package/esm2015/directives/overscroll/index.js +1 -1
- package/esm2015/directives/overscroll/overscroll.directive.js +37 -34
- package/esm2015/directives/overscroll/overscroll.module.js +14 -11
- package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +1 -1
- package/esm2015/directives/pan/index.js +1 -1
- package/esm2015/directives/pan/pan.directive.js +18 -17
- package/esm2015/directives/pan/pan.module.js +14 -11
- package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +1 -1
- package/esm2015/directives/portal/index.js +1 -1
- package/esm2015/directives/portal/portal.directive.js +23 -21
- package/esm2015/directives/portal/portal.module.js +14 -11
- package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +1 -1
- package/esm2015/directives/pressed/index.js +1 -1
- package/esm2015/directives/pressed/pressed.directive.js +20 -19
- package/esm2015/directives/pressed/pressed.module.js +14 -11
- package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +1 -1
- package/esm2015/directives/prevent-default/index.js +1 -1
- package/esm2015/directives/prevent-default/prevent-default.directive.js +27 -22
- package/esm2015/directives/prevent-default/prevent-default.module.js +14 -11
- package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +1 -1
- package/esm2015/directives/repeat-times/index.js +1 -1
- package/esm2015/directives/repeat-times/repeat-times.directive.js +21 -17
- package/esm2015/directives/repeat-times/repeat-times.module.js +14 -11
- package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +1 -1
- package/esm2015/directives/resize/index.js +1 -1
- package/esm2015/directives/resize/resize.directive.js +18 -17
- package/esm2015/directives/resize/resize.module.js +14 -11
- package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +1 -1
- package/esm2015/directives/swipe/index.js +1 -1
- package/esm2015/directives/swipe/swipe.directive.js +18 -17
- package/esm2015/directives/swipe/swipe.module.js +14 -11
- package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +1 -1
- package/esm2015/directives/taiga-ui-cdk-directives.js +1 -1
- package/esm2015/directives/validator/index.js +1 -1
- package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +1 -1
- package/esm2015/directives/validator/validator.directive.js +27 -18
- package/esm2015/directives/validator/validator.module.js +14 -11
- package/esm2015/directives/zoom/index.js +1 -1
- package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +1 -1
- package/esm2015/directives/zoom/zoom.directive.js +21 -20
- package/esm2015/directives/zoom/zoom.module.js +14 -11
- package/esm2015/enums/autocomplete.js +1 -11
- package/esm2015/enums/day-of-week.js +1 -1
- package/esm2015/enums/index.js +1 -4
- package/esm2015/enums/month-number.js +1 -1
- package/esm2015/enums/taiga-ui-cdk-enums.js +1 -1
- package/esm2015/exceptions/computed-document.exception.js +2 -2
- package/esm2015/exceptions/document-selection.exception.js +2 -2
- package/esm2015/exceptions/index.js +1 -1
- package/esm2015/exceptions/invalid-day.exception.js +2 -9
- package/esm2015/exceptions/invalid-month.exception.js +2 -9
- package/esm2015/exceptions/invalid-year.exception.js +2 -9
- package/esm2015/exceptions/no-host.exception.js +2 -2
- package/esm2015/exceptions/owner-document.exception.js +2 -2
- package/esm2015/exceptions/pure.exception.js +2 -2
- package/esm2015/exceptions/table-sort-key.exception.js +2 -2
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +1 -1
- package/esm2015/exceptions/ts-parser.exception.js +2 -2
- package/esm2015/exceptions/value-changes.exception.js +2 -2
- package/esm2015/exceptions/value-present.exception.js +2 -2
- package/esm2015/exceptions/xml-parsing.exception.js +2 -2
- package/esm2015/index.js +3 -1
- package/esm2015/interfaces/alert-context.js +2 -1
- package/esm2015/interfaces/aria-dialog-context.js +2 -1
- package/esm2015/interfaces/base-dialog-context.js +2 -1
- package/esm2015/interfaces/base-dialog.js +2 -1
- package/esm2015/interfaces/context-with-implicit.js +2 -1
- package/esm2015/interfaces/control-value-transformer.js +2 -1
- package/esm2015/interfaces/day-like.js +2 -1
- package/esm2015/interfaces/focusable-element-accessor.js +2 -1
- package/esm2015/interfaces/index.js +14 -1
- package/esm2015/interfaces/month-like.js +2 -1
- package/esm2015/interfaces/swipe.js +2 -1
- package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +2 -1
- package/esm2015/interfaces/time-like.js +2 -1
- package/esm2015/interfaces/year-like.js +2 -1
- package/esm2015/interfaces/zoom.js +2 -1
- package/esm2015/observables/drag-and-drop-from.js +2 -2
- package/esm2015/observables/focus-visible-observable.js +7 -7
- package/esm2015/observables/index.js +1 -1
- package/esm2015/observables/is-alive.js +1 -1
- package/esm2015/observables/items-query-list-observable.js +1 -1
- package/esm2015/observables/mouse-drag-finish-from.js +2 -2
- package/esm2015/observables/must-be-present.js +1 -1
- package/esm2015/observables/pressed-observable.js +2 -2
- package/esm2015/observables/prevent-default.js +1 -1
- package/esm2015/observables/replay-control-value-changes.js +2 -3
- package/esm2015/observables/stop-propagation.js +1 -1
- package/esm2015/observables/taiga-ui-cdk-observables.js +1 -1
- package/esm2015/observables/typed-from-event.js +1 -1
- package/esm2015/observables/watch.js +1 -1
- package/esm2015/observables/zone-free.js +1 -1
- package/esm2015/pipes/filter/filter.module.js +14 -11
- package/esm2015/pipes/filter/filter.pipe.js +10 -8
- package/esm2015/pipes/filter/index.js +1 -1
- package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +1 -1
- package/esm2015/pipes/index.js +1 -1
- package/esm2015/pipes/mapper/index.js +1 -1
- package/esm2015/pipes/mapper/mapper.module.js +14 -11
- package/esm2015/pipes/mapper/mapper.pipe.js +10 -8
- package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +1 -1
- package/esm2015/pipes/taiga-ui-cdk-pipes.js +1 -1
- package/esm2015/services/destroy.service.js +9 -8
- package/esm2015/services/directive-styles.service.js +27 -27
- package/esm2015/services/focus-visible.service.js +19 -16
- package/esm2015/services/id.service.js +13 -14
- package/esm2015/services/index.js +1 -2
- package/esm2015/services/obscured.service.js +32 -24
- package/esm2015/services/pan.service.js +19 -18
- package/esm2015/services/parents-scroll.service.js +16 -15
- package/esm2015/services/resize.service.js +28 -23
- package/esm2015/services/scroll.service.js +22 -22
- package/esm2015/services/static-request.service.js +12 -12
- package/esm2015/services/swipe.service.js +19 -17
- package/esm2015/services/taiga-ui-cdk-services.js +1 -1
- package/esm2015/services/zoom.service.js +17 -16
- package/esm2015/taiga-ui-cdk.js +1 -1
- package/esm2015/tokens/active-element.js +9 -9
- package/esm2015/tokens/alerts.js +2 -2
- package/esm2015/tokens/default-renderer.js +2 -2
- package/esm2015/tokens/dialogs.js +2 -2
- package/esm2015/tokens/focusable-item-accessor.js +2 -2
- package/esm2015/tokens/index.js +1 -1
- package/esm2015/tokens/is-android.js +2 -2
- package/esm2015/tokens/is-apple.js +2 -2
- package/esm2015/tokens/is-chromium.js +2 -2
- package/esm2015/tokens/is-cypress.js +2 -2
- package/esm2015/tokens/is-firefox.js +3 -3
- package/esm2015/tokens/is-ios.js +2 -2
- package/esm2015/tokens/is-mobile.js +2 -2
- package/esm2015/tokens/is-webkit.js +2 -2
- package/esm2015/tokens/removed-element.js +3 -4
- package/esm2015/tokens/sanitizer.js +2 -2
- package/esm2015/tokens/swipe-options.js +2 -2
- package/esm2015/tokens/taiga-ui-cdk-tokens.js +1 -1
- package/esm2015/tokens/take-only-trusted-events.js +2 -2
- package/esm2015/tokens/touch-supported.js +3 -3
- package/esm2015/tokens/window-height.js +3 -3
- package/esm2015/tokens/zoom-options.js +2 -2
- package/esm2015/types/date-mode.js +2 -1
- package/esm2015/types/dialog.js +2 -1
- package/esm2015/types/event-with.js +2 -1
- package/esm2015/types/handler.js +2 -1
- package/esm2015/types/index.js +11 -1
- package/esm2015/types/input-mode.js +2 -1
- package/esm2015/types/input-type.js +2 -1
- package/esm2015/types/mapper.js +2 -1
- package/esm2015/types/matcher.js +2 -1
- package/esm2015/types/overscroll-mode.js +2 -1
- package/esm2015/types/taiga-ui-cdk-types.js +2 -1
- package/esm2015/types/time-mode.js +2 -1
- package/esm2015/utils/browser/index.js +1 -1
- package/esm2015/utils/browser/is-edge-older-than.js +3 -8
- package/esm2015/utils/browser/is-edge.js +2 -2
- package/esm2015/utils/browser/is-firefox.js +2 -2
- package/esm2015/utils/browser/is-ie.js +3 -8
- package/esm2015/utils/browser/is-safari.js +2 -2
- package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +1 -1
- package/esm2015/utils/dom/can-scroll.js +1 -1
- package/esm2015/utils/dom/contains-or-after.js +1 -1
- package/esm2015/utils/dom/get-actual-target.js +2 -2
- package/esm2015/utils/dom/get-clipboard-data-text.js +4 -4
- package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -2
- package/esm2015/utils/dom/get-element-obscurers.js +1 -1
- package/esm2015/utils/dom/get-element-offset.js +2 -2
- package/esm2015/utils/dom/get-scroll-parent.js +1 -1
- package/esm2015/utils/dom/get-selected-text.js +1 -1
- package/esm2015/utils/dom/index.js +1 -3
- package/esm2015/utils/dom/is-current-target.js +1 -1
- package/esm2015/utils/dom/is-form-field.js +4 -4
- package/esm2015/utils/dom/is-inside-iframe.js +1 -1
- package/esm2015/utils/dom/is-node-in.js +4 -5
- package/esm2015/utils/dom/point-to-client-rect.js +1 -1
- package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +1 -1
- package/esm2015/utils/focus/blur-native-focused.js +4 -5
- package/esm2015/utils/focus/get-closest-keyboard-focusable.js +7 -13
- package/esm2015/utils/focus/get-native-focused.js +2 -4
- package/esm2015/utils/focus/index.js +1 -1
- package/esm2015/utils/focus/is-native-focused-in.js +4 -6
- package/esm2015/utils/focus/is-native-focused.js +4 -6
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +15 -18
- package/esm2015/utils/focus/is-native-mouse-focusable.js +6 -7
- package/esm2015/utils/focus/move-focus.js +4 -6
- package/esm2015/utils/focus/set-native-focused.js +1 -1
- package/esm2015/utils/focus/set-native-mouse-focused.js +5 -5
- package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +1 -1
- package/esm2015/utils/format/index.js +1 -2
- package/esm2015/utils/format/px.js +3 -5
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +1 -1
- package/esm2015/utils/index.js +1 -1
- package/esm2015/utils/math/clamp.js +1 -1
- package/esm2015/utils/math/in-range.js +2 -12
- package/esm2015/utils/math/index.js +1 -1
- package/esm2015/utils/math/normalize-to-int-number.js +2 -5
- package/esm2015/utils/math/quantize.js +1 -1
- package/esm2015/utils/math/round.js +5 -5
- package/esm2015/utils/math/sum.js +1 -1
- package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +1 -1
- package/esm2015/utils/math/to-int.js +1 -1
- package/esm2015/utils/math/to-radians.js +1 -1
- package/esm2015/utils/miscellaneous/distance-between-touches.js +1 -1
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
- package/esm2015/utils/miscellaneous/flat-length.js +1 -1
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +1 -1
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +3 -3
- package/esm2015/utils/miscellaneous/identity.js +1 -1
- package/esm2015/utils/miscellaneous/index.js +2 -2
- package/esm2015/utils/miscellaneous/is-element-editable.js +1 -1
- package/esm2015/utils/miscellaneous/is-number.js +2 -2
- package/esm2015/utils/miscellaneous/is-present.js +1 -1
- package/esm2015/utils/miscellaneous/is-string.js +4 -0
- package/esm2015/utils/miscellaneous/mark-control-as-touched-and-validate.js +1 -1
- package/esm2015/utils/miscellaneous/nullable-same.js +2 -5
- package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +1 -1
- package/esm2015/utils/miscellaneous/uniq-by.js +1 -1
- package/esm2015/utils/os/index.js +1 -1
- package/esm2015/utils/os/is-apple-platform.js +2 -2
- package/esm2015/utils/os/is-apple.js +1 -1
- package/esm2015/utils/os/is-ios.js +1 -1
- package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +1 -1
- package/esm2015/utils/svg/index.js +1 -1
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -2
- package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +1 -1
- package/esm2015/utils/taiga-ui-cdk-utils.js +1 -1
- package/exceptions/invalid-day.exception.d.ts +1 -7
- package/exceptions/invalid-month.exception.d.ts +1 -7
- package/exceptions/invalid-year.exception.d.ts +1 -7
- package/exceptions/package.json +2 -5
- package/exceptions/taiga-ui-cdk-exceptions.d.ts +1 -0
- package/fesm2015/taiga-ui-cdk-abstract.js +147 -175
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +3 -5
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +38 -29
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +65 -41
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +51 -27
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components.js +0 -1
- package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +16 -18
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +50 -169
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +48 -36
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +109 -98
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +51 -42
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +41 -36
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +34 -26
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +36 -30
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +40 -34
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +28 -22
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +46 -38
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +30 -24
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +30 -23
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +34 -28
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +32 -27
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +33 -30
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +33 -25
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +60 -41
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js +45 -34
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +24 -18
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +32 -26
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +71 -54
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +42 -30
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +49 -41
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +30 -24
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +34 -27
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +32 -26
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +39 -29
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +33 -24
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +30 -24
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +30 -24
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +39 -25
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +33 -27
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives.js +1 -0
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +1 -53
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +14 -35
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +11 -12
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +21 -14
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +21 -14
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +213 -200
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +31 -32
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +8 -18
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +13 -43
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +55 -73
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +3 -22
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +7 -20
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +19 -29
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
- package/fesm2015/taiga-ui-cdk.js +2 -0
- package/fesm2015/taiga-ui-cdk.js.map +1 -1
- package/interfaces/package.json +2 -5
- package/interfaces/taiga-ui-cdk-interfaces.d.ts +1 -0
- package/observables/package.json +2 -5
- package/observables/replay-control-value-changes.d.ts +1 -2
- package/observables/taiga-ui-cdk-observables.d.ts +1 -0
- package/package.json +9 -13
- package/pipes/filter/filter.module.d.ts +5 -0
- package/pipes/filter/filter.pipe.d.ts +3 -0
- package/pipes/filter/package.json +2 -5
- package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +1 -0
- package/pipes/mapper/mapper.module.d.ts +5 -0
- package/pipes/mapper/mapper.pipe.d.ts +3 -0
- package/pipes/mapper/package.json +2 -5
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +1 -0
- package/pipes/package.json +2 -5
- package/pipes/taiga-ui-cdk-pipes.d.ts +1 -0
- package/schematics/constants/taiga-styles.d.ts +3 -0
- package/schematics/constants/taiga-styles.js +6 -0
- package/schematics/ng-add/constants/modules.js +1 -0
- package/schematics/ng-add/constants/packages.js +1 -0
- package/schematics/ng-add/constants/versions.js +1 -0
- package/schematics/ng-add/index.js +1 -0
- package/schematics/ng-add/steps/add-taiga-icons.d.ts +1 -1
- package/schematics/ng-add/steps/add-taiga-icons.js +4 -3
- package/schematics/ng-add/steps/add-taiga-modules.js +1 -0
- package/schematics/ng-add/steps/add-taiga-styles.d.ts +0 -1
- package/schematics/ng-add/steps/add-taiga-styles.js +5 -18
- package/schematics/ng-add/steps/wrap-with-tui-root.js +1 -0
- package/schematics/ng-update/constants/consts.js +1 -0
- package/schematics/ng-update/constants/deprecated-functions.js +1 -0
- package/schematics/ng-update/constants/enums.js +12 -0
- package/schematics/ng-update/constants/modules.js +1 -0
- package/schematics/ng-update/constants/services.js +1 -0
- package/schematics/ng-update/constants/templates.js +89 -20
- package/schematics/ng-update/constants/tui-interactive-selectors.js +1 -0
- package/schematics/ng-update/constants/types.js +1 -0
- package/schematics/ng-update/constants/warnings.js +1 -0
- package/schematics/ng-update/index.d.ts +1 -1
- package/schematics/ng-update/index.js +27 -8
- package/schematics/ng-update/steps/migrate-date-time.js +1 -0
- package/schematics/ng-update/steps/migrate-polymorpheus.d.ts +8 -0
- package/schematics/ng-update/steps/migrate-polymorpheus.js +73 -0
- package/schematics/ng-update/steps/migrate-progress.js +1 -0
- package/schematics/ng-update/steps/migrate-sliders/index.js +1 -0
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.js +1 -0
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.js +1 -0
- package/schematics/ng-update/steps/migrate-templates.js +8 -17
- package/schematics/ng-update/steps/miscellaneous.js +11 -0
- package/schematics/ng-update/steps/remove-module.js +1 -0
- package/schematics/ng-update/steps/rename-types.js +1 -0
- package/schematics/ng-update/steps/replace-const.js +1 -0
- package/schematics/ng-update/steps/replace-deep-import.js +1 -0
- package/schematics/ng-update/steps/replace-enums.js +1 -0
- package/schematics/ng-update/steps/replace-functions.js +1 -0
- package/schematics/ng-update/steps/replace-services.js +1 -0
- package/schematics/ng-update/steps/show-warnings.js +7 -3
- package/schematics/utils/add-styles.d.ts +3 -0
- package/schematics/utils/add-styles.js +17 -0
- package/schematics/utils/add-unique-import.js +1 -0
- package/schematics/utils/angular/ng-component.js +1 -0
- package/schematics/utils/angular/ng-module.js +1 -0
- package/schematics/utils/colored-log.js +1 -0
- package/schematics/utils/create-angular-json.d.ts +3 -0
- package/schematics/utils/create-angular-json.js +29 -0
- package/schematics/utils/get-named-import-references.js +7 -3
- package/schematics/utils/get-project-target-options.js +1 -0
- package/schematics/utils/get-project.js +1 -0
- package/schematics/utils/import-manipulations.js +1 -0
- package/schematics/utils/insert-todo.js +1 -0
- package/schematics/utils/replace-tag.d.ts +3 -0
- package/schematics/utils/replace-tag.js +17 -0
- package/schematics/utils/templates/elements.d.ts +3 -2
- package/schematics/utils/templates/elements.js +13 -7
- package/schematics/utils/templates/get-component-templates.js +1 -0
- package/schematics/utils/templates/ng-component-input-manipulations.js +1 -0
- package/schematics/utils/templates/template-resource.js +1 -0
- package/services/destroy.service.d.ts +3 -0
- package/services/directive-styles.service.d.ts +3 -0
- package/services/focus-visible.service.d.ts +3 -0
- package/services/id.service.d.ts +3 -0
- package/services/index.d.ts +0 -1
- package/services/obscured.service.d.ts +3 -0
- package/services/package.json +2 -5
- package/services/pan.service.d.ts +3 -0
- package/services/parents-scroll.service.d.ts +3 -0
- package/services/resize.service.d.ts +4 -2
- package/services/scroll.service.d.ts +3 -0
- package/services/static-request.service.d.ts +3 -0
- package/services/swipe.service.d.ts +3 -0
- package/services/taiga-ui-cdk-services.d.ts +1 -0
- package/services/zoom.service.d.ts +3 -0
- package/taiga-ui-cdk.d.ts +1 -0
- package/tokens/package.json +2 -5
- package/tokens/taiga-ui-cdk-tokens.d.ts +1 -0
- package/types/input-mode.d.ts +1 -1
- package/types/input-type.d.ts +1 -1
- package/types/overscroll-mode.d.ts +1 -1
- package/types/package.json +2 -5
- package/types/taiga-ui-cdk-types.d.ts +1 -0
- package/utils/browser/is-edge-older-than.d.ts +1 -5
- package/utils/browser/is-ie.d.ts +1 -5
- package/utils/browser/package.json +2 -5
- package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +1 -0
- package/utils/dom/index.d.ts +0 -2
- package/utils/dom/package.json +2 -5
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +1 -0
- package/utils/focus/get-closest-keyboard-focusable.d.ts +1 -7
- package/utils/focus/get-native-focused.d.ts +1 -3
- package/utils/focus/is-native-focused-in.d.ts +1 -3
- package/utils/focus/is-native-focused.d.ts +1 -3
- package/utils/focus/is-native-keyboard-focusable.d.ts +1 -3
- package/utils/focus/is-native-mouse-focusable.d.ts +1 -3
- package/utils/focus/move-focus.d.ts +1 -3
- package/utils/focus/package.json +2 -5
- package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +1 -0
- package/utils/format/index.d.ts +0 -1
- package/utils/format/package.json +2 -5
- package/utils/format/px.d.ts +1 -3
- package/utils/format/taiga-ui-cdk-utils-format.d.ts +1 -0
- package/utils/math/in-range.d.ts +1 -10
- package/utils/math/normalize-to-int-number.d.ts +1 -3
- package/utils/math/package.json +2 -5
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +1 -0
- package/utils/miscellaneous/index.d.ts +1 -1
- package/utils/miscellaneous/is-string.d.ts +1 -0
- package/utils/miscellaneous/nullable-same.d.ts +1 -3
- package/utils/miscellaneous/package.json +2 -5
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +1 -0
- package/utils/os/package.json +2 -5
- package/utils/os/taiga-ui-cdk-utils-os.d.ts +1 -0
- package/utils/package.json +2 -5
- package/utils/svg/package.json +2 -5
- package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +1 -0
- package/utils/taiga-ui-cdk-utils.d.ts +1 -0
- package/abstract/taiga-ui-cdk-abstract.metadata.json +0 -1
- package/bundles/taiga-ui-cdk-abstract.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-classes.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-classes.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-coercion.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-coercion.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-components-alert-host.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js +0 -279
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +0 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-components.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-components.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-constants.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-constants.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-date-time.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-decorators.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-decorators.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-for-async.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-item.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-portal.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-directives.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-directives.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-enums.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-enums.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-exceptions.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-interfaces.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-observables.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-observables.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-pipes.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-pipes.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-services.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-services.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-types.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-types.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-browser.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-format.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-math.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-os.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils-svg.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk-utils.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-utils.umd.min.js.map +0 -1
- package/bundles/taiga-ui-cdk.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk.umd.min.js.map +0 -1
- package/classes/taiga-ui-cdk-classes.metadata.json +0 -1
- package/coercion/taiga-ui-cdk-coercion.metadata.json +0 -1
- package/components/alert-host/taiga-ui-cdk-components-alert-host.metadata.json +0 -1
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.metadata.json +0 -1
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.metadata.json +0 -1
- package/components/portal-host/index.d.ts +0 -1
- package/components/portal-host/package.json +0 -13
- package/components/portal-host/portal.service.d.ts +0 -7
- package/components/portal-host/taiga-ui-cdk-components-portal-host.d.ts +0 -4
- package/components/portal-host/taiga-ui-cdk-components-portal-host.metadata.json +0 -1
- package/components/taiga-ui-cdk-components.metadata.json +0 -1
- package/constants/taiga-ui-cdk-constants.metadata.json +0 -1
- package/date-time/taiga-ui-cdk-date-time.metadata.json +0 -1
- package/decorators/taiga-ui-cdk-decorators.metadata.json +0 -1
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +0 -1
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.metadata.json +0 -1
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.metadata.json +0 -1
- package/directives/checked/taiga-ui-cdk-directives-checked.metadata.json +0 -1
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.metadata.json +0 -1
- package/directives/drag/taiga-ui-cdk-directives-drag.metadata.json +0 -1
- package/directives/droppable/taiga-ui-cdk-directives-droppable.metadata.json +0 -1
- package/directives/element/taiga-ui-cdk-directives-element.metadata.json +0 -1
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.metadata.json +0 -1
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.metadata.json +0 -1
- package/directives/focusable/taiga-ui-cdk-directives-focusable.metadata.json +0 -1
- package/directives/focused/taiga-ui-cdk-directives-focused.metadata.json +0 -1
- package/directives/for/taiga-ui-cdk-directives-for.metadata.json +0 -1
- package/directives/for-async/taiga-ui-cdk-directives-for-async.metadata.json +0 -1
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.metadata.json +0 -1
- package/directives/hovered/taiga-ui-cdk-directives-hovered.metadata.json +0 -1
- package/directives/input-mode/taiga-ui-cdk-directives-input-mode.metadata.json +0 -1
- package/directives/item/taiga-ui-cdk-directives-item.metadata.json +0 -1
- package/directives/let/taiga-ui-cdk-directives-let.metadata.json +0 -1
- package/directives/media/taiga-ui-cdk-directives-media.metadata.json +0 -1
- package/directives/obscured/taiga-ui-cdk-directives-obscured.metadata.json +0 -1
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.metadata.json +0 -1
- package/directives/pan/taiga-ui-cdk-directives-pan.metadata.json +0 -1
- package/directives/portal/taiga-ui-cdk-directives-portal.metadata.json +0 -1
- package/directives/pressed/taiga-ui-cdk-directives-pressed.metadata.json +0 -1
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.metadata.json +0 -1
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.metadata.json +0 -1
- package/directives/resize/taiga-ui-cdk-directives-resize.metadata.json +0 -1
- package/directives/swipe/taiga-ui-cdk-directives-swipe.metadata.json +0 -1
- package/directives/taiga-ui-cdk-directives.metadata.json +0 -1
- package/directives/validator/taiga-ui-cdk-directives-validator.metadata.json +0 -1
- package/directives/zoom/taiga-ui-cdk-directives-zoom.metadata.json +0 -1
- package/enums/input-mode.d.ts +0 -13
- package/enums/input-type.d.ts +0 -10
- package/enums/overscroll-mode.d.ts +0 -13
- package/enums/taiga-ui-cdk-enums.metadata.json +0 -1
- package/esm2015/components/portal-host/index.js +0 -2
- package/esm2015/components/portal-host/portal.service.js +0 -18
- package/esm2015/components/portal-host/taiga-ui-cdk-components-portal-host.js +0 -5
- package/esm2015/enums/input-mode.js +0 -15
- package/esm2015/enums/input-type.js +0 -12
- package/esm2015/enums/overscroll-mode.js +0 -15
- package/esm2015/services/hovered.service.js +0 -34
- package/esm2015/utils/dom/custom-event.js +0 -10
- package/esm2015/utils/dom/get-closest-element.js +0 -20
- package/esm2015/utils/format/pad-start.js +0 -17
- package/esm2015/utils/miscellaneous/fallback-value.js +0 -12
- package/esm5/abstract/control.js +0 -247
- package/esm5/abstract/controller.js +0 -25
- package/esm5/abstract/dialog.directive.js +0 -44
- package/esm5/abstract/dialog.service.js +0 -39
- package/esm5/abstract/index.js +0 -11
- package/esm5/abstract/interactive.js +0 -172
- package/esm5/abstract/multiple-control.js +0 -21
- package/esm5/abstract/nullable-control.js +0 -18
- package/esm5/abstract/portal-host.js +0 -50
- package/esm5/abstract/portal-service.js +0 -42
- package/esm5/abstract/taiga-ui-cdk-abstract.js +0 -5
- package/esm5/abstract/theme-switcher.js +0 -55
- package/esm5/classes/assert.js +0 -19
- package/esm5/classes/index.js +0 -3
- package/esm5/classes/taiga-ui-cdk-classes.js +0 -5
- package/esm5/classes/validation-error.js +0 -10
- package/esm5/coercion/coerce-boolean-property.js +0 -10
- package/esm5/coercion/index.js +0 -2
- package/esm5/coercion/taiga-ui-cdk-coercion.js +0 -5
- package/esm5/components/alert-host/alert-host.component.js +0 -42
- package/esm5/components/alert-host/alert-host.module.js +0 -19
- package/esm5/components/alert-host/index.js +0 -3
- package/esm5/components/alert-host/taiga-ui-cdk-components-alert-host.js +0 -5
- package/esm5/components/dialog-host/dialog-host.component.js +0 -77
- package/esm5/components/dialog-host/dialog-host.module.js +0 -28
- package/esm5/components/dialog-host/index.js +0 -3
- package/esm5/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +0 -5
- package/esm5/components/dropdown-host/dropdown-host.component.js +0 -34
- package/esm5/components/dropdown-host/dropdown-host.module.js +0 -16
- package/esm5/components/dropdown-host/index.js +0 -3
- package/esm5/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +0 -5
- package/esm5/components/index.js +0 -5
- package/esm5/components/portal-host/index.js +0 -2
- package/esm5/components/portal-host/portal.service.js +0 -23
- package/esm5/components/portal-host/taiga-ui-cdk-components-portal-host.js +0 -5
- package/esm5/components/taiga-ui-cdk-components.js +0 -5
- package/esm5/constants/always-false-handler.js +0 -5
- package/esm5/constants/always-true-handler.js +0 -5
- package/esm5/constants/browser.js +0 -2
- package/esm5/constants/empty.js +0 -20
- package/esm5/constants/index.js +0 -11
- package/esm5/constants/matcher.js +0 -35
- package/esm5/constants/parent-animation.js +0 -8
- package/esm5/constants/polling-time.js +0 -2
- package/esm5/constants/stringify.js +0 -5
- package/esm5/constants/svg-node-filter.js +0 -8
- package/esm5/constants/taiga-ui-cdk-constants.js +0 -5
- package/esm5/constants/unicode-chars.js +0 -56
- package/esm5/date-time/date-fillers.js +0 -31
- package/esm5/date-time/date-format.js +0 -5
- package/esm5/date-time/date-separator.js +0 -6
- package/esm5/date-time/date-time.js +0 -19
- package/esm5/date-time/day-range.js +0 -111
- package/esm5/date-time/day.js +0 -350
- package/esm5/date-time/days.const.js +0 -5
- package/esm5/date-time/index.js +0 -12
- package/esm5/date-time/month-range.js +0 -43
- package/esm5/date-time/month.js +0 -209
- package/esm5/date-time/taiga-ui-cdk-date-time.js +0 -5
- package/esm5/date-time/time.js +0 -134
- package/esm5/date-time/year.js +0 -168
- package/esm5/decorators/default-prop.js +0 -62
- package/esm5/decorators/index.js +0 -4
- package/esm5/decorators/pure.js +0 -55
- package/esm5/decorators/required-setter.js +0 -39
- package/esm5/decorators/taiga-ui-cdk-decorators.js +0 -5
- package/esm5/directives/active-zone/active-zone.directive.js +0 -92
- package/esm5/directives/active-zone/active-zone.module.js +0 -16
- package/esm5/directives/active-zone/index.js +0 -3
- package/esm5/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +0 -5
- package/esm5/directives/auto-focus/autofocus.directive.js +0 -31
- package/esm5/directives/auto-focus/autofocus.module.js +0 -16
- package/esm5/directives/auto-focus/autofocus.options.js +0 -29
- package/esm5/directives/auto-focus/handlers/abstract.handler.js +0 -34
- package/esm5/directives/auto-focus/handlers/default.handler.js +0 -43
- package/esm5/directives/auto-focus/handlers/ios.handler.js +0 -137
- package/esm5/directives/auto-focus/index.js +0 -7
- package/esm5/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +0 -5
- package/esm5/directives/autofilled/autofilled-style.component.js +0 -16
- package/esm5/directives/autofilled/autofilled.directive.js +0 -42
- package/esm5/directives/autofilled/autofilled.module.js +0 -18
- package/esm5/directives/autofilled/index.js +0 -4
- package/esm5/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +0 -5
- package/esm5/directives/checked/checked.directive.js +0 -49
- package/esm5/directives/checked/checked.module.js +0 -16
- package/esm5/directives/checked/index.js +0 -3
- package/esm5/directives/checked/taiga-ui-cdk-directives-checked.js +0 -5
- package/esm5/directives/copy-processor/copy-processor.directive.js +0 -39
- package/esm5/directives/copy-processor/copy-processor.module.js +0 -16
- package/esm5/directives/copy-processor/index.js +0 -3
- package/esm5/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +0 -5
- package/esm5/directives/drag/drag.directive.js +0 -52
- package/esm5/directives/drag/drag.module.js +0 -16
- package/esm5/directives/drag/index.js +0 -3
- package/esm5/directives/drag/taiga-ui-cdk-directives-drag.js +0 -5
- package/esm5/directives/droppable/droppable.directive.js +0 -43
- package/esm5/directives/droppable/droppable.module.js +0 -16
- package/esm5/directives/droppable/index.js +0 -3
- package/esm5/directives/droppable/taiga-ui-cdk-directives-droppable.js +0 -5
- package/esm5/directives/element/element.directive.js +0 -22
- package/esm5/directives/element/element.module.js +0 -16
- package/esm5/directives/element/index.js +0 -3
- package/esm5/directives/element/taiga-ui-cdk-directives-element.js +0 -5
- package/esm5/directives/focus-trap/focus-trap.directive.js +0 -78
- package/esm5/directives/focus-trap/focus-trap.module.js +0 -16
- package/esm5/directives/focus-trap/index.js +0 -3
- package/esm5/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +0 -5
- package/esm5/directives/focus-visible/focus-visible.directive.js +0 -29
- package/esm5/directives/focus-visible/focus-visible.module.js +0 -16
- package/esm5/directives/focus-visible/index.js +0 -3
- package/esm5/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +0 -5
- package/esm5/directives/focusable/focusable.directive.js +0 -34
- package/esm5/directives/focusable/focusable.module.js +0 -16
- package/esm5/directives/focusable/index.js +0 -3
- package/esm5/directives/focusable/taiga-ui-cdk-directives-focusable.js +0 -5
- package/esm5/directives/focused/focused.directive.js +0 -34
- package/esm5/directives/focused/focused.module.js +0 -16
- package/esm5/directives/focused/index.js +0 -3
- package/esm5/directives/focused/taiga-ui-cdk-directives-focused.js +0 -5
- package/esm5/directives/for/for.directive.js +0 -39
- package/esm5/directives/for/for.module.js +0 -16
- package/esm5/directives/for/index.js +0 -3
- package/esm5/directives/for/taiga-ui-cdk-directives-for.js +0 -5
- package/esm5/directives/for-async/for-async.directive.js +0 -53
- package/esm5/directives/for-async/for-async.module.js +0 -19
- package/esm5/directives/for-async/index.js +0 -3
- package/esm5/directives/for-async/taiga-ui-cdk-directives-for-async.js +0 -5
- package/esm5/directives/high-dpi/high-dpi.directive.js +0 -31
- package/esm5/directives/high-dpi/high-dpi.module.js +0 -16
- package/esm5/directives/high-dpi/index.js +0 -3
- package/esm5/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +0 -5
- package/esm5/directives/hovered/hovered.directive.js +0 -44
- package/esm5/directives/hovered/hovered.module.js +0 -16
- package/esm5/directives/hovered/index.js +0 -3
- package/esm5/directives/hovered/taiga-ui-cdk-directives-hovered.js +0 -5
- package/esm5/directives/index.js +0 -31
- package/esm5/directives/input-mode/index.js +0 -3
- package/esm5/directives/input-mode/input-mode.directive.js +0 -44
- package/esm5/directives/input-mode/input-mode.module.js +0 -16
- package/esm5/directives/input-mode/taiga-ui-cdk-directives-input-mode.js +0 -5
- package/esm5/directives/item/index.js +0 -3
- package/esm5/directives/item/item.directive.js +0 -18
- package/esm5/directives/item/item.module.js +0 -16
- package/esm5/directives/item/taiga-ui-cdk-directives-item.js +0 -5
- package/esm5/directives/let/index.js +0 -4
- package/esm5/directives/let/let-context.js +0 -25
- package/esm5/directives/let/let.directive.js +0 -38
- package/esm5/directives/let/let.module.js +0 -16
- package/esm5/directives/let/taiga-ui-cdk-directives-let.js +0 -5
- package/esm5/directives/media/index.js +0 -3
- package/esm5/directives/media/media.directive.js +0 -130
- package/esm5/directives/media/media.module.js +0 -16
- package/esm5/directives/media/taiga-ui-cdk-directives-media.js +0 -5
- package/esm5/directives/obscured/index.js +0 -3
- package/esm5/directives/obscured/obscured.directive.js +0 -53
- package/esm5/directives/obscured/obscured.module.js +0 -16
- package/esm5/directives/obscured/taiga-ui-cdk-directives-obscured.js +0 -5
- package/esm5/directives/overscroll/index.js +0 -3
- package/esm5/directives/overscroll/overscroll.directive.js +0 -112
- package/esm5/directives/overscroll/overscroll.module.js +0 -16
- package/esm5/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +0 -5
- package/esm5/directives/pan/index.js +0 -3
- package/esm5/directives/pan/pan.directive.js +0 -24
- package/esm5/directives/pan/pan.module.js +0 -19
- package/esm5/directives/pan/taiga-ui-cdk-directives-pan.js +0 -5
- package/esm5/directives/portal/index.js +0 -3
- package/esm5/directives/portal/portal.directive.js +0 -41
- package/esm5/directives/portal/portal.module.js +0 -16
- package/esm5/directives/portal/taiga-ui-cdk-directives-portal.js +0 -5
- package/esm5/directives/pressed/index.js +0 -3
- package/esm5/directives/pressed/pressed.directive.js +0 -30
- package/esm5/directives/pressed/pressed.module.js +0 -16
- package/esm5/directives/pressed/taiga-ui-cdk-directives-pressed.js +0 -5
- package/esm5/directives/prevent-default/index.js +0 -3
- package/esm5/directives/prevent-default/prevent-default.directive.js +0 -38
- package/esm5/directives/prevent-default/prevent-default.module.js +0 -16
- package/esm5/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +0 -5
- package/esm5/directives/repeat-times/index.js +0 -3
- package/esm5/directives/repeat-times/repeat-times.directive.js +0 -67
- package/esm5/directives/repeat-times/repeat-times.module.js +0 -16
- package/esm5/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +0 -5
- package/esm5/directives/resize/index.js +0 -3
- package/esm5/directives/resize/resize.directive.js +0 -24
- package/esm5/directives/resize/resize.module.js +0 -19
- package/esm5/directives/resize/taiga-ui-cdk-directives-resize.js +0 -5
- package/esm5/directives/swipe/index.js +0 -3
- package/esm5/directives/swipe/swipe.directive.js +0 -24
- package/esm5/directives/swipe/swipe.module.js +0 -19
- package/esm5/directives/swipe/taiga-ui-cdk-directives-swipe.js +0 -5
- package/esm5/directives/taiga-ui-cdk-directives.js +0 -5
- package/esm5/directives/validator/index.js +0 -3
- package/esm5/directives/validator/taiga-ui-cdk-directives-validator.js +0 -5
- package/esm5/directives/validator/validator.directive.js +0 -45
- package/esm5/directives/validator/validator.module.js +0 -16
- package/esm5/directives/zoom/index.js +0 -3
- package/esm5/directives/zoom/taiga-ui-cdk-directives-zoom.js +0 -5
- package/esm5/directives/zoom/zoom.directive.js +0 -27
- package/esm5/directives/zoom/zoom.module.js +0 -19
- package/esm5/enums/autocomplete.js +0 -66
- package/esm5/enums/day-of-week.js +0 -11
- package/esm5/enums/index.js +0 -7
- package/esm5/enums/input-mode.js +0 -15
- package/esm5/enums/input-type.js +0 -12
- package/esm5/enums/month-number.js +0 -16
- package/esm5/enums/overscroll-mode.js +0 -15
- package/esm5/enums/taiga-ui-cdk-enums.js +0 -5
- package/esm5/exceptions/computed-document.exception.js +0 -10
- package/esm5/exceptions/document-selection.exception.js +0 -10
- package/esm5/exceptions/index.js +0 -14
- package/esm5/exceptions/invalid-day.exception.js +0 -23
- package/esm5/exceptions/invalid-month.exception.js +0 -23
- package/esm5/exceptions/invalid-year.exception.js +0 -23
- package/esm5/exceptions/no-host.exception.js +0 -10
- package/esm5/exceptions/owner-document.exception.js +0 -10
- package/esm5/exceptions/pure.exception.js +0 -10
- package/esm5/exceptions/table-sort-key.exception.js +0 -10
- package/esm5/exceptions/taiga-ui-cdk-exceptions.js +0 -5
- package/esm5/exceptions/ts-parser.exception.js +0 -10
- package/esm5/exceptions/value-changes.exception.js +0 -10
- package/esm5/exceptions/value-present.exception.js +0 -10
- package/esm5/exceptions/xml-parsing.exception.js +0 -10
- package/esm5/index.js +0 -16
- package/esm5/interfaces/alert-context.js +0 -1
- package/esm5/interfaces/aria-dialog-context.js +0 -1
- package/esm5/interfaces/base-dialog-context.js +0 -1
- package/esm5/interfaces/base-dialog.js +0 -1
- package/esm5/interfaces/context-with-implicit.js +0 -1
- package/esm5/interfaces/control-value-transformer.js +0 -1
- package/esm5/interfaces/day-like.js +0 -1
- package/esm5/interfaces/focusable-element-accessor.js +0 -1
- package/esm5/interfaces/index.js +0 -1
- package/esm5/interfaces/month-like.js +0 -1
- package/esm5/interfaces/swipe.js +0 -1
- package/esm5/interfaces/taiga-ui-cdk-interfaces.js +0 -4
- package/esm5/interfaces/time-like.js +0 -1
- package/esm5/interfaces/year-like.js +0 -1
- package/esm5/interfaces/zoom.js +0 -1
- package/esm5/observables/drag-and-drop-from.js +0 -33
- package/esm5/observables/focus-visible-observable.js +0 -36
- package/esm5/observables/index.js +0 -14
- package/esm5/observables/is-alive.js +0 -10
- package/esm5/observables/items-query-list-observable.js +0 -12
- package/esm5/observables/mouse-drag-finish-from.js +0 -13
- package/esm5/observables/must-be-present.js +0 -17
- package/esm5/observables/pressed-observable.js +0 -21
- package/esm5/observables/prevent-default.js +0 -10
- package/esm5/observables/replay-control-value-changes.js +0 -16
- package/esm5/observables/stop-propagation.js +0 -12
- package/esm5/observables/taiga-ui-cdk-observables.js +0 -5
- package/esm5/observables/typed-from-event.js +0 -11
- package/esm5/observables/watch.js +0 -12
- package/esm5/observables/zone-free.js +0 -23
- package/esm5/pipes/filter/filter.module.js +0 -16
- package/esm5/pipes/filter/filter.pipe.js +0 -26
- package/esm5/pipes/filter/index.js +0 -3
- package/esm5/pipes/filter/taiga-ui-cdk-pipes-filter.js +0 -5
- package/esm5/pipes/index.js +0 -3
- package/esm5/pipes/mapper/index.js +0 -3
- package/esm5/pipes/mapper/mapper.module.js +0 -16
- package/esm5/pipes/mapper/mapper.pipe.js +0 -26
- package/esm5/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +0 -5
- package/esm5/pipes/taiga-ui-cdk-pipes.js +0 -5
- package/esm5/services/destroy.service.js +0 -22
- package/esm5/services/directive-styles.service.js +0 -56
- package/esm5/services/focus-visible.service.js +0 -35
- package/esm5/services/hovered.service.js +0 -39
- package/esm5/services/id.service.js +0 -26
- package/esm5/services/index.js +0 -14
- package/esm5/services/obscured.service.js +0 -50
- package/esm5/services/pan.service.js +0 -47
- package/esm5/services/parents-scroll.service.js +0 -40
- package/esm5/services/resize.service.js +0 -41
- package/esm5/services/scroll.service.js +0 -58
- package/esm5/services/static-request.service.js +0 -48
- package/esm5/services/swipe.service.js +0 -60
- package/esm5/services/taiga-ui-cdk-services.js +0 -5
- package/esm5/services/zoom.service.js +0 -64
- package/esm5/taiga-ui-cdk.js +0 -5
- package/esm5/tokens/active-element.js +0 -67
- package/esm5/tokens/alerts.js +0 -5
- package/esm5/tokens/default-renderer.js +0 -7
- package/esm5/tokens/dialogs.js +0 -5
- package/esm5/tokens/focusable-item-accessor.js +0 -3
- package/esm5/tokens/index.js +0 -21
- package/esm5/tokens/is-android.js +0 -7
- package/esm5/tokens/is-apple.js +0 -5
- package/esm5/tokens/is-chromium.js +0 -6
- package/esm5/tokens/is-cypress.js +0 -9
- package/esm5/tokens/is-firefox.js +0 -9
- package/esm5/tokens/is-ios.js +0 -7
- package/esm5/tokens/is-mobile.js +0 -12
- package/esm5/tokens/is-webkit.js +0 -6
- package/esm5/tokens/removed-element.js +0 -19
- package/esm5/tokens/sanitizer.js +0 -4
- package/esm5/tokens/swipe-options.js +0 -5
- package/esm5/tokens/taiga-ui-cdk-tokens.js +0 -5
- package/esm5/tokens/take-only-trusted-events.js +0 -11
- package/esm5/tokens/touch-supported.js +0 -6
- package/esm5/tokens/window-height.js +0 -11
- package/esm5/tokens/zoom-options.js +0 -7
- package/esm5/types/date-mode.js +0 -1
- package/esm5/types/dialog.js +0 -1
- package/esm5/types/event-with.js +0 -1
- package/esm5/types/handler.js +0 -1
- package/esm5/types/index.js +0 -1
- package/esm5/types/input-mode.js +0 -1
- package/esm5/types/input-type.js +0 -1
- package/esm5/types/mapper.js +0 -1
- package/esm5/types/matcher.js +0 -1
- package/esm5/types/overscroll-mode.js +0 -1
- package/esm5/types/taiga-ui-cdk-types.js +0 -4
- package/esm5/types/time-mode.js +0 -1
- package/esm5/utils/browser/index.js +0 -6
- package/esm5/utils/browser/is-edge-older-than.js +0 -11
- package/esm5/utils/browser/is-edge.js +0 -9
- package/esm5/utils/browser/is-firefox.js +0 -9
- package/esm5/utils/browser/is-ie.js +0 -9
- package/esm5/utils/browser/is-safari.js +0 -11
- package/esm5/utils/browser/taiga-ui-cdk-utils-browser.js +0 -5
- package/esm5/utils/dom/can-scroll.js +0 -47
- package/esm5/utils/dom/contains-or-after.js +0 -10
- package/esm5/utils/dom/custom-event.js +0 -11
- package/esm5/utils/dom/get-actual-target.js +0 -13
- package/esm5/utils/dom/get-clipboard-data-text.js +0 -15
- package/esm5/utils/dom/get-closest-element.js +0 -20
- package/esm5/utils/dom/get-document-or-shadow-root.js +0 -11
- package/esm5/utils/dom/get-element-obscurers.js +0 -39
- package/esm5/utils/dom/get-element-offset.js +0 -23
- package/esm5/utils/dom/get-scroll-parent.js +0 -23
- package/esm5/utils/dom/get-selected-text.js +0 -17
- package/esm5/utils/dom/index.js +0 -17
- package/esm5/utils/dom/is-current-target.js +0 -10
- package/esm5/utils/dom/is-form-field.js +0 -8
- package/esm5/utils/dom/is-inside-iframe.js +0 -10
- package/esm5/utils/dom/is-node-in.js +0 -18
- package/esm5/utils/dom/point-to-client-rect.js +0 -13
- package/esm5/utils/dom/taiga-ui-cdk-utils-dom.js +0 -5
- package/esm5/utils/focus/blur-native-focused.js +0 -16
- package/esm5/utils/focus/get-closest-keyboard-focusable.js +0 -42
- package/esm5/utils/focus/get-native-focused.js +0 -19
- package/esm5/utils/focus/index.js +0 -11
- package/esm5/utils/focus/is-native-focused-in.js +0 -19
- package/esm5/utils/focus/is-native-focused.js +0 -16
- package/esm5/utils/focus/is-native-keyboard-focusable.js +0 -36
- package/esm5/utils/focus/is-native-mouse-focusable.js +0 -11
- package/esm5/utils/focus/move-focus.js +0 -23
- package/esm5/utils/focus/set-native-focused.js +0 -21
- package/esm5/utils/focus/set-native-mouse-focused.js +0 -28
- package/esm5/utils/focus/taiga-ui-cdk-utils-focus.js +0 -5
- package/esm5/utils/format/index.js +0 -3
- package/esm5/utils/format/pad-start.js +0 -18
- package/esm5/utils/format/px.js +0 -12
- package/esm5/utils/format/taiga-ui-cdk-utils-format.js +0 -5
- package/esm5/utils/index.js +0 -9
- package/esm5/utils/math/clamp.js +0 -19
- package/esm5/utils/math/in-range.js +0 -19
- package/esm5/utils/math/index.js +0 -9
- package/esm5/utils/math/normalize-to-int-number.js +0 -25
- package/esm5/utils/math/quantize.js +0 -18
- package/esm5/utils/math/round.js +0 -49
- package/esm5/utils/math/sum.js +0 -14
- package/esm5/utils/math/taiga-ui-cdk-utils-math.js +0 -5
- package/esm5/utils/math/to-int.js +0 -9
- package/esm5/utils/math/to-radians.js +0 -10
- package/esm5/utils/miscellaneous/distance-between-touches.js +0 -10
- package/esm5/utils/miscellaneous/ease-in-out-quad.js +0 -11
- package/esm5/utils/miscellaneous/fallback-value.js +0 -12
- package/esm5/utils/miscellaneous/flat-length.js +0 -12
- package/esm5/utils/miscellaneous/get-original-array-from-query-list.js +0 -18
- package/esm5/utils/miscellaneous/get-swipe-direction.js +0 -14
- package/esm5/utils/miscellaneous/identity.js +0 -8
- package/esm5/utils/miscellaneous/index.js +0 -14
- package/esm5/utils/miscellaneous/is-element-editable.js +0 -12
- package/esm5/utils/miscellaneous/is-number.js +0 -9
- package/esm5/utils/miscellaneous/is-present.js +0 -9
- package/esm5/utils/miscellaneous/mark-control-as-touched-and-validate.js +0 -21
- package/esm5/utils/miscellaneous/nullable-same.js +0 -21
- package/esm5/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +0 -5
- package/esm5/utils/miscellaneous/uniq-by.js +0 -11
- package/esm5/utils/os/index.js +0 -4
- package/esm5/utils/os/is-apple-platform.js +0 -17
- package/esm5/utils/os/is-apple.js +0 -11
- package/esm5/utils/os/is-ios.js +0 -12
- package/esm5/utils/os/taiga-ui-cdk-utils-os.js +0 -5
- package/esm5/utils/svg/index.js +0 -2
- package/esm5/utils/svg/svg-linear-gradient-processor.js +0 -32
- package/esm5/utils/svg/taiga-ui-cdk-utils-svg.js +0 -5
- package/esm5/utils/taiga-ui-cdk-utils.js +0 -5
- package/exceptions/taiga-ui-cdk-exceptions.metadata.json +0 -1
- package/fesm2015/taiga-ui-cdk-components-portal-host.js +0 -23
- package/fesm2015/taiga-ui-cdk-components-portal-host.js.map +0 -1
- package/fesm5/taiga-ui-cdk-abstract.js +0 -682
- package/fesm5/taiga-ui-cdk-abstract.js.map +0 -1
- package/fesm5/taiga-ui-cdk-classes.js +0 -35
- package/fesm5/taiga-ui-cdk-classes.js.map +0 -1
- package/fesm5/taiga-ui-cdk-coercion.js +0 -16
- package/fesm5/taiga-ui-cdk-coercion.js.map +0 -1
- package/fesm5/taiga-ui-cdk-components-alert-host.js +0 -63
- package/fesm5/taiga-ui-cdk-components-alert-host.js.map +0 -1
- package/fesm5/taiga-ui-cdk-components-dialog-host.js +0 -107
- package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +0 -1
- package/fesm5/taiga-ui-cdk-components-dropdown-host.js +0 -52
- package/fesm5/taiga-ui-cdk-components-dropdown-host.js.map +0 -1
- package/fesm5/taiga-ui-cdk-components-portal-host.js +0 -28
- package/fesm5/taiga-ui-cdk-components-portal-host.js.map +0 -1
- package/fesm5/taiga-ui-cdk-components.js +0 -9
- package/fesm5/taiga-ui-cdk-components.js.map +0 -1
- package/fesm5/taiga-ui-cdk-constants.js +0 -152
- package/fesm5/taiga-ui-cdk-constants.js.map +0 -1
- package/fesm5/taiga-ui-cdk-date-time.js +0 -1051
- package/fesm5/taiga-ui-cdk-date-time.js.map +0 -1
- package/fesm5/taiga-ui-cdk-decorators.js +0 -161
- package/fesm5/taiga-ui-cdk-decorators.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-active-zone.js +0 -110
- package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js +0 -273
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-autofilled.js +0 -73
- package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-checked.js +0 -67
- package/fesm5/taiga-ui-cdk-directives-checked.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-copy-processor.js +0 -57
- package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-drag.js +0 -70
- package/fesm5/taiga-ui-cdk-directives-drag.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-droppable.js +0 -61
- package/fesm5/taiga-ui-cdk-directives-droppable.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-element.js +0 -40
- package/fesm5/taiga-ui-cdk-directives-element.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js +0 -96
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js +0 -47
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-focusable.js +0 -52
- package/fesm5/taiga-ui-cdk-directives-focusable.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-focused.js +0 -52
- package/fesm5/taiga-ui-cdk-directives-focused.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-for-async.js +0 -74
- package/fesm5/taiga-ui-cdk-directives-for-async.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-for.js +0 -57
- package/fesm5/taiga-ui-cdk-directives-for.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js +0 -49
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-hovered.js +0 -62
- package/fesm5/taiga-ui-cdk-directives-hovered.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-input-mode.js +0 -62
- package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-item.js +0 -36
- package/fesm5/taiga-ui-cdk-directives-item.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-let.js +0 -79
- package/fesm5/taiga-ui-cdk-directives-let.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-media.js +0 -148
- package/fesm5/taiga-ui-cdk-directives-media.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-obscured.js +0 -71
- package/fesm5/taiga-ui-cdk-directives-obscured.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-overscroll.js +0 -130
- package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-pan.js +0 -45
- package/fesm5/taiga-ui-cdk-directives-pan.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-portal.js +0 -59
- package/fesm5/taiga-ui-cdk-directives-portal.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-pressed.js +0 -48
- package/fesm5/taiga-ui-cdk-directives-pressed.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-prevent-default.js +0 -56
- package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-repeat-times.js +0 -84
- package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-resize.js +0 -45
- package/fesm5/taiga-ui-cdk-directives-resize.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-swipe.js +0 -45
- package/fesm5/taiga-ui-cdk-directives-swipe.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-validator.js +0 -63
- package/fesm5/taiga-ui-cdk-directives-validator.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives-zoom.js +0 -48
- package/fesm5/taiga-ui-cdk-directives-zoom.js.map +0 -1
- package/fesm5/taiga-ui-cdk-directives.js +0 -35
- package/fesm5/taiga-ui-cdk-directives.js.map +0 -1
- package/fesm5/taiga-ui-cdk-enums.js +0 -141
- package/fesm5/taiga-ui-cdk-enums.js.map +0 -1
- package/fesm5/taiga-ui-cdk-exceptions.js +0 -148
- package/fesm5/taiga-ui-cdk-exceptions.js.map +0 -1
- package/fesm5/taiga-ui-cdk-interfaces.js +0 -4
- package/fesm5/taiga-ui-cdk-interfaces.js.map +0 -1
- package/fesm5/taiga-ui-cdk-observables.js +0 -204
- package/fesm5/taiga-ui-cdk-observables.js.map +0 -1
- package/fesm5/taiga-ui-cdk-pipes-filter.js +0 -44
- package/fesm5/taiga-ui-cdk-pipes-filter.js.map +0 -1
- package/fesm5/taiga-ui-cdk-pipes-mapper.js +0 -44
- package/fesm5/taiga-ui-cdk-pipes-mapper.js.map +0 -1
- package/fesm5/taiga-ui-cdk-pipes.js +0 -7
- package/fesm5/taiga-ui-cdk-pipes.js.map +0 -1
- package/fesm5/taiga-ui-cdk-services.js +0 -507
- package/fesm5/taiga-ui-cdk-services.js.map +0 -1
- package/fesm5/taiga-ui-cdk-tokens.js +0 -181
- package/fesm5/taiga-ui-cdk-tokens.js.map +0 -1
- package/fesm5/taiga-ui-cdk-types.js +0 -4
- package/fesm5/taiga-ui-cdk-types.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-browser.js +0 -55
- package/fesm5/taiga-ui-cdk-utils-browser.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-dom.js +0 -292
- package/fesm5/taiga-ui-cdk-utils-dom.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-focus.js +0 -228
- package/fesm5/taiga-ui-cdk-utils-focus.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-format.js +0 -37
- package/fesm5/taiga-ui-cdk-utils-format.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-math.js +0 -166
- package/fesm5/taiga-ui-cdk-utils-math.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +0 -174
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-os.js +0 -44
- package/fesm5/taiga-ui-cdk-utils-os.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils-svg.js +0 -39
- package/fesm5/taiga-ui-cdk-utils-svg.js.map +0 -1
- package/fesm5/taiga-ui-cdk-utils.js +0 -13
- package/fesm5/taiga-ui-cdk-utils.js.map +0 -1
- package/fesm5/taiga-ui-cdk.js +0 -20
- package/fesm5/taiga-ui-cdk.js.map +0 -1
- package/interfaces/taiga-ui-cdk-interfaces.metadata.json +0 -1
- package/observables/taiga-ui-cdk-observables.metadata.json +0 -1
- package/pipes/filter/taiga-ui-cdk-pipes-filter.metadata.json +0 -1
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.metadata.json +0 -1
- package/pipes/taiga-ui-cdk-pipes.metadata.json +0 -1
- package/services/hovered.service.d.ts +0 -9
- package/services/taiga-ui-cdk-services.metadata.json +0 -1
- package/taiga-ui-cdk.metadata.json +0 -1
- package/tokens/taiga-ui-cdk-tokens.metadata.json +0 -1
- package/types/taiga-ui-cdk-types.metadata.json +0 -1
- package/utils/browser/taiga-ui-cdk-utils-browser.metadata.json +0 -1
- package/utils/dom/custom-event.d.ts +0 -2
- package/utils/dom/get-closest-element.d.ts +0 -5
- package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +0 -1
- package/utils/focus/taiga-ui-cdk-utils-focus.metadata.json +0 -1
- package/utils/format/pad-start.d.ts +0 -9
- package/utils/format/taiga-ui-cdk-utils-format.metadata.json +0 -1
- package/utils/math/taiga-ui-cdk-utils-math.metadata.json +0 -1
- package/utils/miscellaneous/fallback-value.d.ts +0 -7
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.metadata.json +0 -1
- package/utils/os/taiga-ui-cdk-utils-os.metadata.json +0 -1
- package/utils/svg/taiga-ui-cdk-utils-svg.metadata.json +0 -1
- package/utils/taiga-ui-cdk-utils.metadata.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-dom.umd.js","sources":["ng://@taiga-ui/cdk/utils/dom/can-scroll.ts","ng://@taiga-ui/cdk/utils/dom/contains-or-after.ts","ng://@taiga-ui/cdk/utils/dom/custom-event.ts","ng://@taiga-ui/cdk/utils/dom/get-actual-target.ts","ng://@taiga-ui/cdk/utils/dom/get-clipboard-data-text.ts","ng://@taiga-ui/cdk/utils/dom/get-closest-element.ts","ng://@taiga-ui/cdk/utils/dom/get-document-or-shadow-root.ts","ng://@taiga-ui/cdk/utils/dom/get-element-obscurers.ts","ng://@taiga-ui/cdk/utils/dom/get-element-offset.ts","ng://@taiga-ui/cdk/utils/dom/get-scroll-parent.ts","ng://@taiga-ui/cdk/utils/dom/is-form-field.ts","ng://@taiga-ui/cdk/utils/dom/get-selected-text.ts","ng://@taiga-ui/cdk/utils/dom/is-current-target.ts","ng://@taiga-ui/cdk/utils/dom/is-inside-iframe.ts","ng://@taiga-ui/cdk/utils/dom/is-node-in.ts","ng://@taiga-ui/cdk/utils/dom/point-to-client-rect.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiCanScroll} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function canScroll(\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\nexport const tuiCanScroll = canScroll;\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","/**\n * @deprecated: use {@link tuiContainsOrAfter} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function containsOrAfter(current: Node, node: Node): boolean {\n return (\n current.contains(node) ||\n !!(node.compareDocumentPosition(current) & Node.DOCUMENT_POSITION_PRECEDING)\n );\n}\n\nexport const tuiContainsOrAfter = containsOrAfter;\n","/** @deprecated only needed for IE, remove in 3.0 */\nexport function tuiCustomEvent<T = null>(\n name: string,\n {bubbles = false, cancelable = false, detail = null}: CustomEventInit<T | null> = {},\n documentRef: Document,\n): CustomEvent {\n if (typeof CustomEvent === 'function') {\n return new CustomEvent(name, {bubbles, cancelable, detail});\n }\n\n const customEvent = documentRef.createEvent('CustomEvent');\n\n customEvent.initCustomEvent(name, bubbles, cancelable, detail);\n\n return customEvent;\n}\n","/**\n * @deprecated: use {@link tuiGetActualTarget} instead\n * Gets actual target from open Shadow DOM if event happened within it\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getActualTarget(event: Event): Node {\n if ('composedPath' in event) {\n return (event as any).composedPath()[0];\n }\n\n return (event as any).target;\n}\n\nexport const tuiGetActualTarget = getActualTarget;\n","const DEFAULT_FORMAT = 'text/plain';\n\n/**\n * @deprecated: use {@link tuiGetClipboardDataText} instead\n * Gets text from data of clipboardEvent, it also works in IE and Edge browsers\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getClipboardDataText(\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\nexport const tuiGetClipboardDataText = getClipboardDataText;\n","/**\n * @deprecated only needed for IE, remove in 3.0\n * Gets the closest element by selector i.e. {@link Element.closest}\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getClosestElement(element: Element, selector: string): Element | null {\n const closest = Element.prototype.closest;\n\n if (closest) {\n return closest.call(element, selector);\n }\n\n const matchesSelector =\n Element.prototype.matches || (Element.prototype as any).msMatchesSelector;\n\n do {\n if (matchesSelector.call(element, selector)) {\n return element;\n }\n\n (element as Element | null) = element.parentElement;\n } while (element !== null);\n\n return null;\n}\n","/**\n * @deprecated: use {@link tuiGetDocumentOrShadowRoot} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot {\n return 'getRootNode' in node && node.isConnected\n ? (node.getRootNode() as Document)\n : node.ownerDocument!;\n}\n\nexport const tuiGetDocumentOrShadowRoot = getDocumentOrShadowRoot;\n","import {clamp} from '@taiga-ui/cdk/utils/math';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {getDocumentOrShadowRoot} from './get-document-or-shadow-root';\n\n/**\n * @deprecated: use {@link tuiGetElementObscures} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getElementObscurers(element: Element): readonly Element[] | null {\n const {ownerDocument} = element;\n\n if (!ownerDocument || !ownerDocument.defaultView) {\n return null;\n }\n\n const {innerWidth, innerHeight} = ownerDocument.defaultView;\n const documentRef = getDocumentOrShadowRoot(element);\n const rect = element.getBoundingClientRect();\n const left = clamp(Math.round(rect.left) + 2, 0, innerWidth);\n const top = clamp(Math.round(rect.top) + 2, 0, innerHeight);\n const right = clamp(Math.round(rect.right) - 2, 0, innerWidth);\n const bottom = clamp(Math.round(rect.bottom) - 2, 0, innerHeight);\n const horizontalMiddle = clamp(Math.round(rect.left + rect.width / 2), 0, innerWidth);\n const verticalMiddle = clamp(Math.round(rect.top + rect.height / 2), 0, innerHeight);\n const elements = [\n documentRef.elementFromPoint(horizontalMiddle, top),\n documentRef.elementFromPoint(horizontalMiddle, bottom),\n documentRef.elementFromPoint(left, verticalMiddle),\n documentRef.elementFromPoint(right, verticalMiddle),\n ];\n const nonNull = elements.filter(isPresent);\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\nexport const tuiGetElementObscures = getElementObscurers;\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * @deprecated: use {@link tuiGetElementOffset} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getElementOffset(\n host: Element,\n element: HTMLElement,\n): {offsetTop: number; offsetLeft: number} {\n tuiAssert.assert(host.contains(element), 'Host must contain element');\n\n let {offsetTop, offsetLeft, offsetParent} = element;\n\n // TODO: iframe warning\n while (offsetParent && offsetParent instanceof HTMLElement && offsetParent !== host) {\n offsetTop += offsetParent.offsetTop;\n offsetLeft += offsetParent.offsetLeft;\n offsetParent = offsetParent.offsetParent;\n }\n\n return {offsetTop, offsetLeft};\n}\n\nexport const tuiGetElementOffset = getElementOffset;\n","/**\n * @deprecated: use {@link tuiGetScrollParent} instead\n * Finds the nearest parent with scroll in it\n *\n * @param element initial element\n * @param vertical flag for orientation of scroll\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getScrollParent(\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 getScrollParent(element.parentElement, vertical);\n}\n\nexport const tuiGetScrollParent = getScrollParent;\n","export function tuiIsFormFieldElement(\n element: unknown | null,\n): element is HTMLInputElement | HTMLTextAreaElement {\n const textfield = element as Record<string, unknown> | null;\n\n return (\n !!textfield &&\n 'value' in textfield &&\n 'selectionStart' in textfield &&\n 'selectionEnd' in textfield\n );\n}\n","import {tuiIsFormFieldElement} from './is-form-field';\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 tuiIsFormFieldElement(document.activeElement)\n ? document.activeElement.value.slice(\n document.activeElement.selectionStart || 0,\n document.activeElement.selectionEnd || 0,\n )\n : getSelection()?.toString() || null;\n}\n","/**\n * @deprecated: use {@link tuiIsCurrentTarget} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isCurrentTarget({target, currentTarget}: Event): boolean {\n return target === currentTarget;\n}\n\nexport const tuiIsCurrentTarget = isCurrentTarget;\n","/**\n * @deprecated: use {@link tuiIsInsideIframe} instead\n * Checks if an app is running inside <iframe /> tag\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isInsideIframe(windowRef: Window): boolean {\n return windowRef.parent !== windowRef;\n}\n\nexport const tuiIsInsideIframe = isInsideIframe;\n","import {getClosestElement} from './get-closest-element';\n\n/**\n * @deprecated: use {@link tuiIsNodeIn} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isNodeIn(node: Node, selector: string): boolean {\n return node.nodeType === Node.TEXT_NODE\n ? !!node.parentElement && !!getClosestElement(node.parentElement, selector)\n : node.nodeType === Node.ELEMENT_NODE &&\n !!getClosestElement(node as Element, selector);\n}\n\nexport const tuiIsNodeIn = isNodeIn;\n","export function tuiPointToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n}\n"],"names":["clamp","isPresent","tuiAssert"],"mappings":";;;;;;IAAA;;;IAGA;aACgB,SAAS,CACrB,OAAgB,EAChB,WAAoB,EACpB,QAAiB,EACjB,SAAkB;QAElB,OAAO,QAAQ;cACT,iBAAiB,CAAC,OAAO,EAAE,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,kBAAA,EAAA,KAAa;QAAE,kBAAA,EAAA,KAAa;QAC7D,OAAO;YACH,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,CAAC;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACZ,CAAC;IACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
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/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/is-form-field.ts","../../../projects/cdk/utils/dom/get-selected-text.ts","../../../projects/cdk/utils/dom/is-current-target.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/taiga-ui-cdk-utils-dom.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiCanScroll} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function canScroll(\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\nexport const tuiCanScroll = canScroll;\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","/**\n * @deprecated: use {@link tuiContainsOrAfter} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function containsOrAfter(current: Node, node: Node): boolean {\n return (\n current.contains(node) ||\n !!(node.compareDocumentPosition(current) & Node.DOCUMENT_POSITION_PRECEDING)\n );\n}\n\nexport const tuiContainsOrAfter = containsOrAfter;\n","/**\n * @deprecated: use {@link tuiGetActualTarget} instead\n * Gets actual target from open Shadow DOM if event happened within it\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getActualTarget(event: Event): Node {\n if (`composedPath` in event) {\n return (event as any).composedPath()[0];\n }\n\n return (event as any).target;\n}\n\nexport const tuiGetActualTarget = getActualTarget;\n","const DEFAULT_FORMAT = `text/plain`;\n\n/**\n * @deprecated: use {@link tuiGetClipboardDataText} instead\n * Gets text from data of clipboardEvent, it also works in IE and Edge browsers\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getClipboardDataText(\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\nexport const tuiGetClipboardDataText = getClipboardDataText;\n","/**\n * @deprecated: use {@link tuiGetDocumentOrShadowRoot} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot {\n return `getRootNode` in node && node.isConnected\n ? (node.getRootNode() as Document)\n : node.ownerDocument!;\n}\n\nexport const tuiGetDocumentOrShadowRoot = getDocumentOrShadowRoot;\n","import {clamp} from '@taiga-ui/cdk/utils/math';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {getDocumentOrShadowRoot} from './get-document-or-shadow-root';\n\n/**\n * @deprecated: use {@link tuiGetElementObscures} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getElementObscurers(element: Element): readonly Element[] | null {\n const {ownerDocument} = element;\n\n if (!ownerDocument || !ownerDocument.defaultView) {\n return null;\n }\n\n const {innerWidth, innerHeight} = ownerDocument.defaultView;\n const documentRef = getDocumentOrShadowRoot(element);\n const rect = element.getBoundingClientRect();\n const left = clamp(Math.round(rect.left) + 2, 0, innerWidth);\n const top = clamp(Math.round(rect.top) + 2, 0, innerHeight);\n const right = clamp(Math.round(rect.right) - 2, 0, innerWidth);\n const bottom = clamp(Math.round(rect.bottom) - 2, 0, innerHeight);\n const horizontalMiddle = clamp(Math.round(rect.left + rect.width / 2), 0, innerWidth);\n const verticalMiddle = clamp(Math.round(rect.top + rect.height / 2), 0, innerHeight);\n const elements = [\n documentRef.elementFromPoint(horizontalMiddle, top),\n documentRef.elementFromPoint(horizontalMiddle, bottom),\n documentRef.elementFromPoint(left, verticalMiddle),\n documentRef.elementFromPoint(right, verticalMiddle),\n ];\n const nonNull = elements.filter(isPresent);\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\nexport const tuiGetElementObscures = getElementObscurers;\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * @deprecated: use {@link tuiGetElementOffset} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getElementOffset(\n host: Element,\n element: HTMLElement,\n): {offsetTop: number; offsetLeft: number} {\n tuiAssert.assert(host.contains(element), `Host must contain element`);\n\n let {offsetTop, offsetLeft, offsetParent} = element;\n\n // TODO: iframe warning\n while (offsetParent && offsetParent instanceof HTMLElement && offsetParent !== host) {\n offsetTop += offsetParent.offsetTop;\n offsetLeft += offsetParent.offsetLeft;\n offsetParent = offsetParent.offsetParent;\n }\n\n return {offsetTop, offsetLeft};\n}\n\nexport const tuiGetElementOffset = getElementOffset;\n","/**\n * @deprecated: use {@link tuiGetScrollParent} instead\n * Finds the nearest parent with scroll in it\n *\n * @param element initial element\n * @param vertical flag for orientation of scroll\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getScrollParent(\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 getScrollParent(element.parentElement, vertical);\n}\n\nexport const tuiGetScrollParent = getScrollParent;\n","export function tuiIsFormFieldElement(\n element: unknown | null,\n): element is HTMLInputElement | HTMLTextAreaElement {\n const textfield = element as Record<string, unknown> | null;\n\n return (\n !!textfield &&\n `value` in textfield &&\n `selectionStart` in textfield &&\n `selectionEnd` in textfield\n );\n}\n","import {tuiIsFormFieldElement} from './is-form-field';\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 tuiIsFormFieldElement(document.activeElement)\n ? document.activeElement.value.slice(\n document.activeElement.selectionStart || 0,\n document.activeElement.selectionEnd || 0,\n )\n : getSelection()?.toString() || null;\n}\n","/**\n * @deprecated: use {@link tuiIsCurrentTarget} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isCurrentTarget({target, currentTarget}: Event): boolean {\n return target === currentTarget;\n}\n\nexport const tuiIsCurrentTarget = isCurrentTarget;\n","/**\n * @deprecated: use {@link tuiIsInsideIframe} instead\n * Checks if an app is running inside <iframe /> tag\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isInsideIframe(windowRef: Window): boolean {\n return windowRef.parent !== windowRef;\n}\n\nexport const tuiIsInsideIframe = isInsideIframe;\n","/**\n * @deprecated: use {@link tuiIsNodeIn} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isNodeIn(node: Node, selector: string): boolean {\n return node.nodeType === Node.TEXT_NODE\n ? !!node.parentElement?.closest(selector)\n : node.nodeType === Node.ELEMENT_NODE && !!(node as Element).closest(selector);\n}\n\nexport const tuiIsNodeIn = isNodeIn;\n","export function tuiPointToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["clamp","isPresent","tuiAssert"],"mappings":";;;;;;IAAA;;IAEG;IACH;IACM,SAAU,SAAS,CACrB,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;AAEM,QAAM,YAAY,GAAG,UAAU;IAEtC,SAA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;IAA5B,IAAA,IAAA,CAAA,KAAA,KAAA,CAAA,EAAA,EAAA,CAAa,GAAA,CAAA,CAAA,EAAA;IAAE,IAAA,IAAA,CAAA,KAAA,KAAA,CAAA,EAAA,EAAA,CAAa,GAAA,CAAA,CAAA,EAAA;QAC7D,OAAO;IACH,QAAA,IAAI,EAAE,CAAC;IACP,QAAA,KAAK,EAAE,CAAC;IACR,QAAA,GAAG,EAAE,CAAC;IACN,QAAA,MAAM,EAAE,CAAC;IACT,QAAA,KAAK,EAAE,CAAC;IACR,QAAA,MAAM,EAAE,CAAC;SACZ,CAAC;IACN;;ICTA;;IAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/cdk/constants')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/utils/focus', ['exports', '@taiga-ui/cdk/constants'], factory) :
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, constants) { 'use strict';
|
|
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.constants));
|
|
5
|
+
})(this, (function (exports, constants) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @deprecated: use {@link tuiGetNativeFocused} instead
|
|
9
8
|
* Returns current active element, including shadow dom
|
|
10
9
|
*
|
|
11
10
|
* @return element or null
|
|
12
11
|
*/
|
|
13
12
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
14
|
-
function
|
|
13
|
+
function tuiGetNativeFocused(documentRef) {
|
|
15
14
|
if (!documentRef.activeElement || !documentRef.activeElement.shadowRoot) {
|
|
16
15
|
return documentRef.activeElement;
|
|
17
16
|
}
|
|
@@ -21,28 +20,6 @@
|
|
|
21
20
|
}
|
|
22
21
|
return element;
|
|
23
22
|
}
|
|
24
|
-
var tuiGetNativeFocused = getNativeFocused;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated: use native element.focus()
|
|
28
|
-
* TODO: remove in v3.0
|
|
29
|
-
* Focuses or blurs and element
|
|
30
|
-
*
|
|
31
|
-
* @param element native element
|
|
32
|
-
* @param focused boolean focused state
|
|
33
|
-
* @param preventScroll optional flag to prevent native scroll to the element
|
|
34
|
-
*/
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
36
|
-
function setNativeFocused(element, focused, preventScroll) {
|
|
37
|
-
if (focused === void 0) { focused = true; }
|
|
38
|
-
if (preventScroll === void 0) { preventScroll = false; }
|
|
39
|
-
if (focused) {
|
|
40
|
-
element.focus({ preventScroll: preventScroll });
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
element.blur();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
23
|
|
|
47
24
|
/**
|
|
48
25
|
* @deprecated: use {@link tuiBlurNativeFocused} instead
|
|
@@ -50,62 +27,57 @@
|
|
|
50
27
|
*/
|
|
51
28
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
52
29
|
function blurNativeFocused(documentRef) {
|
|
53
|
-
var activeElement =
|
|
30
|
+
var activeElement = tuiGetNativeFocused(documentRef);
|
|
54
31
|
// TODO: iframe warning
|
|
55
32
|
if (activeElement instanceof HTMLElement) {
|
|
56
|
-
|
|
33
|
+
activeElement.blur();
|
|
57
34
|
}
|
|
58
35
|
}
|
|
59
36
|
var tuiBlurNativeFocused = blurNativeFocused;
|
|
60
37
|
|
|
61
38
|
/**
|
|
62
|
-
* @deprecated: use {@link tuiIsNativeKeyboardFocusable} instead
|
|
63
39
|
* Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to
|
|
64
40
|
* only target natural focus order. Not checking the possibility of an element to
|
|
65
41
|
* be focused, for example element can have display: none applied to it or any other
|
|
66
42
|
* circumstances could prevent actual focus.
|
|
67
43
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {
|
|
44
|
+
function tuiIsNativeKeyboardFocusable(element) {
|
|
45
|
+
if (element.hasAttribute("disabled") || element.getAttribute("tabIndex") === "-1") {
|
|
71
46
|
return false;
|
|
72
47
|
}
|
|
73
48
|
// TODO: iframe warning
|
|
74
49
|
if ((element instanceof HTMLElement && element.isContentEditable) ||
|
|
75
|
-
element.getAttribute(
|
|
50
|
+
element.getAttribute("tabIndex") === "0") {
|
|
76
51
|
return true;
|
|
77
52
|
}
|
|
78
53
|
switch (element.tagName) {
|
|
79
|
-
case
|
|
80
|
-
case
|
|
81
|
-
case
|
|
54
|
+
case "BUTTON":
|
|
55
|
+
case "SELECT":
|
|
56
|
+
case "TEXTAREA":
|
|
82
57
|
return true;
|
|
83
|
-
case
|
|
84
|
-
case
|
|
85
|
-
return element.hasAttribute(
|
|
86
|
-
case
|
|
87
|
-
return element.getAttribute(
|
|
88
|
-
case
|
|
89
|
-
case
|
|
90
|
-
return element.hasAttribute(
|
|
58
|
+
case "VIDEO":
|
|
59
|
+
case "AUDIO":
|
|
60
|
+
return element.hasAttribute("controls");
|
|
61
|
+
case "INPUT":
|
|
62
|
+
return element.getAttribute("type") !== "hidden";
|
|
63
|
+
case "A":
|
|
64
|
+
case "LINK":
|
|
65
|
+
return element.hasAttribute("href");
|
|
91
66
|
default:
|
|
92
67
|
return false;
|
|
93
68
|
}
|
|
94
69
|
}
|
|
95
|
-
var tuiIsNativeKeyboardFocusable = isNativeKeyboardFocusable;
|
|
96
70
|
|
|
97
71
|
/**
|
|
98
|
-
* @deprecated: use {@link tuiIsNativeMouseFocusable} instead
|
|
99
72
|
*/
|
|
100
73
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
101
|
-
function
|
|
102
|
-
return (!element.hasAttribute(
|
|
103
|
-
(element.getAttribute(
|
|
74
|
+
function tuiIsNativeMouseFocusable(element) {
|
|
75
|
+
return (!element.hasAttribute("disabled") &&
|
|
76
|
+
(element.getAttribute("tabIndex") === "-1" ||
|
|
77
|
+
tuiIsNativeKeyboardFocusable(element)));
|
|
104
78
|
}
|
|
105
|
-
var tuiIsNativeMouseFocusable = isNativeMouseFocusable;
|
|
106
79
|
|
|
107
80
|
/**
|
|
108
|
-
* @deprecated: use {@link tuiGetClosestFocusable} instead
|
|
109
81
|
* Finds the closest element that can be focused with a keyboard or mouse in theory
|
|
110
82
|
*
|
|
111
83
|
* @param initial current HTML element
|
|
@@ -114,14 +86,13 @@
|
|
|
114
86
|
* @param keyboard determine if only keyboard focus is of interest
|
|
115
87
|
*
|
|
116
88
|
*/
|
|
117
|
-
|
|
118
|
-
function getClosestFocusable(initial, prev, root, keyboard) {
|
|
89
|
+
function tuiGetClosestFocusable(initial, prev, root, keyboard) {
|
|
119
90
|
if (prev === void 0) { prev = false; }
|
|
120
91
|
if (keyboard === void 0) { keyboard = true; }
|
|
121
92
|
if (!root.ownerDocument) {
|
|
122
93
|
return null;
|
|
123
94
|
}
|
|
124
|
-
var check = keyboard ?
|
|
95
|
+
var check = keyboard ? tuiIsNativeKeyboardFocusable : tuiIsNativeMouseFocusable;
|
|
125
96
|
// Deprecated but ony this overload works in IE
|
|
126
97
|
// Filter must be a function in IE, other modern browsers are compliant to this format
|
|
127
98
|
var treeWalker = root.ownerDocument.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, constants.svgNodeFilter, false);
|
|
@@ -131,20 +102,15 @@
|
|
|
131
102
|
if (treeWalker.currentNode instanceof HTMLElement) {
|
|
132
103
|
initial = treeWalker.currentNode;
|
|
133
104
|
}
|
|
134
|
-
|
|
105
|
+
// TODO: iframe warning
|
|
106
|
+
if (check(initial) && initial instanceof HTMLElement) {
|
|
135
107
|
return initial;
|
|
136
108
|
}
|
|
137
109
|
}
|
|
138
110
|
return null;
|
|
139
111
|
}
|
|
140
|
-
/**
|
|
141
|
-
* @deprecated: use {@link tuiGetClosestFocusable} instead
|
|
142
|
-
*/
|
|
143
|
-
var getClosestKeyboardFocusable = getClosestFocusable;
|
|
144
|
-
var tuiGetClosestFocusable = getClosestFocusable;
|
|
145
112
|
|
|
146
113
|
/**
|
|
147
|
-
* @deprecated: use {@link tuiIsNativeFocused} instead
|
|
148
114
|
* Checks if element is focused.
|
|
149
115
|
*
|
|
150
116
|
* Could return true even after blur since element remains focused if you switch away from a browser tab.
|
|
@@ -153,31 +119,48 @@
|
|
|
153
119
|
* @return true if focused
|
|
154
120
|
*/
|
|
155
121
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
156
|
-
function
|
|
157
|
-
return (
|
|
122
|
+
function tuiIsNativeFocused(node) {
|
|
123
|
+
return !!(node === null || node === void 0 ? void 0 : node.ownerDocument) && tuiGetNativeFocused(node.ownerDocument) === node;
|
|
158
124
|
}
|
|
159
|
-
var tuiIsNativeFocused = isNativeFocused;
|
|
160
125
|
|
|
161
126
|
/**
|
|
162
|
-
* @deprecated: use {@link tuiIsNativeFocusedIn} instead
|
|
163
127
|
* Checks if focused element is within given element.
|
|
164
128
|
*
|
|
165
129
|
* @param node
|
|
166
130
|
* @return true if focused node is contained within element
|
|
167
131
|
*/
|
|
168
132
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
169
|
-
function
|
|
133
|
+
function tuiIsNativeFocusedIn(node) {
|
|
170
134
|
// !node.contains - check for IE11
|
|
171
135
|
if (!node.ownerDocument || !node.contains) {
|
|
172
136
|
return false;
|
|
173
137
|
}
|
|
174
|
-
var nativeFocused =
|
|
138
|
+
var nativeFocused = tuiGetNativeFocused(node.ownerDocument);
|
|
175
139
|
return nativeFocused !== null && node.contains(nativeFocused);
|
|
176
140
|
}
|
|
177
|
-
var tuiIsNativeFocusedIn = isNativeFocusedIn;
|
|
178
141
|
|
|
179
142
|
/**
|
|
180
|
-
* @deprecated: use
|
|
143
|
+
* @deprecated: use native element.focus()
|
|
144
|
+
* TODO: remove in v3.0
|
|
145
|
+
* Focuses or blurs and element
|
|
146
|
+
*
|
|
147
|
+
* @param element native element
|
|
148
|
+
* @param focused boolean focused state
|
|
149
|
+
* @param preventScroll optional flag to prevent native scroll to the element
|
|
150
|
+
*/
|
|
151
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
152
|
+
function setNativeFocused(element, focused, preventScroll) {
|
|
153
|
+
if (focused === void 0) { focused = true; }
|
|
154
|
+
if (preventScroll === void 0) { preventScroll = false; }
|
|
155
|
+
if (focused) {
|
|
156
|
+
element.focus({ preventScroll: preventScroll });
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
element.blur();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
181
164
|
* Utility method for moving focus in a list of elements
|
|
182
165
|
*
|
|
183
166
|
* @param currentIndex currently focused index
|
|
@@ -185,17 +168,16 @@
|
|
|
185
168
|
* @param step a step to move focus by, typically -1 or 1
|
|
186
169
|
*/
|
|
187
170
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
188
|
-
function
|
|
171
|
+
function tuiMoveFocus(currentIndex, elements, step) {
|
|
189
172
|
currentIndex += step;
|
|
190
173
|
while (currentIndex >= 0 && currentIndex < elements.length) {
|
|
191
174
|
setNativeFocused(elements[currentIndex]);
|
|
192
|
-
if (
|
|
175
|
+
if (tuiIsNativeFocused(elements[currentIndex])) {
|
|
193
176
|
return;
|
|
194
177
|
}
|
|
195
178
|
currentIndex += step;
|
|
196
179
|
}
|
|
197
180
|
}
|
|
198
|
-
var tuiMoveFocus = moveFocus;
|
|
199
181
|
|
|
200
182
|
/**
|
|
201
183
|
* @deprecated: use {@link tuiSetNativeMouseFocused} instead
|
|
@@ -212,27 +194,23 @@
|
|
|
212
194
|
if (!element.ownerDocument) {
|
|
213
195
|
return;
|
|
214
196
|
}
|
|
215
|
-
if (typeof Event ===
|
|
216
|
-
element.dispatchEvent(new Event(
|
|
197
|
+
if (typeof Event === "function") {
|
|
198
|
+
element.dispatchEvent(new Event("mousedown", { bubbles: true, cancelable: true }));
|
|
217
199
|
}
|
|
218
200
|
else {
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
element.dispatchEvent(
|
|
201
|
+
var event = element.ownerDocument.createEvent("Event");
|
|
202
|
+
event.initEvent("mousedown", true, true);
|
|
203
|
+
element.dispatchEvent(event);
|
|
222
204
|
}
|
|
223
205
|
setNativeFocused(element, focused, preventScroll);
|
|
224
206
|
}
|
|
225
207
|
var tuiSetNativeMouseFocused = setNativeMouseFocused;
|
|
226
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Generated bundle index. Do not edit.
|
|
211
|
+
*/
|
|
212
|
+
|
|
227
213
|
exports.blurNativeFocused = blurNativeFocused;
|
|
228
|
-
exports.getClosestFocusable = getClosestFocusable;
|
|
229
|
-
exports.getClosestKeyboardFocusable = getClosestKeyboardFocusable;
|
|
230
|
-
exports.getNativeFocused = getNativeFocused;
|
|
231
|
-
exports.isNativeFocused = isNativeFocused;
|
|
232
|
-
exports.isNativeFocusedIn = isNativeFocusedIn;
|
|
233
|
-
exports.isNativeKeyboardFocusable = isNativeKeyboardFocusable;
|
|
234
|
-
exports.isNativeMouseFocusable = isNativeMouseFocusable;
|
|
235
|
-
exports.moveFocus = moveFocus;
|
|
236
214
|
exports.setNativeFocused = setNativeFocused;
|
|
237
215
|
exports.setNativeMouseFocused = setNativeMouseFocused;
|
|
238
216
|
exports.tuiBlurNativeFocused = tuiBlurNativeFocused;
|
|
@@ -247,5 +225,5 @@
|
|
|
247
225
|
|
|
248
226
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
249
227
|
|
|
250
|
-
}))
|
|
228
|
+
}));
|
|
251
229
|
//# sourceMappingURL=taiga-ui-cdk-utils-focus.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-focus.umd.js","sources":["ng://@taiga-ui/cdk/utils/focus/get-native-focused.ts","ng://@taiga-ui/cdk/utils/focus/set-native-focused.ts","ng://@taiga-ui/cdk/utils/focus/blur-native-focused.ts","ng://@taiga-ui/cdk/utils/focus/is-native-keyboard-focusable.ts","ng://@taiga-ui/cdk/utils/focus/is-native-mouse-focusable.ts","ng://@taiga-ui/cdk/utils/focus/get-closest-keyboard-focusable.ts","ng://@taiga-ui/cdk/utils/focus/is-native-focused.ts","ng://@taiga-ui/cdk/utils/focus/is-native-focused-in.ts","ng://@taiga-ui/cdk/utils/focus/move-focus.ts","ng://@taiga-ui/cdk/utils/focus/set-native-mouse-focused.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiGetNativeFocused} instead\n * Returns current active element, including shadow dom\n *\n * @return element or null\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getNativeFocused(documentRef: Document): Element | null {\n if (!documentRef.activeElement || !documentRef.activeElement.shadowRoot) {\n return documentRef.activeElement;\n }\n\n let element = documentRef.activeElement.shadowRoot.activeElement;\n\n while (element?.shadowRoot) {\n element = element.shadowRoot.activeElement;\n }\n\n return element;\n}\n\nexport const tuiGetNativeFocused = getNativeFocused;\n","/**\n * @deprecated: use native element.focus()\n * TODO: remove in v3.0\n * Focuses or blurs and element\n *\n * @param element native element\n * @param focused boolean focused state\n * @param preventScroll optional flag to prevent native scroll to the element\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function setNativeFocused(\n element: HTMLOrSVGElement,\n focused: boolean = true,\n preventScroll: boolean = false,\n): void {\n if (focused) {\n element.focus({preventScroll});\n } else {\n element.blur();\n }\n}\n","import {getNativeFocused} from './get-native-focused';\nimport {setNativeFocused} from './set-native-focused';\n\n/**\n * @deprecated: use {@link tuiBlurNativeFocused} instead\n * Finds and blurs current active element, including shadow DOM\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function blurNativeFocused(documentRef: Document): void {\n const activeElement = getNativeFocused(documentRef);\n\n // TODO: iframe warning\n if (activeElement instanceof HTMLElement) {\n setNativeFocused(activeElement, false);\n }\n}\n\nexport const tuiBlurNativeFocused = blurNativeFocused;\n","/**\n * @deprecated: use {@link tuiIsNativeKeyboardFocusable} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isNativeKeyboardFocusable(element: Element): boolean {\n if (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {\n return false;\n }\n\n // TODO: iframe warning\n if (\n (element instanceof HTMLElement && 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\nexport const tuiIsNativeKeyboardFocusable = isNativeKeyboardFocusable;\n","import {isNativeKeyboardFocusable} from './is-native-keyboard-focusable';\n\n/**\n * @deprecated: use {@link tuiIsNativeMouseFocusable} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isNativeMouseFocusable(element: Element): boolean {\n return (\n !element.hasAttribute('disabled') &&\n (element.getAttribute('tabIndex') === '-1' || isNativeKeyboardFocusable(element))\n );\n}\n\nexport const tuiIsNativeMouseFocusable = isNativeMouseFocusable;\n","import {svgNodeFilter} from '@taiga-ui/cdk/constants';\n\nimport {isNativeKeyboardFocusable} from './is-native-keyboard-focusable';\nimport {isNativeMouseFocusable} from './is-native-mouse-focusable';\n\n/**\n * @deprecated: use {@link tuiGetClosestFocusable} instead\n * Finds the closest element that can be focused with a keyboard or mouse in theory\n *\n * @param initial current HTML element\n * @param prev should it look backwards instead (find item that will be focused with Shift + Tab)\n * @param root top Node limiting the search area\n * @param keyboard determine if only keyboard focus is of interest\n *\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getClosestFocusable(\n initial: HTMLElement,\n prev: boolean = false,\n root: Node,\n keyboard: boolean = true,\n): HTMLElement | null {\n if (!root.ownerDocument) {\n return null;\n }\n\n const check = keyboard ? isNativeKeyboardFocusable : isNativeMouseFocusable;\n\n // Deprecated but ony this overload works in IE\n // Filter must be a function in IE, other modern browsers are compliant to this format\n const treeWalker = root.ownerDocument.createTreeWalker(\n root,\n NodeFilter.SHOW_ELEMENT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = initial;\n\n while (prev ? treeWalker.previousNode() : treeWalker.nextNode()) {\n // TODO: iframe warning\n if (treeWalker.currentNode instanceof HTMLElement) {\n initial = treeWalker.currentNode;\n }\n\n if (check(initial)) {\n return initial;\n }\n }\n\n return null;\n}\n\n/**\n * @deprecated: use {@link tuiGetClosestFocusable} instead\n */\nexport const getClosestKeyboardFocusable = getClosestFocusable;\n\nexport const tuiGetClosestFocusable = getClosestFocusable;\n","import {getNativeFocused} from './get-native-focused';\n\n/**\n * @deprecated: use {@link tuiIsNativeFocused} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isNativeFocused(node: Node | null): boolean {\n return (\n !!node && !!node.ownerDocument && getNativeFocused(node.ownerDocument) === node\n );\n}\n\nexport const tuiIsNativeFocused = isNativeFocused;\n","import {getNativeFocused} from './get-native-focused';\n\n/**\n * @deprecated: use {@link tuiIsNativeFocusedIn} instead\n * Checks if focused element is within given element.\n *\n * @param node\n * @return true if focused node is contained within element\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isNativeFocusedIn(node: Node): boolean {\n // !node.contains - check for IE11\n if (!node.ownerDocument || !node.contains) {\n return false;\n }\n\n const nativeFocused = getNativeFocused(node.ownerDocument);\n\n return nativeFocused !== null && node.contains(nativeFocused);\n}\n\nexport const tuiIsNativeFocusedIn = isNativeFocusedIn;\n","import {isNativeFocused} from './is-native-focused';\nimport {setNativeFocused} from './set-native-focused';\n\n/**\n * @deprecated: use {@link tuiMoveFocus} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function moveFocus(\n currentIndex: number,\n elements: readonly HTMLElement[],\n step: number,\n): void {\n currentIndex += step;\n\n while (currentIndex >= 0 && currentIndex < elements.length) {\n setNativeFocused(elements[currentIndex]);\n\n if (isNativeFocused(elements[currentIndex])) {\n return;\n }\n\n currentIndex += step;\n }\n}\n\nexport const tuiMoveFocus = moveFocus;\n","import {setNativeFocused} from './set-native-focused';\n\n/**\n * @deprecated: use {@link tuiSetNativeMouseFocused} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function setNativeMouseFocused(\n element: HTMLOrSVGElement & Element,\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 setNativeFocused(element, focused, preventScroll);\n}\n\nexport const tuiSetNativeMouseFocused = setNativeMouseFocused;\n"],"names":["svgNodeFilter"],"mappings":";;;;;;IAAA;;;;;;IAMA;aACgB,gBAAgB,CAAC,WAAqB;QAClD,IAAI,CAAC,WAAW,CAAC,aAAa,IAAI,CAAC,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B,wBAAA,EAAA,cAAuB;QACvB,8BAAA,EAAA,qBAA8B;QAE9B,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACxB,OAAO;SACV;QAED,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;YAC7B,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;SACpF;aAAM;YACH,IAAM,OAAK,GAAG,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAEzD,OAAK,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACzC,OAAO,CAAC,aAAa,CAAC,OAAK,CAAC,CAAC;SAChC;QAED,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;QAEY,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
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-keyboard-focusable.ts","../../../projects/cdk/utils/focus/is-native-focused.ts","../../../projects/cdk/utils/focus/is-native-focused-in.ts","../../../projects/cdk/utils/focus/set-native-focused.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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function tuiGetNativeFocused(documentRef: Document): Element | null {\n if (!documentRef.activeElement || !documentRef.activeElement.shadowRoot) {\n return documentRef.activeElement;\n }\n\n let element = documentRef.activeElement.shadowRoot.activeElement;\n\n while (element?.shadowRoot) {\n element = element.shadowRoot.activeElement;\n }\n\n return element;\n}\n","import {tuiGetNativeFocused} from './get-native-focused';\n\n/**\n * @deprecated: use {@link tuiBlurNativeFocused} instead\n * Finds and blurs current active element, including shadow DOM\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function blurNativeFocused(documentRef: Document): void {\n const activeElement = tuiGetNativeFocused(documentRef);\n\n // TODO: iframe warning\n if (activeElement instanceof HTMLElement) {\n activeElement.blur();\n }\n}\n\nexport const tuiBlurNativeFocused = blurNativeFocused;\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 // TODO: iframe warning\n if (\n (element instanceof HTMLElement && 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\n/**\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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';\n\nimport {tuiIsNativeKeyboardFocusable} from './is-native-keyboard-focusable';\nimport {tuiIsNativeMouseFocusable} from './is-native-mouse-focusable';\n\n/**\n * Finds the closest element that can be focused with a keyboard or mouse in theory\n *\n * @param initial current HTML element\n * @param prev should it look backwards instead (find item that will be focused with Shift + Tab)\n * @param root top Node limiting the search area\n * @param keyboard determine if only keyboard focus is of interest\n *\n */\nexport function tuiGetClosestFocusable(\n initial: Element,\n prev: boolean = false,\n root: Node,\n keyboard: boolean = true,\n): HTMLElement | null {\n if (!root.ownerDocument) {\n return null;\n }\n\n const check = keyboard ? tuiIsNativeKeyboardFocusable : tuiIsNativeMouseFocusable;\n\n // Deprecated but ony this overload works in IE\n // Filter must be a function in IE, other modern browsers are compliant to this format\n const treeWalker = root.ownerDocument.createTreeWalker(\n root,\n NodeFilter.SHOW_ELEMENT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = initial;\n\n while (prev ? treeWalker.previousNode() : treeWalker.nextNode()) {\n // TODO: iframe warning\n if (treeWalker.currentNode instanceof HTMLElement) {\n initial = treeWalker.currentNode;\n }\n\n // TODO: iframe warning\n if (check(initial) && initial instanceof HTMLElement) {\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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","/**\n * @deprecated: use native element.focus()\n * TODO: remove in v3.0\n * Focuses or blurs and element\n *\n * @param element native element\n * @param focused boolean focused state\n * @param preventScroll optional flag to prevent native scroll to the element\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function setNativeFocused(\n element: HTMLOrSVGElement,\n focused: boolean = true,\n preventScroll: boolean = false,\n): void {\n if (focused) {\n element.focus({preventScroll});\n } else {\n element.blur();\n }\n}\n","import {tuiIsNativeFocused} from './is-native-focused';\nimport {setNativeFocused} from './set-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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\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 setNativeFocused(elements[currentIndex]);\n\n if (tuiIsNativeFocused(elements[currentIndex])) {\n return;\n }\n\n currentIndex += step;\n }\n}\n","import {setNativeFocused} from './set-native-focused';\n\n/**\n * @deprecated: use {@link tuiSetNativeMouseFocused} instead\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 */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function setNativeMouseFocused(\n element: HTMLOrSVGElement & Element,\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 setNativeFocused(element, focused, preventScroll);\n}\n\nexport const tuiSetNativeMouseFocused = setNativeMouseFocused;\n","/**\n * Generated bundle index. Do not edit.\n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AE,IAAI,EAAE,IAAI,CAAC,CAAC;IACzC,QAAA,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,KAAA;IAED,IAAA,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;AAEM,QAAM,wBAAwB,GAAG;;IChCxC;;IAEG;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,43 +1,25 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/cdk/classes')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/utils/format', ['exports', '@taiga-ui/cdk/classes'], factory) :
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, classes) { 'use strict';
|
|
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
|
+
})(this, (function (exports, classes) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* Pads a string with symbols in the beginning
|
|
10
|
-
*
|
|
11
|
-
* @param sourceString
|
|
12
|
-
* @param minResultLength
|
|
13
|
-
* @param padString string to pad with
|
|
8
|
+
* Adds 'px' to the number and turns it into a string
|
|
14
9
|
*/
|
|
15
10
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (padSize <= 0) {
|
|
20
|
-
return sourceString;
|
|
21
|
-
}
|
|
22
|
-
return padString.repeat(padSize / padString.length).slice(0, padSize) + sourceString;
|
|
11
|
+
function tuiPx(value) {
|
|
12
|
+
classes.tuiAssert.assert(Number.isFinite(value), "Value must be finite number");
|
|
13
|
+
return value + "px";
|
|
23
14
|
}
|
|
24
15
|
|
|
25
16
|
/**
|
|
26
|
-
*
|
|
27
|
-
* Adds 'px' to the number and turns it into a string
|
|
17
|
+
* Generated bundle index. Do not edit.
|
|
28
18
|
*/
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
30
|
-
function px(value) {
|
|
31
|
-
classes.tuiAssert.assert(Number.isFinite(value), 'Value must be finite number');
|
|
32
|
-
return value + "px";
|
|
33
|
-
}
|
|
34
|
-
var tuiPx = px;
|
|
35
19
|
|
|
36
|
-
exports.padStart = padStart;
|
|
37
|
-
exports.px = px;
|
|
38
20
|
exports.tuiPx = tuiPx;
|
|
39
21
|
|
|
40
22
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
41
23
|
|
|
42
|
-
}))
|
|
24
|
+
}));
|
|
43
25
|
//# sourceMappingURL=taiga-ui-cdk-utils-format.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-utils-format.umd.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-utils-format.umd.js","sources":["../../../projects/cdk/utils/format/px.ts","../../../projects/cdk/utils/format/taiga-ui-cdk-utils-format.ts"],"sourcesContent":["import {tuiAssert} from '@taiga-ui/cdk/classes';\n\n/**\n * Adds 'px' to the number and turns it into a string\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function tuiPx(value: number): string {\n tuiAssert.assert(Number.isFinite(value), `Value must be finite number`);\n\n return `${value}px`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiAssert"],"mappings":";;;;;;IAEA;;IAEG;IACH;IACM,SAAU,KAAK,CAAC,KAAa,EAAA;IAC/B,IAAAA,iBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,6BAA6B,CAAC,CAAC;QAExE,OAAU,KAAK,OAAI,CAAC;IACxB;;ICVA;;IAEG;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/cdk/classes')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/utils/math', ['exports', '@taiga-ui/cdk/classes'], factory) :
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, classes) { 'use strict';
|
|
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
|
+
})(this, (function (exports, classes) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated: use {@link tuiClamp} instead
|
|
@@ -22,26 +22,15 @@
|
|
|
22
22
|
}
|
|
23
23
|
var tuiClamp = clamp;
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
* @deprecated: use {@link tuiInRange} instead
|
|
27
|
-
* Checks if the value is in range
|
|
28
|
-
*
|
|
29
|
-
* @param value
|
|
30
|
-
* @param fromInclude lower inclusive limit
|
|
31
|
-
* @param toExclude upper exclusive limit
|
|
32
|
-
*/
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
34
|
-
function inRange(value, fromInclude, toExclude) {
|
|
25
|
+
function tuiInRange(value, fromInclude, toExclude) {
|
|
35
26
|
classes.tuiAssert.assert(!isNaN(value));
|
|
36
27
|
classes.tuiAssert.assert(!isNaN(fromInclude));
|
|
37
28
|
classes.tuiAssert.assert(!isNaN(toExclude));
|
|
38
29
|
classes.tuiAssert.assert(fromInclude < toExclude);
|
|
39
30
|
return value >= fromInclude && value < toExclude;
|
|
40
31
|
}
|
|
41
|
-
var tuiInRange = inRange;
|
|
42
32
|
|
|
43
33
|
/**
|
|
44
|
-
* @deprecated: use {@link tuiNormalizeToIntNumber} instead
|
|
45
34
|
* Normalizes any number to an integer within inclusive range
|
|
46
35
|
*
|
|
47
36
|
* @param value
|
|
@@ -49,8 +38,7 @@
|
|
|
49
38
|
* @param max upper inclusive integer
|
|
50
39
|
* @return an integer between min and max inclusive
|
|
51
40
|
*/
|
|
52
|
-
|
|
53
|
-
function normalizeToIntNumber(value, min, max) {
|
|
41
|
+
function tuiNormalizeToIntNumber(value, min, max) {
|
|
54
42
|
classes.tuiAssert.assert(Number.isInteger(min));
|
|
55
43
|
classes.tuiAssert.assert(Number.isInteger(max));
|
|
56
44
|
classes.tuiAssert.assert(min <= max);
|
|
@@ -62,7 +50,6 @@
|
|
|
62
50
|
}
|
|
63
51
|
return Math.round(value);
|
|
64
52
|
}
|
|
65
|
-
var tuiNormalizeToIntNumber = normalizeToIntNumber;
|
|
66
53
|
|
|
67
54
|
/**
|
|
68
55
|
* @deprecated: use {@link tuiQuantize} instead
|
|
@@ -120,12 +107,12 @@
|
|
|
120
107
|
if (value === Infinity) {
|
|
121
108
|
return value;
|
|
122
109
|
}
|
|
123
|
-
classes.tuiAssert.assert(!isNaN(value),
|
|
124
|
-
classes.tuiAssert.assert(Number.isInteger(precision),
|
|
110
|
+
classes.tuiAssert.assert(!isNaN(value), "Value must be number");
|
|
111
|
+
classes.tuiAssert.assert(Number.isInteger(precision), "Precision must be integer");
|
|
125
112
|
precision = Math.min(precision, MAX_PRECISION);
|
|
126
|
-
var pair = (value + "e").split(
|
|
113
|
+
var pair = (value + "e").split("e");
|
|
127
114
|
var tempValue = func(Number(pair[0] + "e" + (Number(pair[1]) + precision)));
|
|
128
|
-
var processedPair = (tempValue + "e").split(
|
|
115
|
+
var processedPair = (tempValue + "e").split("e");
|
|
129
116
|
return Number(processedPair[0] + "e" + (Number(processedPair[1]) - precision));
|
|
130
117
|
}
|
|
131
118
|
|
|
@@ -162,11 +149,13 @@
|
|
|
162
149
|
}
|
|
163
150
|
var tuiToRadians = toRadians;
|
|
164
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Generated bundle index. Do not edit.
|
|
154
|
+
*/
|
|
155
|
+
|
|
165
156
|
exports.ceil = ceil;
|
|
166
157
|
exports.clamp = clamp;
|
|
167
158
|
exports.floor = floor;
|
|
168
|
-
exports.inRange = inRange;
|
|
169
|
-
exports.normalizeToIntNumber = normalizeToIntNumber;
|
|
170
159
|
exports.quantize = quantize;
|
|
171
160
|
exports.round = round;
|
|
172
161
|
exports.sum = sum;
|
|
@@ -185,5 +174,5 @@
|
|
|
185
174
|
|
|
186
175
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
187
176
|
|
|
188
|
-
}))
|
|
177
|
+
}));
|
|
189
178
|
//# sourceMappingURL=taiga-ui-cdk-utils-math.umd.js.map
|