@taiga-ui/cdk 2.61.0 → 3.0.0-rc.2
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 +5 -1
- package/abstract/controller.d.ts +4 -7
- package/abstract/dialog.directive.d.ts +3 -0
- package/abstract/dialog.service.d.ts +4 -1
- 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 +8 -3
- package/abstract/portal-service.d.ts +6 -2
- package/abstract/taiga-ui-cdk-abstract.d.ts +1 -0
- package/abstract/theme-switcher.d.ts +3 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js +567 -497
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +7 -13
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +7 -3
- 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 +420 -296
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +405 -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 +16 -15
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +370 -464
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +335 -259
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +407 -295
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +454 -337
- 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 +60 -278
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +383 -273
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +64 -281
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +62 -280
- 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 +75 -288
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +51 -268
- 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 -270
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +413 -290
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +64 -276
- 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 +434 -321
- 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 +81 -297
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +51 -268
- 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 +54 -271
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +61 -275
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +385 -273
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +51 -268
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +51 -268
- 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 -271
- 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 +341 -298
- 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 +38 -101
- 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-keys.umd.js +41 -259
- package/bundles/taiga-ui-cdk-pipes-keys.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 +9 -15
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +585 -504
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +392 -289
- 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 +11 -42
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +81 -0
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +65 -130
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +46 -111
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +8 -27
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +17 -68
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +363 -105
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +11 -23
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +335 -259
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +27 -37
- 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 +0 -3
- 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/browser.d.ts +4 -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/constants/version.d.ts +1 -1
- package/constants/version.js +2 -1
- package/date-time/date-fillers.d.ts +0 -9
- package/date-time/day-range.d.ts +5 -12
- package/date-time/day.d.ts +1 -18
- package/date-time/month-range.d.ts +0 -4
- package/date-time/month.d.ts +1 -19
- 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 +1 -17
- 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 +4 -1
- 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 -1
- 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 -1
- 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 -2
- 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 -3
- 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 -1
- 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 +28 -20
- 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 +41 -83
- package/esm2015/abstract/multiple-control.js +9 -8
- package/esm2015/abstract/nullable-control.js +9 -8
- package/esm2015/abstract/portal-host.js +34 -30
- package/esm2015/abstract/portal-service.js +12 -11
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +1 -1
- package/esm2015/abstract/theme-switcher.js +12 -14
- package/esm2015/classes/assert.js +1 -10
- 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 +1 -1
- 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 +38 -30
- 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 +26 -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 +5 -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 +1 -1
- package/esm2015/constants/polling-time.js +1 -1
- package/esm2015/constants/stringify.js +1 -1
- package/esm2015/constants/svg-node-filter.js +1 -1
- package/esm2015/constants/taiga-ui-cdk-constants.js +1 -1
- package/esm2015/constants/unicode-chars.js +1 -1
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/date-fillers.js +1 -17
- package/esm2015/date-time/date-format.js +1 -1
- package/esm2015/date-time/date-separator.js +1 -1
- package/esm2015/date-time/date-time.js +1 -1
- package/esm2015/date-time/day-range.js +3 -18
- package/esm2015/date-time/day.js +12 -53
- 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 +8 -42
- package/esm2015/date-time/taiga-ui-cdk-date-time.js +1 -1
- package/esm2015/date-time/time.js +8 -9
- package/esm2015/date-time/year.js +7 -39
- package/esm2015/decorators/default-prop.js +1 -1
- package/esm2015/decorators/index.js +1 -1
- package/esm2015/decorators/pure.js +1 -1
- 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 +39 -35
- 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 +21 -20
- package/esm2015/directives/auto-focus/autofocus.module.js +14 -11
- package/esm2015/directives/auto-focus/autofocus.options.js +4 -9
- package/esm2015/directives/auto-focus/handlers/abstract.handler.js +10 -13
- package/esm2015/directives/auto-focus/handlers/default.handler.js +24 -19
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +34 -29
- 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 +25 -24
- 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 +25 -25
- 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 +21 -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 +26 -25
- 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 +31 -31
- 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 +45 -40
- 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 -18
- 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 +23 -22
- 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 -19
- 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 +33 -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 +30 -24
- 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 +63 -56
- 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 +41 -40
- 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 -18
- 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 +22 -21
- 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 +29 -25
- 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 +23 -19
- 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 -18
- 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 -18
- 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 -21
- 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 +1 -1
- package/esm2015/exceptions/document-selection.exception.js +1 -1
- 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 +1 -1
- package/esm2015/exceptions/owner-document.exception.js +1 -1
- package/esm2015/exceptions/pure.exception.js +1 -1
- package/esm2015/exceptions/table-sort-key.exception.js +1 -1
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +1 -1
- package/esm2015/exceptions/ts-parser.exception.js +1 -1
- package/esm2015/exceptions/value-changes.exception.js +1 -1
- package/esm2015/exceptions/value-present.exception.js +1 -1
- package/esm2015/exceptions/xml-parsing.exception.js +1 -1
- 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 +6 -11
- package/esm2015/observables/focus-visible-observable.js +9 -14
- package/esm2015/observables/index.js +1 -1
- package/esm2015/observables/is-alive.js +1 -1
- package/esm2015/observables/items-query-list-observable.js +4 -7
- package/esm2015/observables/mouse-drag-finish-from.js +4 -7
- package/esm2015/observables/must-be-present.js +4 -9
- package/esm2015/observables/pressed-observable.js +5 -10
- package/esm2015/observables/prevent-default.js +2 -7
- package/esm2015/observables/replay-control-value-changes.js +2 -3
- package/esm2015/observables/stop-propagation.js +2 -7
- package/esm2015/observables/taiga-ui-cdk-observables.js +1 -1
- package/esm2015/observables/typed-from-event.js +2 -7
- package/esm2015/observables/watch.js +2 -7
- 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/keys/index.js +1 -1
- package/esm2015/pipes/keys/keys.module.js +14 -11
- package/esm2015/pipes/keys/keys.pipe.js +10 -8
- package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.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 +19 -42
- package/esm2015/services/focus-visible.service.js +21 -19
- package/esm2015/services/id.service.js +12 -13
- package/esm2015/services/index.js +1 -2
- package/esm2015/services/obscured.service.js +33 -27
- package/esm2015/services/pan.service.js +20 -22
- package/esm2015/services/parents-scroll.service.js +17 -18
- package/esm2015/services/resize.service.js +28 -24
- package/esm2015/services/scroll.service.js +22 -23
- package/esm2015/services/static-request.service.js +11 -11
- package/esm2015/services/swipe.service.js +23 -24
- package/esm2015/services/taiga-ui-cdk-services.js +1 -1
- package/esm2015/services/zoom.service.js +22 -22
- package/esm2015/taiga-ui-cdk.js +1 -1
- package/esm2015/tokens/active-element.js +16 -16
- package/esm2015/tokens/alerts.js +8 -1
- package/esm2015/tokens/default-renderer.js +1 -1
- package/esm2015/tokens/dialogs.js +8 -1
- package/esm2015/tokens/focusable-item-accessor.js +7 -1
- package/esm2015/tokens/index.js +2 -2
- package/esm2015/tokens/is-android.js +1 -1
- package/esm2015/tokens/is-apple.js +3 -3
- package/esm2015/tokens/is-chromium.js +1 -1
- package/esm2015/tokens/is-cypress.js +1 -1
- package/esm2015/tokens/is-firefox.js +1 -1
- package/esm2015/tokens/is-ios.js +3 -3
- package/esm2015/tokens/is-mobile.js +1 -1
- package/esm2015/tokens/is-webkit.js +1 -1
- package/esm2015/tokens/range.js +8 -0
- package/esm2015/tokens/removed-element.js +2 -3
- package/esm2015/tokens/swipe-options.js +1 -1
- package/esm2015/tokens/taiga-ui-cdk-tokens.js +1 -1
- package/esm2015/tokens/take-only-trusted-events.js +1 -1
- package/esm2015/tokens/touch-supported.js +1 -1
- package/esm2015/tokens/window-height.js +3 -3
- package/esm2015/tokens/zoom-options.js +1 -1
- 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 -2
- package/esm2015/utils/browser/is-edge-older-than.js +2 -7
- package/esm2015/utils/browser/is-edge.js +2 -7
- package/esm2015/utils/browser/is-firefox.js +2 -7
- package/esm2015/utils/browser/is-safari.js +2 -7
- package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +1 -1
- package/esm2015/utils/color/hex-to-rgb.js +12 -0
- package/esm2015/utils/color/hsv-to-rgb.js +11 -0
- package/esm2015/utils/color/index.js +6 -0
- package/esm2015/utils/color/parse-color.js +27 -0
- package/esm2015/utils/color/rgb-to-hex.js +4 -0
- package/esm2015/utils/color/rgb-to-hsv.js +7 -0
- package/{esm5/directives/for/taiga-ui-cdk-directives-for.js → esm2015/utils/color/taiga-ui-cdk-utils-color.js} +1 -1
- package/esm2015/utils/dom/can-scroll.js +2 -7
- package/esm2015/utils/dom/contains-or-after.js +2 -7
- package/esm2015/utils/dom/element-checks.js +21 -0
- package/esm2015/utils/dom/get-actual-target.js +2 -5
- package/esm2015/utils/dom/get-clipboard-data-text.js +2 -5
- package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -7
- package/esm2015/utils/dom/get-element-obscurers.js +14 -17
- package/esm2015/utils/dom/get-element-offset.js +4 -7
- package/esm2015/utils/dom/get-scroll-parent.js +3 -6
- package/esm2015/utils/dom/get-selected-text.js +3 -3
- package/esm2015/utils/dom/index.js +3 -5
- package/esm2015/utils/dom/is-current-target.js +2 -7
- package/esm2015/utils/dom/is-element-editable.js +5 -0
- package/esm2015/utils/dom/is-inside-iframe.js +2 -5
- package/esm2015/utils/dom/is-node-in.js +7 -10
- 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 +7 -11
- package/esm2015/utils/focus/get-closest-focusable.js +26 -0
- package/esm2015/utils/focus/get-native-focused.js +4 -6
- package/esm2015/utils/focus/index.js +2 -3
- package/esm2015/utils/focus/is-native-focused-in.js +4 -7
- package/esm2015/utils/focus/is-native-focused.js +4 -7
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +4 -7
- package/esm2015/utils/focus/is-native-mouse-focusable.js +5 -9
- package/esm2015/utils/focus/move-focus.js +5 -9
- package/esm2015/utils/focus/set-native-mouse-focused.js +8 -7
- 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 +2 -5
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +1 -1
- package/esm2015/utils/index.js +2 -1
- package/esm2015/utils/math/clamp.js +2 -5
- 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 +2 -5
- package/esm2015/utils/math/round.js +4 -19
- package/esm2015/utils/math/sum.js +2 -5
- package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +1 -1
- package/esm2015/utils/math/to-int.js +2 -7
- package/esm2015/utils/math/to-radians.js +2 -5
- package/esm2015/utils/miscellaneous/array-remove.js +4 -0
- package/esm2015/utils/miscellaneous/array-toggle.js +6 -0
- package/esm2015/utils/miscellaneous/distance-between-touches.js +2 -7
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -7
- package/esm2015/utils/miscellaneous/flat-length.js +2 -5
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +2 -5
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +2 -7
- package/esm2015/utils/miscellaneous/index.js +4 -4
- package/esm2015/utils/miscellaneous/is-number.js +2 -7
- package/esm2015/utils/miscellaneous/is-present.js +2 -7
- package/esm2015/utils/miscellaneous/is-string.js +4 -0
- package/esm2015/utils/miscellaneous/mark-control-as-touched-and-validate.js +4 -9
- 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 +2 -7
- package/esm2015/utils/os/index.js +1 -1
- package/esm2015/utils/os/is-apple-platform.js +2 -5
- package/esm2015/utils/os/is-apple.js +4 -9
- package/esm2015/utils/os/is-ios.js +4 -9
- 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 -5
- 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 +164 -184
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +1 -10
- package/fesm2015/taiga-ui-cdk-classes.js.map +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 +62 -39
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +53 -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 +6 -4
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +29 -170
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +50 -41
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +98 -87
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +50 -41
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +37 -32
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +33 -26
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +38 -32
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +43 -38
- 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 +56 -46
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +30 -25
- 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 +35 -29
- 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 -26
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +61 -45
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js +42 -31
- 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 +76 -64
- 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 +53 -47
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +30 -25
- 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 +34 -28
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +41 -32
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +35 -26
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +30 -25
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +30 -25
- 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 -28
- 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 +4 -25
- 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 +24 -71
- 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-keys.js +21 -14
- package/fesm2015/taiga-ui-cdk-pipes-keys.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 -235
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +47 -25
- 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 +5 -34
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +67 -0
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-utils-dom.js +51 -111
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +35 -89
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +2 -22
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +11 -56
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +25 -87
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +6 -19
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +2 -5
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js +1 -0
- 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/drag-and-drop-from.d.ts +1 -5
- package/observables/focus-visible-observable.d.ts +1 -5
- package/observables/items-query-list-observable.d.ts +1 -3
- package/observables/mouse-drag-finish-from.d.ts +1 -3
- package/observables/must-be-present.d.ts +1 -5
- package/observables/package.json +2 -5
- package/observables/pressed-observable.d.ts +1 -5
- package/observables/prevent-default.d.ts +1 -5
- package/observables/replay-control-value-changes.d.ts +1 -2
- package/observables/stop-propagation.d.ts +1 -5
- package/observables/taiga-ui-cdk-observables.d.ts +1 -0
- package/observables/typed-from-event.d.ts +5 -21
- package/observables/watch.d.ts +1 -5
- package/package.json +10 -14
- 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/keys/keys.module.d.ts +5 -0
- package/pipes/keys/keys.pipe.d.ts +3 -0
- package/pipes/keys/package.json +2 -5
- package/pipes/keys/taiga-ui-cdk-pipes-keys.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/file-globs.js +3 -2
- package/schematics/constants/taiga-styles.d.ts +5 -0
- package/schematics/constants/taiga-styles.js +8 -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 +7 -0
- package/schematics/ng-add/schema.d.ts +8 -0
- package/schematics/ng-add/schema.json +9 -0
- package/schematics/ng-add/steps/add-taiga-icons.d.ts +1 -1
- package/schematics/ng-add/steps/add-taiga-icons.js +9 -6
- package/schematics/ng-add/steps/add-taiga-modules.js +5 -0
- package/schematics/ng-add/steps/add-taiga-styles.d.ts +0 -1
- package/schematics/ng-add/steps/add-taiga-styles.js +9 -19
- package/schematics/ng-add/steps/wrap-with-tui-root.js +4 -0
- package/schematics/ng-update/constants/breakpoints.d.ts +82 -0
- package/schematics/ng-update/constants/breakpoints.js +34 -0
- package/schematics/ng-update/constants/consts.d.ts +1 -1
- package/schematics/ng-update/constants/consts.js +171 -0
- package/schematics/ng-update/constants/deprecated-functions.js +2 -36
- 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 +2 -1
- package/schematics/ng-update/constants/templates.d.ts +12 -0
- package/schematics/ng-update/constants/templates.js +344 -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 +11 -0
- package/schematics/ng-update/index.d.ts +2 -11
- package/schematics/ng-update/index.js +35 -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-taiga-proprietary-icons.d.ts +3 -0
- package/schematics/ng-update/steps/migrate-taiga-proprietary-icons.js +51 -0
- package/schematics/ng-update/steps/migrate-templates.js +74 -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 +37 -0
- package/schematics/ng-update/steps/replace-services.js +1 -0
- package/schematics/ng-update/steps/replace-styles.d.ts +1 -0
- package/schematics/ng-update/steps/replace-styles.js +18 -0
- package/schematics/ng-update/steps/show-warnings.js +7 -3
- package/schematics/utils/add-import-to-closest-module.d.ts +1 -0
- package/schematics/utils/add-import-to-closest-module.js +18 -0
- package/schematics/utils/add-styles.d.ts +7 -0
- package/schematics/utils/add-styles.js +26 -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.d.ts +1 -0
- package/schematics/utils/colored-log.js +5 -0
- package/schematics/utils/create-angular-json.d.ts +3 -0
- package/schematics/utils/create-angular-json.js +29 -0
- package/schematics/utils/get-execution-time.js +1 -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.d.ts +1 -1
- package/schematics/utils/get-project.js +1 -4
- package/schematics/utils/import-manipulations.js +1 -0
- package/schematics/utils/insert-todo.d.ts +1 -0
- package/schematics/utils/insert-todo.js +3 -1
- package/schematics/utils/progress.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.d.ts +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.js +3 -12
- package/schematics/utils/templates/template-resource.js +1 -0
- package/services/destroy.service.d.ts +3 -0
- package/services/directive-styles.service.d.ts +5 -9
- package/services/focus-visible.service.d.ts +3 -1
- 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 -3
- 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 -3
- 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/alerts.d.ts +2 -1
- package/tokens/dialogs.d.ts +2 -1
- package/tokens/focusable-item-accessor.d.ts +2 -1
- package/tokens/index.d.ts +1 -1
- package/tokens/is-cypress.d.ts +0 -3
- package/tokens/package.json +2 -5
- package/tokens/range.d.ts +2 -0
- 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/index.d.ts +0 -1
- package/utils/browser/is-edge-older-than.d.ts +1 -5
- package/utils/browser/is-edge.d.ts +1 -5
- package/utils/browser/is-firefox.d.ts +1 -5
- package/utils/browser/is-safari.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/color/hex-to-rgb.d.ts +1 -0
- package/utils/color/hsv-to-rgb.d.ts +4 -0
- package/utils/color/index.d.ts +5 -0
- package/utils/color/package.json +10 -0
- package/utils/color/parse-color.d.ts +1 -0
- package/utils/color/rgb-to-hex.d.ts +1 -0
- package/utils/color/rgb-to-hsv.d.ts +1 -0
- package/{components/portal-host/taiga-ui-cdk-components-portal-host.d.ts → utils/color/taiga-ui-cdk-utils-color.d.ts} +1 -0
- package/utils/dom/can-scroll.d.ts +1 -5
- package/utils/dom/contains-or-after.d.ts +1 -5
- package/utils/dom/element-checks.d.ts +6 -0
- package/utils/dom/get-actual-target.d.ts +1 -3
- package/utils/dom/get-clipboard-data-text.d.ts +1 -3
- package/utils/dom/get-document-or-shadow-root.d.ts +1 -5
- package/utils/dom/get-element-obscurers.d.ts +1 -3
- package/utils/dom/get-element-offset.d.ts +1 -3
- package/utils/dom/get-scroll-parent.d.ts +1 -3
- package/utils/dom/index.d.ts +2 -4
- package/utils/dom/is-current-target.d.ts +1 -5
- package/utils/dom/is-element-editable.d.ts +1 -0
- package/utils/dom/is-inside-iframe.d.ts +1 -3
- package/utils/dom/is-node-in.d.ts +1 -3
- package/utils/dom/package.json +2 -5
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +1 -0
- package/utils/focus/blur-native-focused.d.ts +1 -3
- package/utils/focus/get-closest-focusable.d.ts +27 -0
- package/utils/focus/get-native-focused.d.ts +1 -3
- package/utils/focus/index.d.ts +1 -2
- 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 -5
- package/utils/focus/move-focus.d.ts +1 -3
- package/utils/focus/package.json +2 -5
- package/utils/focus/set-native-mouse-focused.d.ts +1 -3
- 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/index.d.ts +1 -0
- package/utils/math/clamp.d.ts +1 -3
- 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/quantize.d.ts +1 -3
- package/utils/math/round.d.ts +3 -15
- package/utils/math/sum.d.ts +1 -3
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +1 -0
- package/utils/math/to-int.d.ts +1 -5
- package/utils/math/to-radians.d.ts +1 -3
- package/utils/miscellaneous/array-remove.d.ts +1 -0
- package/utils/miscellaneous/array-toggle.d.ts +1 -0
- package/utils/miscellaneous/distance-between-touches.d.ts +1 -5
- package/utils/miscellaneous/ease-in-out-quad.d.ts +1 -5
- package/utils/miscellaneous/flat-length.d.ts +1 -3
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +1 -3
- package/utils/miscellaneous/get-swipe-direction.d.ts +1 -5
- package/utils/miscellaneous/index.d.ts +3 -3
- package/utils/miscellaneous/is-number.d.ts +1 -5
- package/utils/miscellaneous/is-present.d.ts +1 -5
- package/utils/miscellaneous/is-string.d.ts +1 -0
- package/utils/miscellaneous/mark-control-as-touched-and-validate.d.ts +1 -5
- 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/miscellaneous/uniq-by.d.ts +1 -5
- package/utils/os/is-apple-platform.d.ts +1 -3
- package/utils/os/is-apple.d.ts +1 -5
- package/utils/os/is-ios.d.ts +1 -5
- 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/svg-linear-gradient-processor.d.ts +1 -3
- 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-keys.umd.min.js +0 -2
- package/bundles/taiga-ui-cdk-pipes-keys.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.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/tokens/sanitizer.js +0 -4
- package/esm2015/utils/browser/is-ie.js +0 -9
- package/esm2015/utils/dom/custom-event.js +0 -10
- package/esm2015/utils/dom/get-closest-element.js +0 -20
- package/esm2015/utils/dom/is-element.js +0 -5
- package/esm2015/utils/dom/is-form-field.js +0 -8
- package/esm2015/utils/focus/get-closest-keyboard-focusable.js +0 -40
- package/esm2015/utils/focus/set-native-focused.js +0 -19
- package/esm2015/utils/format/pad-start.js +0 -17
- package/esm2015/utils/miscellaneous/fallback-value.js +0 -12
- package/esm2015/utils/miscellaneous/identity.js +0 -8
- package/esm2015/utils/miscellaneous/is-element-editable.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 -12
- 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 -64
- package/esm5/constants/version.js +0 -2
- 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-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 -4
- package/esm5/pipes/keys/index.js +0 -3
- package/esm5/pipes/keys/keys.module.js +0 -16
- package/esm5/pipes/keys/keys.pipe.js +0 -15
- package/esm5/pipes/keys/taiga-ui-cdk-pipes-keys.js +0 -5
- 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 -18
- package/esm5/utils/dom/is-current-target.js +0 -10
- package/esm5/utils/dom/is-element.js +0 -5
- 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 -162
- 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-keys.js +0 -33
- package/fesm5/taiga-ui-cdk-pipes-keys.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 -8
- 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 -297
- 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/keys/taiga-ui-cdk-pipes-keys.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/sanitizer.d.ts +0 -2
- package/tokens/taiga-ui-cdk-tokens.metadata.json +0 -1
- package/types/taiga-ui-cdk-types.metadata.json +0 -1
- package/utils/browser/is-ie.d.ts +0 -5
- 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/is-element.d.ts +0 -1
- package/utils/dom/is-form-field.d.ts +0 -1
- package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +0 -1
- package/utils/focus/get-closest-keyboard-focusable.d.ts +0 -16
- package/utils/focus/set-native-focused.d.ts +0 -10
- 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/identity.d.ts +0 -4
- package/utils/miscellaneous/is-element-editable.d.ts +0 -5
- 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,1051 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, inject } from '@angular/core';
|
|
2
|
-
import { CHAR_NO_BREAK_SPACE, CHAR_EN_DASH } from '@taiga-ui/cdk/constants';
|
|
3
|
-
import { __extends } from 'tslib';
|
|
4
|
-
import { tuiAssert } from '@taiga-ui/cdk/classes';
|
|
5
|
-
import { InvalidYearException, InvalidMonthException, InvalidDayException } from '@taiga-ui/cdk/exceptions';
|
|
6
|
-
import { padStart } from '@taiga-ui/cdk/utils/format';
|
|
7
|
-
import { inRange, normalizeToIntNumber } from '@taiga-ui/cdk/utils/math';
|
|
8
|
-
|
|
9
|
-
var DAYS_IN_WEEK = 7;
|
|
10
|
-
var DAYS_IN_NORMAL_YEAR = 365;
|
|
11
|
-
var DAYS_IN_LEAP_YEAR = 366;
|
|
12
|
-
var MONTHS_IN_YEAR = 12;
|
|
13
|
-
var MIN_DAY = 1;
|
|
14
|
-
var MIN_MONTH = 0;
|
|
15
|
-
var MAX_MONTH = 11;
|
|
16
|
-
var MIN_YEAR = 0;
|
|
17
|
-
var MAX_YEAR = 9999;
|
|
18
|
-
var RANGE_SEPARATOR_CHAR = "" + CHAR_NO_BREAK_SPACE + CHAR_EN_DASH + CHAR_NO_BREAK_SPACE;
|
|
19
|
-
var MILLISECONDS_IN_SECOND = 1000;
|
|
20
|
-
var SECONDS_IN_MINUTE = 60;
|
|
21
|
-
var MINUTES_IN_HOUR = 60;
|
|
22
|
-
var HOURS_IN_DAY = 24;
|
|
23
|
-
var MILLISECONDS_IN_MINUTE = MILLISECONDS_IN_SECOND * SECONDS_IN_MINUTE;
|
|
24
|
-
var MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * MINUTES_IN_HOUR;
|
|
25
|
-
var MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated dont use it. See {@link TUI_DATE_FORMAT}
|
|
29
|
-
*/
|
|
30
|
-
var TUI_DATE_FILLER = new InjectionToken("date filler for Taiga UI", {
|
|
31
|
-
factory: function () { return "dd.mm.yyyy"; },
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated dont use it
|
|
35
|
-
*/
|
|
36
|
-
var TUI_DATE_RANGE_FILLER = new InjectionToken("date range filler for Taiga UI", {
|
|
37
|
-
factory: function () {
|
|
38
|
-
var dateFiller = inject(TUI_DATE_FILLER);
|
|
39
|
-
return "" + dateFiller + RANGE_SEPARATOR_CHAR + dateFiller;
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* @internal 'dd.mm.yyyy'.length
|
|
44
|
-
* Used in:
|
|
45
|
-
* - {@link TuiInputDateComponent}
|
|
46
|
-
* - {@link TuiInputDateRangeComponent}
|
|
47
|
-
* - {@link TuiInputDateTimeComponent}
|
|
48
|
-
*/
|
|
49
|
-
var DATE_FILLER_LENGTH = 10;
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* Used in {@link TuiInputDateRangeComponent}
|
|
53
|
-
*/
|
|
54
|
-
var DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
|
|
55
|
-
|
|
56
|
-
var TUI_DATE_FORMAT = new InjectionToken("Active date format for Taiga UI", {
|
|
57
|
-
factory: function () { return "DMY"; },
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
var TUI_DATE_SEPARATOR = new InjectionToken("Date separator for Taiga UI components", {
|
|
61
|
-
factory: function () { return "."; },
|
|
62
|
-
});
|
|
63
|
-
var changeDateSeparator = function (dateString, newDateSeparator) { return dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator); };
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Immutable year object
|
|
67
|
-
* @nosideeffects
|
|
68
|
-
*/
|
|
69
|
-
var TuiYear = /** @class */ (function () {
|
|
70
|
-
function TuiYear(year) {
|
|
71
|
-
this.year = year;
|
|
72
|
-
tuiAssert.assert(TuiYear.isValidYear(year));
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Checks year for validity
|
|
76
|
-
*/
|
|
77
|
-
TuiYear.isValidYear = function (year) {
|
|
78
|
-
return Number.isInteger(year) && inRange(year, MIN_YEAR, MAX_YEAR + 1);
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Check if passed year is a leap year
|
|
82
|
-
*/
|
|
83
|
-
TuiYear.isLeapYear = function (year) {
|
|
84
|
-
tuiAssert.assert(TuiYear.isValidYear(year));
|
|
85
|
-
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Returns amount of leap years from year 0 to the passed one
|
|
89
|
-
*/
|
|
90
|
-
TuiYear.getAbsoluteLeapYears = function (year) {
|
|
91
|
-
tuiAssert.assert(TuiYear.isValidYear(year));
|
|
92
|
-
return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated DONT USE IT (will be deleted soon)
|
|
96
|
-
*
|
|
97
|
-
* Returns day of week offset of the beginning of the passed year
|
|
98
|
-
*
|
|
99
|
-
* @param year
|
|
100
|
-
* @param absoluteLeapYears amount of leap years prior to the passed one
|
|
101
|
-
* @return offset in days
|
|
102
|
-
*/
|
|
103
|
-
TuiYear.getYearStartDaysOffset = function (year, absoluteLeapYears) {
|
|
104
|
-
tuiAssert.assert(TuiYear.isValidYear(year));
|
|
105
|
-
tuiAssert.assert(Number.isInteger(absoluteLeapYears));
|
|
106
|
-
tuiAssert.assert(year >= absoluteLeapYears);
|
|
107
|
-
tuiAssert.assert(absoluteLeapYears >= 0);
|
|
108
|
-
return ((absoluteLeapYears * DAYS_IN_LEAP_YEAR +
|
|
109
|
-
(year - absoluteLeapYears) * DAYS_IN_NORMAL_YEAR +
|
|
110
|
-
5) %
|
|
111
|
-
DAYS_IN_WEEK);
|
|
112
|
-
};
|
|
113
|
-
TuiYear.lengthBetween = function (from, to) {
|
|
114
|
-
return to.year - from.year;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Normalizes year by clamping it between min and max years
|
|
118
|
-
*/
|
|
119
|
-
TuiYear.normalizeYearPart = function (year) {
|
|
120
|
-
return normalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
|
|
121
|
-
};
|
|
122
|
-
Object.defineProperty(TuiYear.prototype, "formattedYear", {
|
|
123
|
-
get: function () {
|
|
124
|
-
return padStart(String(this.year), 4, "0");
|
|
125
|
-
},
|
|
126
|
-
enumerable: true,
|
|
127
|
-
configurable: true
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(TuiYear.prototype, "isLeapYear", {
|
|
130
|
-
get: function () {
|
|
131
|
-
return TuiYear.isLeapYear(this.year);
|
|
132
|
-
},
|
|
133
|
-
enumerable: true,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(TuiYear.prototype, "absoluteLeapYears", {
|
|
137
|
-
/**
|
|
138
|
-
* Returns amount of leap years from year 0 to current
|
|
139
|
-
*/
|
|
140
|
-
get: function () {
|
|
141
|
-
return TuiYear.getAbsoluteLeapYears(this.year);
|
|
142
|
-
},
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true
|
|
145
|
-
});
|
|
146
|
-
Object.defineProperty(TuiYear.prototype, "yearStartDaysOffset", {
|
|
147
|
-
/**
|
|
148
|
-
* @deprecated DONT USE IT (will be deleted soon)
|
|
149
|
-
*
|
|
150
|
-
* Returns day of week offset of the beginning of the current year
|
|
151
|
-
*/
|
|
152
|
-
get: function () {
|
|
153
|
-
return TuiYear.getYearStartDaysOffset(this.year, this.absoluteLeapYears);
|
|
154
|
-
},
|
|
155
|
-
enumerable: true,
|
|
156
|
-
configurable: true
|
|
157
|
-
});
|
|
158
|
-
/**
|
|
159
|
-
* Passed year is after current
|
|
160
|
-
*/
|
|
161
|
-
TuiYear.prototype.yearBefore = function (_a) {
|
|
162
|
-
var year = _a.year;
|
|
163
|
-
return this.year < year;
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
* Passed year is the same or after current
|
|
167
|
-
*/
|
|
168
|
-
TuiYear.prototype.yearSameOrBefore = function (_a) {
|
|
169
|
-
var year = _a.year;
|
|
170
|
-
return this.year <= year;
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Passed year is the same as current
|
|
174
|
-
*/
|
|
175
|
-
TuiYear.prototype.yearSame = function (_a) {
|
|
176
|
-
var year = _a.year;
|
|
177
|
-
return this.year === year;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* Passed year is either the same of before the current
|
|
181
|
-
*/
|
|
182
|
-
TuiYear.prototype.yearSameOrAfter = function (_a) {
|
|
183
|
-
var year = _a.year;
|
|
184
|
-
return this.year >= year;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Passed year is before current
|
|
188
|
-
*/
|
|
189
|
-
TuiYear.prototype.yearAfter = function (_a) {
|
|
190
|
-
var year = _a.year;
|
|
191
|
-
return this.year > year;
|
|
192
|
-
};
|
|
193
|
-
// TODO: 3.0 Consider removing `backwards` option
|
|
194
|
-
/**
|
|
195
|
-
* Immutably offsets year
|
|
196
|
-
*/
|
|
197
|
-
TuiYear.prototype.append = function (_a, backwards) {
|
|
198
|
-
var _b = _a.year, year = _b === void 0 ? 0 : _b;
|
|
199
|
-
if (backwards === void 0) { backwards = false; }
|
|
200
|
-
tuiAssert.assert(Number.isInteger(year));
|
|
201
|
-
if (backwards) {
|
|
202
|
-
year *= -1;
|
|
203
|
-
}
|
|
204
|
-
var resultYear = this.year + year;
|
|
205
|
-
tuiAssert.assert(TuiYear.isValidYear(resultYear));
|
|
206
|
-
return new TuiYear(resultYear);
|
|
207
|
-
};
|
|
208
|
-
TuiYear.prototype.toString = function () {
|
|
209
|
-
return this.formattedYear;
|
|
210
|
-
};
|
|
211
|
-
TuiYear.prototype.valueOf = function () {
|
|
212
|
-
return this.year;
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Returns the primitive value of the given Date object.
|
|
216
|
-
* Depending on the argument, the method can return either a string or a number.
|
|
217
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
|
218
|
-
*/
|
|
219
|
-
TuiYear.prototype[Symbol.toPrimitive] = function (hint) {
|
|
220
|
-
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
|
221
|
-
};
|
|
222
|
-
TuiYear.prototype.toJSON = function () {
|
|
223
|
-
return this.formattedYear;
|
|
224
|
-
};
|
|
225
|
-
return TuiYear;
|
|
226
|
-
}());
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Immutable object consisting of year and month
|
|
230
|
-
*/
|
|
231
|
-
var TuiMonth = /** @class */ (function (_super) {
|
|
232
|
-
__extends(TuiMonth, _super);
|
|
233
|
-
/**
|
|
234
|
-
* @param year
|
|
235
|
-
* @param month (starting with 0)
|
|
236
|
-
*/
|
|
237
|
-
function TuiMonth(year, month) {
|
|
238
|
-
var _this = _super.call(this, year) || this;
|
|
239
|
-
_this.month = month;
|
|
240
|
-
tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
|
241
|
-
return _this;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Tests month and year for validity
|
|
245
|
-
*/
|
|
246
|
-
TuiMonth.isValidMonth = function (year, month) {
|
|
247
|
-
return TuiYear.isValidYear(year) && TuiMonth.isValidMonthPart(month);
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* Returns number of days in a month
|
|
251
|
-
*/
|
|
252
|
-
TuiMonth.getMonthDaysCount = function (month, isLeapYear) {
|
|
253
|
-
tuiAssert.assert(TuiMonth.isValidMonthPart(month));
|
|
254
|
-
switch (month) {
|
|
255
|
-
case 1 /* February */:
|
|
256
|
-
return isLeapYear ? 29 : 28;
|
|
257
|
-
case 3 /* April */:
|
|
258
|
-
case 5 /* June */:
|
|
259
|
-
case 8 /* September */:
|
|
260
|
-
case 10 /* November */:
|
|
261
|
-
return 30;
|
|
262
|
-
default:
|
|
263
|
-
return 31;
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* Returns current month and year based on local time zone
|
|
268
|
-
* @nosideeffects
|
|
269
|
-
*/
|
|
270
|
-
TuiMonth.currentLocal = function () {
|
|
271
|
-
var nativeDate = new Date();
|
|
272
|
-
return new TuiMonth(nativeDate.getFullYear(), nativeDate.getMonth());
|
|
273
|
-
};
|
|
274
|
-
/**
|
|
275
|
-
* Returns current month and year based on UTC
|
|
276
|
-
*/
|
|
277
|
-
TuiMonth.currentUtc = function () {
|
|
278
|
-
var nativeDate = new Date();
|
|
279
|
-
return new TuiMonth(nativeDate.getUTCFullYear(), nativeDate.getUTCMonth());
|
|
280
|
-
};
|
|
281
|
-
TuiMonth.lengthBetween = function (from, to) {
|
|
282
|
-
var absoluteFrom = from.month + from.year * 12;
|
|
283
|
-
var absoluteTo = to.month + to.year * 12;
|
|
284
|
-
return absoluteTo - absoluteFrom;
|
|
285
|
-
};
|
|
286
|
-
/**
|
|
287
|
-
* Normalizes number by clamping it between min and max month
|
|
288
|
-
*/
|
|
289
|
-
TuiMonth.normalizeMonthPart = function (month) {
|
|
290
|
-
return normalizeToIntNumber(month, MIN_MONTH, MAX_MONTH);
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* Tests month for validity
|
|
294
|
-
*/
|
|
295
|
-
TuiMonth.isValidMonthPart = function (month) {
|
|
296
|
-
return Number.isInteger(month) && inRange(month, MIN_MONTH, MAX_MONTH + 1);
|
|
297
|
-
};
|
|
298
|
-
Object.defineProperty(TuiMonth.prototype, "formattedMonthPart", {
|
|
299
|
-
get: function () {
|
|
300
|
-
return padStart(String(this.month + 1), 2, "0");
|
|
301
|
-
},
|
|
302
|
-
enumerable: true,
|
|
303
|
-
configurable: true
|
|
304
|
-
});
|
|
305
|
-
Object.defineProperty(TuiMonth.prototype, "formattedMonth", {
|
|
306
|
-
/**
|
|
307
|
-
* @deprecated
|
|
308
|
-
* Formatter month and year
|
|
309
|
-
*/
|
|
310
|
-
get: function () {
|
|
311
|
-
return this.formattedMonthPart + "." + this.formattedYear;
|
|
312
|
-
},
|
|
313
|
-
enumerable: true,
|
|
314
|
-
configurable: true
|
|
315
|
-
});
|
|
316
|
-
Object.defineProperty(TuiMonth.prototype, "weeksRowsCount", {
|
|
317
|
-
/**
|
|
318
|
-
* @deprecated DONT USE IT (will be deleted soon)
|
|
319
|
-
*
|
|
320
|
-
* Calculates number of weeks in a month (counting non-full weeks)
|
|
321
|
-
*/
|
|
322
|
-
get: function () {
|
|
323
|
-
return Math.ceil((this.monthStartDaysOffset + this.daysCount) / DAYS_IN_WEEK);
|
|
324
|
-
},
|
|
325
|
-
enumerable: true,
|
|
326
|
-
configurable: true
|
|
327
|
-
});
|
|
328
|
-
Object.defineProperty(TuiMonth.prototype, "daysCount", {
|
|
329
|
-
/**
|
|
330
|
-
* Returns days in a month
|
|
331
|
-
*/
|
|
332
|
-
get: function () {
|
|
333
|
-
return TuiMonth.getMonthDaysCount(this.month, this.isLeapYear);
|
|
334
|
-
},
|
|
335
|
-
enumerable: true,
|
|
336
|
-
configurable: true
|
|
337
|
-
});
|
|
338
|
-
Object.defineProperty(TuiMonth.prototype, "monthStartDaysOffset", {
|
|
339
|
-
/**
|
|
340
|
-
* @deprecated DONT USE IT (will be deleted soon)
|
|
341
|
-
*
|
|
342
|
-
* Computes day of week offset of the beginning of the month
|
|
343
|
-
*/
|
|
344
|
-
get: function () {
|
|
345
|
-
var result = this.yearStartDaysOffset;
|
|
346
|
-
for (var currentMonth = 0; currentMonth <= this.month - 1; currentMonth++) {
|
|
347
|
-
result += TuiMonth.getMonthDaysCount(currentMonth, this.isLeapYear);
|
|
348
|
-
}
|
|
349
|
-
return result % DAYS_IN_WEEK;
|
|
350
|
-
},
|
|
351
|
-
enumerable: true,
|
|
352
|
-
configurable: true
|
|
353
|
-
});
|
|
354
|
-
/**
|
|
355
|
-
* Passed month and year are after current
|
|
356
|
-
*/
|
|
357
|
-
TuiMonth.prototype.monthBefore = function (another) {
|
|
358
|
-
return (this.yearBefore(another) ||
|
|
359
|
-
(this.yearSame(another) && this.month < another.month));
|
|
360
|
-
};
|
|
361
|
-
/**
|
|
362
|
-
* Passed month and year are after or the same as current
|
|
363
|
-
*/
|
|
364
|
-
TuiMonth.prototype.monthSameOrBefore = function (another) {
|
|
365
|
-
return (this.yearBefore(another) ||
|
|
366
|
-
(this.yearSame(another) && this.month <= another.month));
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* Passed month and year are the same as current
|
|
370
|
-
*/
|
|
371
|
-
TuiMonth.prototype.monthSame = function (another) {
|
|
372
|
-
return this.yearSame(another) && this.month === another.month;
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* Passed month and year are either before or equal to current
|
|
376
|
-
*/
|
|
377
|
-
TuiMonth.prototype.monthSameOrAfter = function (another) {
|
|
378
|
-
return (this.yearAfter(another) ||
|
|
379
|
-
(this.yearSame(another) && this.month >= another.month));
|
|
380
|
-
};
|
|
381
|
-
/**
|
|
382
|
-
* Passed month and year are before current
|
|
383
|
-
*/
|
|
384
|
-
TuiMonth.prototype.monthAfter = function (another) {
|
|
385
|
-
return (this.yearAfter(another) ||
|
|
386
|
-
(this.yearSame(another) && this.month > another.month));
|
|
387
|
-
};
|
|
388
|
-
// TODO: 3.0 Consider removing `backwards` option
|
|
389
|
-
/**
|
|
390
|
-
* Immutably alters current month and year by passed offset
|
|
391
|
-
*
|
|
392
|
-
* @param offset
|
|
393
|
-
* @param backwards shift date backwards
|
|
394
|
-
* @return new month and year object as a result of offsetting current
|
|
395
|
-
*/
|
|
396
|
-
TuiMonth.prototype.append = function (_a, backwards) {
|
|
397
|
-
var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c;
|
|
398
|
-
if (backwards === void 0) { backwards = false; }
|
|
399
|
-
if (backwards) {
|
|
400
|
-
year *= -1;
|
|
401
|
-
month *= -1;
|
|
402
|
-
}
|
|
403
|
-
var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
|
404
|
-
return new TuiMonth(Math.floor(totalMonths / MONTHS_IN_YEAR), totalMonths % MONTHS_IN_YEAR);
|
|
405
|
-
};
|
|
406
|
-
TuiMonth.prototype.toString = function () {
|
|
407
|
-
return this.formattedMonth;
|
|
408
|
-
};
|
|
409
|
-
TuiMonth.prototype.valueOf = function () {
|
|
410
|
-
return this.toLocalNativeDate().valueOf();
|
|
411
|
-
};
|
|
412
|
-
TuiMonth.prototype.toJSON = function () {
|
|
413
|
-
return _super.prototype.toJSON.call(this) + "-" + this.formattedMonthPart;
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Returns native {@link Date} based on local time zone
|
|
417
|
-
*/
|
|
418
|
-
TuiMonth.prototype.toLocalNativeDate = function () {
|
|
419
|
-
return new Date(this.year, this.month);
|
|
420
|
-
};
|
|
421
|
-
/**
|
|
422
|
-
* Returns native {@link Date} based on UTC
|
|
423
|
-
*/
|
|
424
|
-
TuiMonth.prototype.toUtcNativeDate = function () {
|
|
425
|
-
return new Date(Date.UTC(this.year, this.month));
|
|
426
|
-
};
|
|
427
|
-
return TuiMonth;
|
|
428
|
-
}(TuiYear));
|
|
429
|
-
|
|
430
|
-
// TODO: Localized formatting
|
|
431
|
-
/**
|
|
432
|
-
* Immutable date object, consisting of day, month and year
|
|
433
|
-
*/
|
|
434
|
-
var TuiDay = /** @class */ (function (_super) {
|
|
435
|
-
__extends(TuiDay, _super);
|
|
436
|
-
function TuiDay(year, month, day) {
|
|
437
|
-
var _this = _super.call(this, year, month) || this;
|
|
438
|
-
_this.day = day;
|
|
439
|
-
tuiAssert.assert(TuiDay.isValidDay(year, month, day));
|
|
440
|
-
return _this;
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Creates {@link TuiDay} from native {@link Date} based on local time zone
|
|
444
|
-
*/
|
|
445
|
-
TuiDay.fromLocalNativeDate = function (date) {
|
|
446
|
-
return new TuiDay(date.getFullYear(), date.getMonth(), date.getDate());
|
|
447
|
-
};
|
|
448
|
-
/**
|
|
449
|
-
* Creates {@link TuiDay} from native {@link Date} using UTC
|
|
450
|
-
*/
|
|
451
|
-
TuiDay.fromUtcNativeDate = function (date) {
|
|
452
|
-
return new TuiDay(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
|
453
|
-
};
|
|
454
|
-
/**
|
|
455
|
-
* Check validity of year, month and day
|
|
456
|
-
*
|
|
457
|
-
* @param year
|
|
458
|
-
* @param month
|
|
459
|
-
* @param day
|
|
460
|
-
* @return boolean validity
|
|
461
|
-
*/
|
|
462
|
-
TuiDay.isValidDay = function (year, month, day) {
|
|
463
|
-
return (TuiMonth.isValidMonth(year, month) &&
|
|
464
|
-
Number.isInteger(day) &&
|
|
465
|
-
inRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1));
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
* @deprecated DONT USE IT (will be deleted soon)
|
|
469
|
-
*
|
|
470
|
-
* Calculated day on a calendar grid
|
|
471
|
-
*
|
|
472
|
-
* @param month
|
|
473
|
-
* @param row row in a calendar
|
|
474
|
-
* @param col column in a calendar
|
|
475
|
-
* @return resulting day on these coordinates (could exceed passed month)
|
|
476
|
-
*/
|
|
477
|
-
TuiDay.getDayFromMonthRowCol = function (month, row, col) {
|
|
478
|
-
tuiAssert.assert(Number.isInteger(row));
|
|
479
|
-
tuiAssert.assert(inRange(row, 0, 6));
|
|
480
|
-
tuiAssert.assert(Number.isInteger(col));
|
|
481
|
-
tuiAssert.assert(inRange(col, 0, DAYS_IN_WEEK));
|
|
482
|
-
var day = row * DAYS_IN_WEEK + col - month.monthStartDaysOffset + 1;
|
|
483
|
-
if (day > month.daysCount) {
|
|
484
|
-
day = day - month.daysCount;
|
|
485
|
-
month = month.append({ month: 1 });
|
|
486
|
-
}
|
|
487
|
-
if (day <= 0) {
|
|
488
|
-
month = month.append({ month: -1 });
|
|
489
|
-
day = month.daysCount + day;
|
|
490
|
-
}
|
|
491
|
-
return new TuiDay(month.year, month.month, day);
|
|
492
|
-
};
|
|
493
|
-
/**
|
|
494
|
-
* Current day based on local time zone
|
|
495
|
-
*/
|
|
496
|
-
TuiDay.currentLocal = function () {
|
|
497
|
-
var nativeDate = new Date();
|
|
498
|
-
var year = nativeDate.getFullYear();
|
|
499
|
-
var month = nativeDate.getMonth();
|
|
500
|
-
var day = nativeDate.getDate();
|
|
501
|
-
return new TuiDay(year, month, day);
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* Returns current day based on UTC
|
|
505
|
-
*/
|
|
506
|
-
TuiDay.currentUtc = function () {
|
|
507
|
-
var nativeDate = new Date();
|
|
508
|
-
var year = nativeDate.getUTCFullYear();
|
|
509
|
-
var month = nativeDate.getUTCMonth();
|
|
510
|
-
var day = nativeDate.getUTCDate();
|
|
511
|
-
return new TuiDay(year, month, day);
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* Calculates {@link TuiDay} normalizing year, month and day. {@link NaN} is turned into minimal value.
|
|
515
|
-
*
|
|
516
|
-
* @param year any year value, including invalid
|
|
517
|
-
* @param month any month value, including invalid (months start with 0)
|
|
518
|
-
* @param day any day value, including invalid
|
|
519
|
-
* @return normalized date
|
|
520
|
-
*/
|
|
521
|
-
TuiDay.normalizeOf = function (year, month, day) {
|
|
522
|
-
var normalizedYear = TuiYear.normalizeYearPart(year);
|
|
523
|
-
var normalizedMonth = TuiMonth.normalizeMonthPart(month);
|
|
524
|
-
var normalizedDay = TuiDay.normalizeDayPart(day, normalizedMonth, normalizedYear);
|
|
525
|
-
return new TuiDay(normalizedYear, normalizedMonth, normalizedDay);
|
|
526
|
-
};
|
|
527
|
-
TuiDay.lengthBetween = function (from, to) {
|
|
528
|
-
return Math.round((to.toLocalNativeDate().getTime() - from.toLocalNativeDate().getTime()) /
|
|
529
|
-
(1000 * 60 * 60 * 24));
|
|
530
|
-
};
|
|
531
|
-
TuiDay.parseRawDateString = function (date, dateMode) {
|
|
532
|
-
if (dateMode === void 0) { dateMode = "DMY"; }
|
|
533
|
-
tuiAssert.assert(date.length === DATE_FILLER_LENGTH, "[parseRawDateString]: wrong date string length");
|
|
534
|
-
switch (dateMode) {
|
|
535
|
-
case "YMD":
|
|
536
|
-
return {
|
|
537
|
-
day: parseInt(date.slice(8, 10), 10),
|
|
538
|
-
month: parseInt(date.slice(5, 7), 10) - 1,
|
|
539
|
-
year: parseInt(date.slice(0, 4), 10),
|
|
540
|
-
};
|
|
541
|
-
case "MDY":
|
|
542
|
-
return {
|
|
543
|
-
day: parseInt(date.slice(3, 5), 10),
|
|
544
|
-
month: parseInt(date.slice(0, 2), 10) - 1,
|
|
545
|
-
year: parseInt(date.slice(6, 10), 10),
|
|
546
|
-
};
|
|
547
|
-
default:
|
|
548
|
-
case "DMY":
|
|
549
|
-
return {
|
|
550
|
-
day: parseInt(date.slice(0, 2), 10),
|
|
551
|
-
month: parseInt(date.slice(3, 5), 10) - 1,
|
|
552
|
-
year: parseInt(date.slice(6, 10), 10),
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
// TODO: Move month and year related code corresponding classes
|
|
557
|
-
/**
|
|
558
|
-
* Parsing a string with date with normalization
|
|
559
|
-
*
|
|
560
|
-
* @param rawDate date string
|
|
561
|
-
* @param dateMode date format of the date string (DMY | MDY | YMD)
|
|
562
|
-
* @return normalized date
|
|
563
|
-
*/
|
|
564
|
-
TuiDay.normalizeParse = function (rawDate, dateMode) {
|
|
565
|
-
if (dateMode === void 0) { dateMode = "DMY"; }
|
|
566
|
-
var _a = this.parseRawDateString(rawDate, dateMode), day = _a.day, month = _a.month, year = _a.year;
|
|
567
|
-
return TuiDay.normalizeOf(year, month, day);
|
|
568
|
-
};
|
|
569
|
-
/**
|
|
570
|
-
* Parsing a date stringified in a toJSON format
|
|
571
|
-
* @param yearMonthDayString date string in format of YYYY-MM-DD
|
|
572
|
-
* @return date
|
|
573
|
-
* @throws exceptions if any part of the date is invalid
|
|
574
|
-
*/
|
|
575
|
-
TuiDay.jsonParse = function (yearMonthDayString) {
|
|
576
|
-
var _a = this.parseRawDateString(yearMonthDayString, "YMD"), day = _a.day, month = _a.month, year = _a.year;
|
|
577
|
-
if (!TuiYear.isValidYear(year)) {
|
|
578
|
-
throw new InvalidYearException(year);
|
|
579
|
-
}
|
|
580
|
-
if (!TuiMonth.isValidMonth(year, month)) {
|
|
581
|
-
throw new InvalidMonthException(month);
|
|
582
|
-
}
|
|
583
|
-
if (!Number.isInteger(day) ||
|
|
584
|
-
!inRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1)) {
|
|
585
|
-
throw new InvalidDayException(day);
|
|
586
|
-
}
|
|
587
|
-
return new TuiDay(year, month, day);
|
|
588
|
-
};
|
|
589
|
-
TuiDay.normalizeDayPart = function (day, month, year) {
|
|
590
|
-
tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
|
591
|
-
var monthDaysCount = TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year));
|
|
592
|
-
return normalizeToIntNumber(day, 1, monthDaysCount);
|
|
593
|
-
};
|
|
594
|
-
Object.defineProperty(TuiDay.prototype, "formattedDayPart", {
|
|
595
|
-
get: function () {
|
|
596
|
-
return padStart(String(this.day), 2, "0");
|
|
597
|
-
},
|
|
598
|
-
enumerable: true,
|
|
599
|
-
configurable: true
|
|
600
|
-
});
|
|
601
|
-
Object.defineProperty(TuiDay.prototype, "formattedDay", {
|
|
602
|
-
/**
|
|
603
|
-
* @deprecated use {@link getFormattedDay} instead
|
|
604
|
-
* Formatted whole date
|
|
605
|
-
*/
|
|
606
|
-
get: function () {
|
|
607
|
-
return this.formattedDayPart + "." + this.formattedMonth;
|
|
608
|
-
},
|
|
609
|
-
enumerable: true,
|
|
610
|
-
configurable: true
|
|
611
|
-
});
|
|
612
|
-
Object.defineProperty(TuiDay.prototype, "isWeekend", {
|
|
613
|
-
get: function () {
|
|
614
|
-
var dayOfWeek = this.dayOfWeek(false);
|
|
615
|
-
return dayOfWeek === 6 /* Saturday */ || dayOfWeek === 0 /* Sunday */;
|
|
616
|
-
},
|
|
617
|
-
enumerable: true,
|
|
618
|
-
configurable: true
|
|
619
|
-
});
|
|
620
|
-
/**
|
|
621
|
-
* Returns day of week
|
|
622
|
-
*
|
|
623
|
-
* @param startFromMonday whether week starts from Monday and not from Sunday
|
|
624
|
-
* @return day of week (from 0 to 6)
|
|
625
|
-
*/
|
|
626
|
-
TuiDay.prototype.dayOfWeek = function (startFromMonday) {
|
|
627
|
-
if (startFromMonday === void 0) { startFromMonday = true; }
|
|
628
|
-
var dayOfWeek = startFromMonday
|
|
629
|
-
? this.toLocalNativeDate().getDay() - 1
|
|
630
|
-
: this.toLocalNativeDate().getDay();
|
|
631
|
-
return dayOfWeek < 0 ? 6 : dayOfWeek;
|
|
632
|
-
};
|
|
633
|
-
/**
|
|
634
|
-
* Passed date is after current
|
|
635
|
-
*/
|
|
636
|
-
TuiDay.prototype.dayBefore = function (another) {
|
|
637
|
-
return (this.monthBefore(another) ||
|
|
638
|
-
(this.monthSame(another) && this.day < another.day));
|
|
639
|
-
};
|
|
640
|
-
/**
|
|
641
|
-
* Passed date is after or equals to current
|
|
642
|
-
*/
|
|
643
|
-
TuiDay.prototype.daySameOrBefore = function (another) {
|
|
644
|
-
return (this.monthBefore(another) ||
|
|
645
|
-
(this.monthSame(another) && this.day <= another.day));
|
|
646
|
-
};
|
|
647
|
-
/**
|
|
648
|
-
* Passed date is the same as current
|
|
649
|
-
*/
|
|
650
|
-
TuiDay.prototype.daySame = function (another) {
|
|
651
|
-
return this.monthSame(another) && this.day === another.day;
|
|
652
|
-
};
|
|
653
|
-
/**
|
|
654
|
-
* Passed date is either before or the same as current
|
|
655
|
-
*/
|
|
656
|
-
TuiDay.prototype.daySameOrAfter = function (another) {
|
|
657
|
-
return (this.monthAfter(another) ||
|
|
658
|
-
(this.monthSame(another) && this.day >= another.day));
|
|
659
|
-
};
|
|
660
|
-
/**
|
|
661
|
-
* Passed date is before current
|
|
662
|
-
*/
|
|
663
|
-
TuiDay.prototype.dayAfter = function (another) {
|
|
664
|
-
return (this.monthAfter(another) ||
|
|
665
|
-
(this.monthSame(another) && this.day > another.day));
|
|
666
|
-
};
|
|
667
|
-
/**
|
|
668
|
-
* Clamping date between two limits
|
|
669
|
-
*
|
|
670
|
-
* @param min
|
|
671
|
-
* @param max
|
|
672
|
-
* @return clamped date
|
|
673
|
-
*/
|
|
674
|
-
TuiDay.prototype.dayLimit = function (min, max) {
|
|
675
|
-
if (min !== null && this.dayBefore(min)) {
|
|
676
|
-
return min;
|
|
677
|
-
}
|
|
678
|
-
if (max !== null && this.dayAfter(max)) {
|
|
679
|
-
return max;
|
|
680
|
-
}
|
|
681
|
-
return this;
|
|
682
|
-
};
|
|
683
|
-
// TODO: 3.0 Consider removing `backwards` option
|
|
684
|
-
/**
|
|
685
|
-
* Immutably alters current day by passed offset
|
|
686
|
-
*
|
|
687
|
-
* If resulting month has more days than original one, date is rounded to the maximum day
|
|
688
|
-
* in the resulting month. Offset of days will be calculated based on the resulted year and month
|
|
689
|
-
* to not interfere with parent classes methods
|
|
690
|
-
*
|
|
691
|
-
* @param offset
|
|
692
|
-
* @param backwards shift date backwards
|
|
693
|
-
* @return new date object as a result of offsetting current
|
|
694
|
-
*/
|
|
695
|
-
TuiDay.prototype.append = function (_a, backwards) {
|
|
696
|
-
var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c, _d = _a.day, day = _d === void 0 ? 0 : _d;
|
|
697
|
-
if (backwards === void 0) { backwards = false; }
|
|
698
|
-
if (backwards) {
|
|
699
|
-
year *= -1;
|
|
700
|
-
month *= -1;
|
|
701
|
-
day *= -1;
|
|
702
|
-
}
|
|
703
|
-
var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
|
704
|
-
var years = Math.floor(totalMonths / MONTHS_IN_YEAR);
|
|
705
|
-
var months = totalMonths % MONTHS_IN_YEAR;
|
|
706
|
-
var days = Math.min(this.day, TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years))) + day;
|
|
707
|
-
while (days > TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years))) {
|
|
708
|
-
days -= TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years));
|
|
709
|
-
if (months === 11 /* December */) {
|
|
710
|
-
years++;
|
|
711
|
-
months = 0 /* January */;
|
|
712
|
-
}
|
|
713
|
-
else {
|
|
714
|
-
months++;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
while (days < MIN_DAY) {
|
|
718
|
-
if (months === 0 /* January */) {
|
|
719
|
-
years--;
|
|
720
|
-
months = 11 /* December */;
|
|
721
|
-
}
|
|
722
|
-
else {
|
|
723
|
-
months--;
|
|
724
|
-
}
|
|
725
|
-
days += TuiMonth.getMonthDaysCount(months, TuiYear.isLeapYear(years));
|
|
726
|
-
}
|
|
727
|
-
return new TuiDay(years, months, days);
|
|
728
|
-
};
|
|
729
|
-
/**
|
|
730
|
-
* Returns formatted whole date
|
|
731
|
-
*/
|
|
732
|
-
TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
|
|
733
|
-
tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
|
|
734
|
-
var dd = this.formattedDayPart;
|
|
735
|
-
var mm = this.formattedMonthPart;
|
|
736
|
-
var yyyy = this.formattedYear;
|
|
737
|
-
switch (dateFormat) {
|
|
738
|
-
case "YMD":
|
|
739
|
-
return "" + yyyy + separator + mm + separator + dd;
|
|
740
|
-
case "MDY":
|
|
741
|
-
return "" + mm + separator + dd + separator + yyyy;
|
|
742
|
-
case "DMY":
|
|
743
|
-
default:
|
|
744
|
-
return "" + dd + separator + mm + separator + yyyy;
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
TuiDay.prototype.toString = function (dateFormat, separator) {
|
|
748
|
-
if (dateFormat === void 0) { dateFormat = "DMY"; }
|
|
749
|
-
if (separator === void 0) { separator = "."; }
|
|
750
|
-
return this.getFormattedDay(dateFormat, separator);
|
|
751
|
-
};
|
|
752
|
-
TuiDay.prototype.toJSON = function () {
|
|
753
|
-
return _super.prototype.toJSON.call(this) + "-" + this.formattedDayPart;
|
|
754
|
-
};
|
|
755
|
-
/**
|
|
756
|
-
* Returns native {@link Date} based on local time zone
|
|
757
|
-
*/
|
|
758
|
-
TuiDay.prototype.toLocalNativeDate = function () {
|
|
759
|
-
return new Date(this.year, this.month, this.day);
|
|
760
|
-
};
|
|
761
|
-
/**
|
|
762
|
-
* Returns native {@link Date} based on UTC
|
|
763
|
-
*/
|
|
764
|
-
TuiDay.prototype.toUtcNativeDate = function () {
|
|
765
|
-
return new Date(Date.UTC(this.year, this.month, this.day));
|
|
766
|
-
};
|
|
767
|
-
return TuiDay;
|
|
768
|
-
}(TuiMonth));
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* An immutable range of two {@link TuiMonth} objects
|
|
772
|
-
*/
|
|
773
|
-
var TuiMonthRange = /** @class */ (function () {
|
|
774
|
-
function TuiMonthRange(from, to) {
|
|
775
|
-
this.from = from;
|
|
776
|
-
this.to = to;
|
|
777
|
-
tuiAssert.assert(from.monthSameOrBefore(to));
|
|
778
|
-
}
|
|
779
|
-
TuiMonthRange.sort = function (month1, month2) {
|
|
780
|
-
return month1.monthSameOrBefore(month2)
|
|
781
|
-
? new TuiMonthRange(month1, month2)
|
|
782
|
-
: new TuiMonthRange(month2, month1);
|
|
783
|
-
};
|
|
784
|
-
Object.defineProperty(TuiMonthRange.prototype, "isSingleMonth", {
|
|
785
|
-
get: function () {
|
|
786
|
-
return this.from.monthSame(this.to);
|
|
787
|
-
},
|
|
788
|
-
enumerable: true,
|
|
789
|
-
configurable: true
|
|
790
|
-
});
|
|
791
|
-
Object.defineProperty(TuiMonthRange.prototype, "formattedMonthRange", {
|
|
792
|
-
/**
|
|
793
|
-
* @deprecated
|
|
794
|
-
*/
|
|
795
|
-
get: function () {
|
|
796
|
-
return "" + this.from.formattedMonth + RANGE_SEPARATOR_CHAR + this.to.formattedMonth;
|
|
797
|
-
},
|
|
798
|
-
enumerable: true,
|
|
799
|
-
configurable: true
|
|
800
|
-
});
|
|
801
|
-
TuiMonthRange.prototype.monthSame = function (another) {
|
|
802
|
-
return this.from.monthSame(another.from) && this.to.monthSame(another.to);
|
|
803
|
-
};
|
|
804
|
-
TuiMonthRange.prototype.toString = function () {
|
|
805
|
-
return "" + this.from + RANGE_SEPARATOR_CHAR + this.to;
|
|
806
|
-
};
|
|
807
|
-
return TuiMonthRange;
|
|
808
|
-
}());
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Temporary type guard to satisfy ts-overloading of normalizeParse method
|
|
812
|
-
* @deprecated
|
|
813
|
-
*/
|
|
814
|
-
var isDateMode = function (dateMode) {
|
|
815
|
-
return ["DMY", "YMD", "MDY"].includes(dateMode);
|
|
816
|
-
};
|
|
817
|
-
/**
|
|
818
|
-
* An immutable range of two {@link TuiDay} objects
|
|
819
|
-
*/
|
|
820
|
-
var TuiDayRange = /** @class */ (function (_super) {
|
|
821
|
-
__extends(TuiDayRange, _super);
|
|
822
|
-
function TuiDayRange(from, to) {
|
|
823
|
-
var _this = _super.call(this, from, to) || this;
|
|
824
|
-
_this.from = from;
|
|
825
|
-
_this.to = to;
|
|
826
|
-
tuiAssert.assert(from.daySameOrBefore(to));
|
|
827
|
-
return _this;
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Creates range from two days after sorting them
|
|
831
|
-
*
|
|
832
|
-
* @param day1
|
|
833
|
-
* @param day2
|
|
834
|
-
* @return new range with sorted days
|
|
835
|
-
*/
|
|
836
|
-
TuiDayRange.sort = function (day1, day2) {
|
|
837
|
-
return day1.daySameOrBefore(day2)
|
|
838
|
-
? new TuiDayRange(day1, day2)
|
|
839
|
-
: new TuiDayRange(day2, day1);
|
|
840
|
-
};
|
|
841
|
-
/**
|
|
842
|
-
* Parse and correct a day range in string format
|
|
843
|
-
*
|
|
844
|
-
* @param rangeString a string of dates in a format dd.mm.yyyy - dd.mm.yyyy
|
|
845
|
-
* @param dateMode {@link TuiDateMode}
|
|
846
|
-
* @return normalized day range object
|
|
847
|
-
*/
|
|
848
|
-
TuiDayRange.normalizeParse = function (rangeString, dateMode) {
|
|
849
|
-
if (dateMode === void 0) { dateMode = "DMY"; }
|
|
850
|
-
var dateFormat = isDateMode(dateMode) ? dateMode : "DMY";
|
|
851
|
-
var leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateFormat);
|
|
852
|
-
if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
|
|
853
|
-
return new TuiDayRange(leftDay, leftDay);
|
|
854
|
-
}
|
|
855
|
-
return TuiDayRange.sort(leftDay, TuiDay.normalizeParse(rangeString.slice(DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length), dateFormat));
|
|
856
|
-
};
|
|
857
|
-
Object.defineProperty(TuiDayRange.prototype, "isSingleDay", {
|
|
858
|
-
get: function () {
|
|
859
|
-
return this.from.daySame(this.to);
|
|
860
|
-
},
|
|
861
|
-
enumerable: true,
|
|
862
|
-
configurable: true
|
|
863
|
-
});
|
|
864
|
-
Object.defineProperty(TuiDayRange.prototype, "formattedDayRange", {
|
|
865
|
-
/**
|
|
866
|
-
* Human readable format.
|
|
867
|
-
* @deprecated use {@link getFormattedDayRange} instead
|
|
868
|
-
*/
|
|
869
|
-
get: function () {
|
|
870
|
-
var from = this.from.getFormattedDay("DMY", ".");
|
|
871
|
-
var to = this.to.getFormattedDay("DMY", ".");
|
|
872
|
-
return "" + from + RANGE_SEPARATOR_CHAR + to;
|
|
873
|
-
},
|
|
874
|
-
enumerable: true,
|
|
875
|
-
configurable: true
|
|
876
|
-
});
|
|
877
|
-
/**
|
|
878
|
-
* Tests ranges for identity
|
|
879
|
-
*
|
|
880
|
-
* @param another second range to test against current
|
|
881
|
-
* @return `true` if days are identical
|
|
882
|
-
*/
|
|
883
|
-
TuiDayRange.prototype.daySame = function (another) {
|
|
884
|
-
return this.from.daySame(another.from) && this.to.daySame(another.to);
|
|
885
|
-
};
|
|
886
|
-
/**
|
|
887
|
-
* Locks range between two days included, or limits from one side if the other is null
|
|
888
|
-
*
|
|
889
|
-
* @param min
|
|
890
|
-
* @param max
|
|
891
|
-
* @return range — clamped range
|
|
892
|
-
*/
|
|
893
|
-
TuiDayRange.prototype.dayLimit = function (min, max) {
|
|
894
|
-
return new TuiDayRange(this.from.dayLimit(min, max), this.to.dayLimit(min, max));
|
|
895
|
-
};
|
|
896
|
-
/**
|
|
897
|
-
* Human readable format.
|
|
898
|
-
*/
|
|
899
|
-
TuiDayRange.prototype.getFormattedDayRange = function (dateFormat, dateSeparator) {
|
|
900
|
-
var from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
|
901
|
-
var to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
|
902
|
-
return "" + from + RANGE_SEPARATOR_CHAR + to;
|
|
903
|
-
};
|
|
904
|
-
TuiDayRange.prototype.toString = function (dateFormat, dateSeparator) {
|
|
905
|
-
if (dateFormat === void 0) { dateFormat = "DMY"; }
|
|
906
|
-
if (dateSeparator === void 0) { dateSeparator = "."; }
|
|
907
|
-
var from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
|
908
|
-
var to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
|
909
|
-
return "" + from + RANGE_SEPARATOR_CHAR + to;
|
|
910
|
-
};
|
|
911
|
-
return TuiDayRange;
|
|
912
|
-
}(TuiMonthRange));
|
|
913
|
-
|
|
914
|
-
var TUI_FIRST_DAY = new TuiDay(MIN_YEAR, MIN_MONTH, MIN_DAY);
|
|
915
|
-
var TUI_LAST_DAY = new TuiDay(MAX_YEAR, MAX_MONTH, 31);
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* Immutable time object with hours, minutes, seconds and ms
|
|
919
|
-
*/
|
|
920
|
-
var TuiTime = /** @class */ (function () {
|
|
921
|
-
function TuiTime(hours, minutes, seconds, ms) {
|
|
922
|
-
if (seconds === void 0) { seconds = 0; }
|
|
923
|
-
if (ms === void 0) { ms = 0; }
|
|
924
|
-
this.hours = hours;
|
|
925
|
-
this.minutes = minutes;
|
|
926
|
-
this.seconds = seconds;
|
|
927
|
-
this.ms = ms;
|
|
928
|
-
tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
|
|
929
|
-
}
|
|
930
|
-
/**
|
|
931
|
-
* Checks if time is valid
|
|
932
|
-
*/
|
|
933
|
-
TuiTime.isValidTime = function (hours, minutes, seconds, ms) {
|
|
934
|
-
if (seconds === void 0) { seconds = 0; }
|
|
935
|
-
if (ms === void 0) { ms = 0; }
|
|
936
|
-
return (Number.isInteger(hours) &&
|
|
937
|
-
inRange(hours, 0, HOURS_IN_DAY) &&
|
|
938
|
-
Number.isInteger(minutes) &&
|
|
939
|
-
inRange(minutes, 0, MINUTES_IN_HOUR) &&
|
|
940
|
-
Number.isInteger(seconds) &&
|
|
941
|
-
inRange(seconds, 0, SECONDS_IN_MINUTE) &&
|
|
942
|
-
Number.isInteger(ms) &&
|
|
943
|
-
inRange(ms, 0, 1000));
|
|
944
|
-
};
|
|
945
|
-
/**
|
|
946
|
-
* Current UTC time.
|
|
947
|
-
*/
|
|
948
|
-
TuiTime.current = function () {
|
|
949
|
-
return TuiTime.fromAbsoluteMilliseconds(Date.now() % MILLISECONDS_IN_DAY);
|
|
950
|
-
};
|
|
951
|
-
/**
|
|
952
|
-
* Current time in local timezone
|
|
953
|
-
*/
|
|
954
|
-
TuiTime.currentLocal = function () {
|
|
955
|
-
var date = new Date();
|
|
956
|
-
return TuiTime.fromAbsoluteMilliseconds((Date.now() - date.getTimezoneOffset() * MILLISECONDS_IN_MINUTE) %
|
|
957
|
-
MILLISECONDS_IN_DAY);
|
|
958
|
-
};
|
|
959
|
-
/**
|
|
960
|
-
* Calculates TuiTime from milliseconds
|
|
961
|
-
*/
|
|
962
|
-
TuiTime.fromAbsoluteMilliseconds = function (milliseconds) {
|
|
963
|
-
tuiAssert.assert(Number.isInteger(milliseconds));
|
|
964
|
-
tuiAssert.assert(inRange(milliseconds, 0, MILLISECONDS_IN_DAY), "Milliseconds must be below " + MILLISECONDS_IN_DAY + " (milliseconds in a day).");
|
|
965
|
-
var hours = Math.floor(milliseconds / MILLISECONDS_IN_HOUR);
|
|
966
|
-
var minutes = Math.floor((milliseconds % MILLISECONDS_IN_HOUR) / MILLISECONDS_IN_MINUTE);
|
|
967
|
-
var seconds = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) / 1000) || 0;
|
|
968
|
-
var ms = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) % 1000) || 0;
|
|
969
|
-
return new TuiTime(hours, minutes, seconds, ms);
|
|
970
|
-
};
|
|
971
|
-
/**
|
|
972
|
-
* Parses string into TuiTime object
|
|
973
|
-
*/
|
|
974
|
-
TuiTime.fromString = function (time) {
|
|
975
|
-
var hours = Number(time.slice(0, 2));
|
|
976
|
-
var minutes = Number(time.slice(3, 5));
|
|
977
|
-
var seconds = Number(time.slice(6, 8)) || 0;
|
|
978
|
-
var ms = Number(time.slice(9, 12)) || 0;
|
|
979
|
-
return new TuiTime(hours, minutes, seconds, ms);
|
|
980
|
-
};
|
|
981
|
-
/**
|
|
982
|
-
* Converts Date object into TuiTime
|
|
983
|
-
* @param date
|
|
984
|
-
*/
|
|
985
|
-
TuiTime.fromLocalNativeDate = function (date) {
|
|
986
|
-
return new TuiTime(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
987
|
-
};
|
|
988
|
-
/**
|
|
989
|
-
* Shifts time by hours and minutes
|
|
990
|
-
*/
|
|
991
|
-
TuiTime.prototype.shift = function (_a) {
|
|
992
|
-
var _b = _a.hours, hours = _b === void 0 ? 0 : _b, _c = _a.minutes, minutes = _c === void 0 ? 0 : _c, _d = _a.seconds, seconds = _d === void 0 ? 0 : _d, _e = _a.ms, ms = _e === void 0 ? 0 : _e;
|
|
993
|
-
var newMs = (1000 + this.ms + (ms % 1000)) % 1000;
|
|
994
|
-
var secondsInMs = ms < 0 ? Math.ceil(ms / 1000) : Math.floor(ms / 1000);
|
|
995
|
-
var secondsToAdd = secondsInMs + seconds;
|
|
996
|
-
var newSeconds = (60 + this.seconds + (secondsToAdd % 60)) % 60;
|
|
997
|
-
var minutesInSeconds = secondsToAdd < 0
|
|
998
|
-
? Math.ceil(secondsToAdd / 60)
|
|
999
|
-
: Math.floor(secondsToAdd / 60);
|
|
1000
|
-
var minutesToAdd = minutesInSeconds + minutes;
|
|
1001
|
-
var newMinutes = (60 + this.minutes + (minutesToAdd % 60)) % 60;
|
|
1002
|
-
var hoursInMinutes = minutesToAdd < 0
|
|
1003
|
-
? Math.ceil(minutesToAdd / 60)
|
|
1004
|
-
: Math.floor(minutesToAdd / 60);
|
|
1005
|
-
var hoursToAdd = hoursInMinutes + hours;
|
|
1006
|
-
var newHours = (24 + this.hours + (hoursToAdd % 24)) % 24;
|
|
1007
|
-
return new TuiTime(newHours, newMinutes, newSeconds, newMs);
|
|
1008
|
-
};
|
|
1009
|
-
/**
|
|
1010
|
-
* Converts TuiTime to string
|
|
1011
|
-
*/
|
|
1012
|
-
TuiTime.prototype.toString = function (mode) {
|
|
1013
|
-
var needAddMs = mode === "HH:MM:SS.MSS" || (!mode && this.ms > 0);
|
|
1014
|
-
var needAddSeconds = needAddMs || mode === "HH:MM:SS" || (!mode && this.seconds > 0);
|
|
1015
|
-
return (this.formatTime(this.hours) + ":" + this.formatTime(this.minutes) +
|
|
1016
|
-
("" + (needAddSeconds ? ":" + this.formatTime(this.seconds) : "")) +
|
|
1017
|
-
("" + (needAddMs ? "." + this.formatTime(this.ms, 3) : "")));
|
|
1018
|
-
};
|
|
1019
|
-
TuiTime.prototype.valueOf = function () {
|
|
1020
|
-
return this.toAbsoluteMilliseconds();
|
|
1021
|
-
};
|
|
1022
|
-
/**
|
|
1023
|
-
* Returns the primitive value of the given Date object.
|
|
1024
|
-
* Depending on the argument, the method can return either a string or a number.
|
|
1025
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
|
1026
|
-
*/
|
|
1027
|
-
TuiTime.prototype[Symbol.toPrimitive] = function (hint) {
|
|
1028
|
-
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
|
1029
|
-
};
|
|
1030
|
-
/**
|
|
1031
|
-
* Converts TuiTime to milliseconds
|
|
1032
|
-
*/
|
|
1033
|
-
TuiTime.prototype.toAbsoluteMilliseconds = function () {
|
|
1034
|
-
return (this.hours * MILLISECONDS_IN_HOUR +
|
|
1035
|
-
this.minutes * MILLISECONDS_IN_MINUTE +
|
|
1036
|
-
this.seconds * 1000 +
|
|
1037
|
-
this.ms);
|
|
1038
|
-
};
|
|
1039
|
-
TuiTime.prototype.formatTime = function (time, digits) {
|
|
1040
|
-
if (digits === void 0) { digits = 2; }
|
|
1041
|
-
return padStart(String(time), digits, "0");
|
|
1042
|
-
};
|
|
1043
|
-
return TuiTime;
|
|
1044
|
-
}());
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
* Generated bundle index. Do not edit.
|
|
1048
|
-
*/
|
|
1049
|
-
|
|
1050
|
-
export { DATE_FILLER_LENGTH, DATE_RANGE_FILLER_LENGTH, DAYS_IN_LEAP_YEAR, DAYS_IN_NORMAL_YEAR, DAYS_IN_WEEK, HOURS_IN_DAY, MAX_MONTH, MAX_YEAR, MILLISECONDS_IN_DAY, MILLISECONDS_IN_HOUR, MILLISECONDS_IN_MINUTE, MILLISECONDS_IN_SECOND, MINUTES_IN_HOUR, MIN_DAY, MIN_MONTH, MIN_YEAR, MONTHS_IN_YEAR, RANGE_SEPARATOR_CHAR, SECONDS_IN_MINUTE, TUI_DATE_FILLER, TUI_DATE_FORMAT, TUI_DATE_RANGE_FILLER, TUI_DATE_SEPARATOR, TUI_FIRST_DAY, TUI_LAST_DAY, TuiDay, TuiDayRange, TuiMonth, TuiMonthRange, TuiTime, TuiYear, changeDateSeparator, isDateMode };
|
|
1051
|
-
//# sourceMappingURL=taiga-ui-cdk-date-time.js.map
|