@taiga-ui/cdk 3.51.0-canary.4016f4d → 3.51.0-canary.8873fad
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 +6 -0
- package/abstract/interactive.d.ts +9 -0
- package/abstract/portal-host.d.ts +4 -0
- package/abstract/portal-service.d.ts +3 -0
- package/abstract/taiga-ui-cdk-abstract.d.ts +3 -0
- package/abstract/theme-switcher.d.ts +6 -0
- package/bundles/taiga-ui-cdk-abstract.umd.js +34 -0
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +9 -0
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +10 -0
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +8 -0
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +11 -0
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +12 -0
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +4 -0
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components.umd.js +4 -0
- package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +110 -2
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +284 -0
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +26 -0
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +44 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-control.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +10 -0
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -0
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +18 -0
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +17 -0
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +9 -0
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +10 -0
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +9 -0
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +17 -0
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +10 -0
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-platform.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +12 -0
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +11 -0
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +5 -0
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +8 -0
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +4 -0
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js +3 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +34 -1
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +7 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +53 -5
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +109 -5
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-types.umd.js +3 -1
- package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +4 -0
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +10 -0
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +59 -3
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +51 -0
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +7 -0
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +38 -0
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +42 -6
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +14 -0
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +19 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +4 -0
- package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk.umd.js +4 -0
- package/bundles/taiga-ui-cdk.umd.js.map +1 -1
- package/classes/assert.d.ts +5 -0
- package/classes/taiga-ui-cdk-classes.d.ts +3 -0
- package/coercion/coerce-boolean-property.d.ts +4 -0
- package/coercion/taiga-ui-cdk-coercion.d.ts +3 -0
- package/components/alert-host/alert-host.component.d.ts +2 -2
- package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +3 -0
- package/components/dialog-host/dialog-host.component.d.ts +3 -0
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +3 -0
- package/components/dropdown-host/dropdown-host.component.d.ts +3 -0
- package/components/dropdown-host/dropdown-portal.service.d.ts +3 -0
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +3 -0
- package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +3 -0
- package/components/taiga-ui-cdk-components.d.ts +3 -0
- package/constants/always-false-handler.d.ts +3 -0
- package/constants/always-true-handler.d.ts +3 -0
- package/constants/browser.d.ts +4 -0
- package/constants/empty.d.ts +5 -0
- package/constants/matcher.d.ts +19 -0
- package/constants/parent-animation.d.ts +6 -0
- package/constants/stringify.d.ts +3 -0
- package/constants/taiga-ui-cdk-constants.d.ts +3 -0
- package/constants/unicode-chars.d.ts +51 -0
- package/constants/used-icons.d.ts +7 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/date-fillers.d.ts +11 -0
- package/date-time/date-format.d.ts +3 -0
- package/date-time/date-separator.d.ts +3 -0
- package/date-time/day-range.d.ts +33 -0
- package/date-time/day.d.ts +91 -0
- package/date-time/month-range.d.ts +3 -0
- package/date-time/month.d.ts +56 -0
- package/date-time/taiga-ui-cdk-date-time.d.ts +3 -0
- package/date-time/time.d.ts +36 -0
- package/date-time/year.d.ts +42 -0
- package/decorators/debounce.d.ts +4 -0
- package/decorators/default-prop.d.ts +9 -0
- package/decorators/pure.d.ts +18 -0
- package/decorators/required-setter.d.ts +9 -0
- package/decorators/taiga-ui-cdk-decorators.d.ts +3 -0
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +3 -0
- package/directives/auto-focus/handlers/ios.handler.d.ts +39 -0
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +3 -0
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +3 -0
- package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +3 -0
- package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +3 -0
- package/directives/control/taiga-ui-cdk-directives-control.d.ts +3 -0
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +3 -0
- package/directives/drag/drag.directive.d.ts +3 -0
- package/directives/drag/drag.module.d.ts +3 -0
- package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +3 -0
- package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +3 -0
- package/directives/element/taiga-ui-cdk-directives-element.d.ts +3 -0
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +3 -0
- package/directives/focus-visible/focus-visible.directive.d.ts +5 -0
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +3 -0
- package/directives/focusable/focusable.directive.d.ts +6 -0
- package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +3 -0
- package/directives/focused/focused.directive.d.ts +5 -0
- package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +3 -0
- package/directives/for/taiga-ui-cdk-directives-for.d.ts +3 -0
- package/directives/for-async/for-async.module.d.ts +3 -0
- package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +3 -0
- package/directives/high-dpi/high-dpi.directive.d.ts +3 -0
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +3 -0
- package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +3 -0
- package/directives/item/item.directive.d.ts +3 -0
- package/directives/item/taiga-ui-cdk-directives-item.d.ts +3 -0
- package/directives/let/let-context.d.ts +3 -0
- package/directives/let/let.directive.d.ts +10 -0
- package/directives/let/taiga-ui-cdk-directives-let.d.ts +3 -0
- package/directives/media/taiga-ui-cdk-directives-media.d.ts +3 -0
- package/directives/obscured/obscured.directive.d.ts +3 -0
- package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +3 -0
- package/directives/overscroll/overscroll.directive.d.ts +3 -0
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +3 -0
- package/directives/pan/pan.module.d.ts +3 -0
- package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +3 -0
- package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +3 -0
- package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +3 -0
- package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +3 -0
- package/directives/prevent-default/prevent-default.directive.d.ts +5 -0
- package/directives/prevent-default/prevent-default.module.d.ts +3 -0
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +3 -0
- package/directives/repeat-times/repeat-times.directive.d.ts +7 -0
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +3 -0
- package/directives/resize/resize.module.d.ts +3 -0
- package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +3 -0
- package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +3 -0
- package/directives/swipe/swipe.module.d.ts +3 -0
- package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +3 -0
- package/directives/taiga-ui-cdk-directives.d.ts +3 -0
- package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +3 -0
- package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +3 -0
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +3 -0
- package/directives/zoom/zoom.module.d.ts +3 -0
- package/enums/taiga-ui-cdk-enums.d.ts +3 -0
- package/esm2015/abstract/control.js +7 -1
- package/esm2015/abstract/interactive.js +11 -1
- package/esm2015/abstract/portal-host.js +6 -1
- package/esm2015/abstract/portal-service.js +4 -1
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +4 -1
- package/esm2015/abstract/theme-switcher.js +7 -1
- package/esm2015/classes/assert.js +6 -1
- package/esm2015/classes/taiga-ui-cdk-classes.js +4 -1
- package/esm2015/coercion/coerce-boolean-property.js +7 -1
- package/esm2015/coercion/taiga-ui-cdk-coercion.js +4 -1
- package/esm2015/components/alert-host/alert-host.component.js +5 -1
- package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +4 -1
- package/esm2015/components/dialog-host/dialog-host.component.js +8 -1
- package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +4 -1
- package/esm2015/components/dropdown-host/dropdown-host.component.js +6 -1
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +4 -1
- package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +4 -1
- package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +4 -1
- package/esm2015/components/taiga-ui-cdk-components.js +4 -1
- package/esm2015/constants/always-false-handler.js +5 -1
- package/esm2015/constants/always-true-handler.js +5 -1
- package/esm2015/constants/browser.js +5 -1
- package/esm2015/constants/empty.js +6 -1
- package/esm2015/constants/matcher.js +20 -1
- package/esm2015/constants/parent-animation.js +7 -1
- package/esm2015/constants/stringify.js +4 -1
- package/esm2015/constants/svg-node-filter.js +3 -1
- package/esm2015/constants/taiga-ui-cdk-constants.js +4 -1
- package/esm2015/constants/unicode-chars.js +52 -1
- package/esm2015/constants/used-icons.js +8 -2
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/date-fillers.js +12 -1
- package/esm2015/date-time/date-format.js +4 -1
- package/esm2015/date-time/date-separator.js +4 -1
- package/esm2015/date-time/day-range.js +34 -1
- package/esm2015/date-time/day.js +94 -1
- package/esm2015/date-time/month-range.js +4 -1
- package/esm2015/date-time/month.js +57 -1
- package/esm2015/date-time/taiga-ui-cdk-date-time.js +4 -1
- package/esm2015/date-time/time.js +37 -1
- package/esm2015/date-time/year.js +43 -1
- package/esm2015/decorators/debounce.js +5 -1
- package/esm2015/decorators/default-prop.js +10 -1
- package/esm2015/decorators/required-setter.js +10 -1
- package/esm2015/decorators/taiga-ui-cdk-decorators.js +4 -1
- package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +4 -1
- package/esm2015/directives/auto-focus/autofocus.options.js +3 -2
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +40 -1
- package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +4 -1
- package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +4 -1
- package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +4 -1
- package/esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js +4 -1
- package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +4 -1
- package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +4 -1
- package/esm2015/directives/drag/drag.directive.js +4 -1
- package/esm2015/directives/drag/drag.module.js +4 -1
- package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +4 -1
- package/esm2015/directives/droppable/droppable.directive.js +2 -1
- package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +4 -1
- package/esm2015/directives/element/element.directive.js +15 -1
- package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +4 -1
- package/esm2015/directives/focus-trap/focus-trap.directive.js +14 -1
- package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +4 -1
- package/esm2015/directives/focus-visible/focus-visible.directive.js +6 -1
- package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +4 -1
- package/esm2015/directives/focusable/focusable.directive.js +7 -1
- package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +4 -1
- package/esm2015/directives/focused/focused.directive.js +6 -1
- package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +4 -1
- package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +4 -1
- package/esm2015/directives/for-async/for-async.module.js +4 -1
- package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +4 -1
- package/esm2015/directives/high-dpi/high-dpi.directive.js +4 -1
- package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +4 -1
- package/esm2015/directives/hovered/hovered.service.js +4 -2
- package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +4 -1
- package/esm2015/directives/item/item.directive.js +4 -1
- package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +4 -1
- package/esm2015/directives/let/let-context.js +4 -1
- package/esm2015/directives/let/let.directive.js +11 -1
- package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +4 -1
- package/esm2015/directives/media/media.directive.js +4 -1
- package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +4 -1
- package/esm2015/directives/obscured/obscured.directive.js +4 -1
- package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +4 -1
- package/esm2015/directives/overscroll/overscroll.directive.js +7 -1
- package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +4 -1
- package/esm2015/directives/pan/pan.module.js +4 -1
- package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +4 -1
- package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +4 -1
- package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +4 -1
- package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +4 -1
- package/esm2015/directives/prevent-default/prevent-default.directive.js +6 -1
- package/esm2015/directives/prevent-default/prevent-default.module.js +4 -1
- package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +4 -1
- package/esm2015/directives/repeat-times/repeat-times.directive.js +8 -1
- package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +4 -1
- package/esm2015/directives/resize/resize.module.js +4 -1
- package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +4 -1
- package/esm2015/directives/resizer/resizer.directive.js +2 -1
- package/esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js +4 -1
- package/esm2015/directives/swipe/swipe.module.js +4 -1
- package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +4 -1
- package/esm2015/directives/taiga-ui-cdk-directives.js +4 -1
- package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +4 -1
- package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +4 -1
- package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +4 -1
- package/esm2015/directives/zoom/zoom.module.js +4 -1
- package/esm2015/enums/day-of-week.js +3 -1
- package/esm2015/enums/month-number.js +3 -1
- package/esm2015/enums/taiga-ui-cdk-enums.js +4 -1
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +4 -1
- package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +4 -1
- package/esm2015/observables/control-value.js +4 -1
- package/esm2015/observables/drag-and-drop-from.js +3 -1
- package/esm2015/observables/focus-visible-observable.js +6 -2
- package/esm2015/observables/is-alive.js +4 -1
- package/esm2015/observables/items-query-list-observable.js +7 -1
- package/esm2015/observables/mouse-drag-finish-from.js +5 -1
- package/esm2015/observables/scroll-from.js +4 -1
- package/esm2015/observables/taiga-ui-cdk-observables.js +4 -1
- package/esm2015/observables/typed-from-event.js +5 -1
- package/esm2015/pipes/filter/filter.pipe.js +1 -1
- package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +4 -1
- package/esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js +4 -1
- package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +4 -1
- package/esm2015/pipes/mapper/mapper.pipe.js +1 -1
- package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +4 -1
- package/esm2015/pipes/replace/replace.pipe.js +4 -2
- package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +4 -1
- package/esm2015/pipes/taiga-ui-cdk-pipes.js +4 -1
- package/esm2015/services/destroy.service.js +9 -1
- package/esm2015/services/directive-styles.service.js +4 -1
- package/esm2015/services/focus-visible.service.js +6 -1
- package/esm2015/services/id.service.js +4 -1
- package/esm2015/services/obscured.service.js +10 -2
- package/esm2015/services/pan.service.js +4 -2
- package/esm2015/services/parents-scroll.service.js +7 -2
- package/esm2015/services/resize.service.js +8 -2
- package/esm2015/services/static-request.service.js +5 -2
- package/esm2015/services/taiga-ui-cdk-services.js +4 -1
- package/esm2015/taiga-ui-cdk.js +4 -1
- package/esm2015/tokens/active-element.js +26 -4
- package/esm2015/tokens/alerts.js +4 -1
- package/esm2015/tokens/default-renderer.js +10 -2
- package/esm2015/tokens/dialogs.js +5 -1
- package/esm2015/tokens/ensure-base-href.js +4 -1
- package/esm2015/tokens/focusable-item-accessor.js +4 -1
- package/esm2015/tokens/is-android.js +4 -1
- package/esm2015/tokens/is-apple.js +4 -1
- package/esm2015/tokens/is-chromium.js +4 -1
- package/esm2015/tokens/is-cypress.js +5 -1
- package/esm2015/tokens/is-e2e.js +4 -1
- package/esm2015/tokens/is-firefox.js +4 -1
- package/esm2015/tokens/is-ios.js +4 -1
- package/esm2015/tokens/is-mobile.js +5 -1
- package/esm2015/tokens/is-playwright.js +4 -1
- package/esm2015/tokens/is-webkit.js +4 -1
- package/esm2015/tokens/platform.js +2 -1
- package/esm2015/tokens/range.js +4 -1
- package/esm2015/tokens/removed-element.js +4 -1
- package/esm2015/tokens/scroll-ref.js +4 -1
- package/esm2015/tokens/swipe-options.js +4 -1
- package/esm2015/tokens/taiga-ui-cdk-tokens.js +4 -1
- package/esm2015/tokens/take-only-trusted-events.js +7 -1
- package/esm2015/tokens/window-height.js +4 -1
- package/esm2015/tokens/zoom-options.js +4 -1
- package/esm2015/types/mapper.js +1 -1
- package/esm2015/types/matcher.js +1 -1
- package/esm2015/types/taiga-ui-cdk-types.js +4 -1
- package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +4 -1
- package/esm2015/utils/color/hex-to-rgba.js +2 -1
- package/esm2015/utils/color/hsv-to-rgb.js +4 -1
- package/esm2015/utils/color/rgb-to-hsv.js +2 -1
- package/esm2015/utils/color/rgba-to-hex.js +2 -1
- package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +4 -1
- package/esm2015/utils/dom/element-checks.js +2 -1
- package/esm2015/utils/dom/get-actual-target.js +4 -1
- package/esm2015/utils/dom/get-clipboard-data-text.js +4 -1
- package/esm2015/utils/dom/get-element-obscurers.js +10 -1
- package/esm2015/utils/dom/get-element-offset.js +8 -1
- package/esm2015/utils/dom/get-scroll-parent.js +7 -1
- package/esm2015/utils/dom/get-selected-text.js +9 -1
- package/esm2015/utils/dom/is-inside-iframe.js +4 -1
- package/esm2015/utils/dom/is-node-in.js +8 -1
- package/esm2015/utils/dom/retarget-boundary-crossing.js +9 -4
- package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +4 -1
- package/esm2015/utils/focus/blur-native-focused.js +4 -1
- package/esm2015/utils/focus/get-closest-focusable.js +5 -1
- package/esm2015/utils/focus/get-native-focused.js +6 -1
- package/esm2015/utils/focus/is-native-focused-in.js +8 -1
- package/esm2015/utils/focus/is-native-focused.js +9 -1
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +7 -1
- package/esm2015/utils/focus/move-focus.js +8 -1
- package/esm2015/utils/focus/set-native-mouse-focused.js +8 -1
- package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +4 -1
- package/esm2015/utils/format/px.js +4 -1
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +4 -1
- package/esm2015/utils/math/clamp.js +8 -1
- package/esm2015/utils/math/normalize-to-int-number.js +9 -1
- package/esm2015/utils/math/quantize.js +7 -1
- package/esm2015/utils/math/round.js +8 -1
- package/esm2015/utils/math/sum.js +4 -1
- package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +4 -1
- package/esm2015/utils/math/to-radians.js +4 -1
- package/esm2015/utils/miscellaneous/create-options.js +2 -1
- package/esm2015/utils/miscellaneous/flat-length.js +6 -1
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +7 -1
- package/esm2015/utils/miscellaneous/is-number.js +2 -1
- package/esm2015/utils/miscellaneous/is-object.js +2 -1
- package/esm2015/utils/miscellaneous/is-string.js +2 -1
- package/esm2015/utils/miscellaneous/is-valid-url.js +8 -7
- package/esm2015/utils/miscellaneous/nullable-same.js +9 -1
- package/esm2015/utils/miscellaneous/object-from-entries.js +9 -1
- package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +4 -1
- package/esm2015/utils/os/is-apple-platform.js +11 -1
- package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +4 -1
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +16 -2
- package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +4 -1
- package/esm2015/utils/taiga-ui-cdk-utils.js +4 -1
- package/exceptions/taiga-ui-cdk-exceptions.d.ts +3 -0
- package/fesm2015/taiga-ui-cdk-abstract.js +34 -0
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +9 -0
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +10 -0
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +8 -0
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +11 -0
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +12 -0
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +4 -0
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components.js +4 -0
- package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +110 -2
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +284 -0
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +26 -0
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +44 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-control.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +10 -0
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +5 -0
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +18 -0
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +17 -0
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +9 -0
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +10 -0
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +9 -0
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +7 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +17 -0
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +10 -0
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-platform.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +12 -0
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +11 -0
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resizer.js +5 -0
- package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +8 -0
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +4 -0
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js +3 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +34 -1
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +7 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +52 -5
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +108 -4
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-types.js +3 -1
- package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +4 -0
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +10 -0
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +59 -3
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +51 -0
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +7 -0
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +38 -0
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +42 -6
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +14 -0
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +19 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js +4 -0
- package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
- package/fesm2015/taiga-ui-cdk.js +4 -0
- package/fesm2015/taiga-ui-cdk.js.map +1 -1
- package/interfaces/control-value-transformer.d.ts +3 -0
- package/interfaces/day-like.d.ts +3 -0
- package/interfaces/focusable-element-accessor.d.ts +4 -0
- package/interfaces/month-like.d.ts +3 -0
- package/interfaces/taiga-ui-cdk-interfaces.d.ts +3 -0
- package/interfaces/year-like.d.ts +3 -0
- package/observables/control-value.d.ts +3 -0
- package/observables/is-alive.d.ts +3 -0
- package/observables/items-query-list-observable.d.ts +6 -0
- package/observables/mouse-drag-finish-from.d.ts +4 -0
- package/observables/scroll-from.d.ts +3 -0
- package/observables/taiga-ui-cdk-observables.d.ts +3 -0
- package/package.json +5 -5
- package/pipes/filter/filter.pipe.d.ts +8 -1
- package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +3 -0
- package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +3 -0
- package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +3 -0
- package/pipes/mapper/mapper.pipe.d.ts +8 -1
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +3 -0
- package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +3 -0
- package/pipes/taiga-ui-cdk-pipes.d.ts +3 -0
- package/schematics/constants/file-globs.js +3 -1
- package/schematics/index.d.ts +0 -1
- package/schematics/index.js +0 -1
- package/schematics/ng-add/index.js +1 -0
- package/schematics/ng-add/schema.d.ts +12 -0
- package/schematics/ng-update/{v3/interfaces → interfaces}/replaceable-tag.d.ts +1 -1
- package/schematics/ng-update/steps/rename-types.js +1 -1
- package/schematics/ng-update/steps/replace-enums.js +2 -2
- package/schematics/ng-update/steps/{replace-const.d.ts → replace-identifier.d.ts} +1 -1
- package/schematics/ng-update/steps/{replace-const.js → replace-identifier.js} +4 -4
- package/schematics/ng-update/steps/replace-services.js +1 -1
- package/schematics/ng-update/steps/show-warnings.js +5 -0
- package/schematics/ng-update/utils/templates/remove-inputs.d.ts +10 -0
- package/schematics/ng-update/utils/templates/remove-inputs.js +19 -0
- package/schematics/ng-update/utils/templates/replace-attr-values.d.ts +1 -1
- package/schematics/ng-update/utils/templates/replace-tags.d.ts +10 -0
- package/schematics/ng-update/utils/templates/replace-tags.js +19 -0
- package/schematics/ng-update/v3/constants/breakpoints.js +2 -0
- package/schematics/ng-update/v3/constants/enums.js +4 -0
- package/schematics/ng-update/v3/constants/templates.d.ts +8 -3
- package/schematics/ng-update/v3/constants/templates.js +5 -0
- package/schematics/ng-update/v3/index.d.ts +0 -1
- package/schematics/ng-update/v3/index.js +7 -16
- package/schematics/ng-update/v3/steps/migrate-date-time.js +18 -0
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +1 -1
- package/schematics/ng-update/v3/steps/migrate-progress.js +3 -1
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +6 -0
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +5 -0
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +1 -0
- package/schematics/ng-update/v3/steps/migrate-templates.js +10 -26
- package/schematics/ng-update/v3/steps/miscellaneous.js +5 -1
- package/schematics/ng-update/v3/steps/replace-functions.js +1 -1
- package/schematics/ng-update/v3-30/index.js +1 -0
- package/schematics/ng-update/v3-35/index.js +1 -0
- package/schematics/ng-update/v3-36/index.js +1 -0
- package/schematics/ng-update/v3-40/index.js +2 -1
- package/schematics/ng-update/v3-5/index.js +1 -0
- package/schematics/ng-update/v4/index.js +15 -3
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.d.ts +3 -2
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.js +62 -34
- package/schematics/ng-update/v4/steps/restore-tui-mapper.d.ts +1 -2
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +23 -67
- package/schematics/ng-update/v4/steps/restore-tui-matcher.d.ts +1 -2
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +23 -67
- package/schematics/utils/add-import-to-component.js +3 -2
- package/schematics/utils/angular/ng-module.d.ts +3 -0
- package/schematics/utils/angular/ng-module.js +3 -0
- package/schematics/utils/angular-json-manipulations.js +7 -0
- package/schematics/utils/colored-log.js +1 -1
- package/schematics/utils/get-projects.js +3 -1
- package/schematics/utils/is-ci.js +13 -11
- package/schematics/utils/progress.js +1 -0
- package/schematics/utils/push-to-array-property.js +1 -0
- package/schematics/utils/templates/elements.d.ts +19 -0
- package/schematics/utils/templates/elements.js +26 -2
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +44 -0
- package/schematics/utils/templates/ng-component-input-manipulations.js +47 -1
- package/services/destroy.service.d.ts +8 -0
- package/services/directive-styles.service.d.ts +3 -0
- package/services/focus-visible.service.d.ts +5 -0
- package/services/id.service.d.ts +3 -0
- package/services/obscured.service.d.ts +5 -0
- package/services/parents-scroll.service.d.ts +3 -0
- package/services/taiga-ui-cdk-services.d.ts +3 -0
- package/taiga-ui-cdk.d.ts +3 -0
- package/tokens/active-element.d.ts +3 -0
- package/tokens/alerts.d.ts +3 -0
- package/tokens/default-renderer.d.ts +6 -0
- package/tokens/dialogs.d.ts +3 -0
- package/tokens/ensure-base-href.d.ts +3 -0
- package/tokens/focusable-item-accessor.d.ts +3 -0
- package/tokens/is-android.d.ts +3 -0
- package/tokens/is-apple.d.ts +3 -0
- package/tokens/is-chromium.d.ts +3 -0
- package/tokens/is-cypress.d.ts +4 -0
- package/tokens/is-e2e.d.ts +3 -0
- package/tokens/is-firefox.d.ts +3 -0
- package/tokens/is-ios.d.ts +3 -0
- package/tokens/is-mobile.d.ts +3 -0
- package/tokens/is-playwright.d.ts +3 -0
- package/tokens/is-webkit.d.ts +3 -0
- package/tokens/range.d.ts +3 -0
- package/tokens/removed-element.d.ts +3 -0
- package/tokens/scroll-ref.d.ts +3 -0
- package/tokens/swipe-options.d.ts +3 -0
- package/tokens/taiga-ui-cdk-tokens.d.ts +3 -0
- package/tokens/take-only-trusted-events.d.ts +6 -0
- package/tokens/window-height.d.ts +3 -0
- package/tokens/zoom-options.d.ts +3 -0
- package/types/autocomplete.d.ts +1 -0
- package/types/date-mode.d.ts +5 -0
- package/types/event-with.d.ts +3 -0
- package/types/mapper.d.ts +11 -1
- package/types/matcher.d.ts +11 -2
- package/types/taiga-ui-cdk-types.d.ts +3 -0
- package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +3 -0
- package/utils/color/hsv-to-rgb.d.ts +3 -0
- package/utils/color/taiga-ui-cdk-utils-color.d.ts +3 -0
- package/utils/dom/get-actual-target.d.ts +3 -0
- package/utils/dom/get-clipboard-data-text.d.ts +3 -0
- package/utils/dom/get-element-obscurers.d.ts +9 -0
- package/utils/dom/get-element-offset.d.ts +7 -0
- package/utils/dom/get-scroll-parent.d.ts +6 -0
- package/utils/dom/get-selected-text.d.ts +8 -0
- package/utils/dom/is-inside-iframe.d.ts +3 -0
- package/utils/dom/is-node-in.d.ts +7 -0
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +3 -0
- package/utils/focus/blur-native-focused.d.ts +3 -0
- package/utils/focus/get-closest-focusable.d.ts +20 -0
- package/utils/focus/get-native-focused.d.ts +5 -0
- package/utils/focus/is-native-focused-in.d.ts +6 -0
- package/utils/focus/is-native-focused.d.ts +8 -0
- package/utils/focus/is-native-keyboard-focusable.d.ts +6 -0
- package/utils/focus/move-focus.d.ts +7 -0
- package/utils/focus/set-native-mouse-focused.d.ts +7 -0
- package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +3 -0
- package/utils/format/px.d.ts +3 -0
- package/utils/format/taiga-ui-cdk-utils-format.d.ts +3 -0
- package/utils/math/clamp.d.ts +7 -0
- package/utils/math/normalize-to-int-number.d.ts +8 -0
- package/utils/math/quantize.d.ts +6 -0
- package/utils/math/sum.d.ts +3 -0
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +3 -0
- package/utils/math/to-radians.d.ts +3 -0
- package/utils/miscellaneous/create-options.d.ts +1 -0
- package/utils/miscellaneous/flat-length.d.ts +5 -0
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +6 -0
- package/utils/miscellaneous/is-string.js +1 -0
- package/utils/miscellaneous/nullable-same.d.ts +8 -0
- package/utils/miscellaneous/object-from-entries.d.ts +8 -0
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +3 -0
- package/utils/os/is-apple-platform.d.ts +10 -0
- package/utils/os/taiga-ui-cdk-utils-os.d.ts +3 -0
- package/utils/svg/svg-linear-gradient-processor.d.ts +14 -0
- package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +3 -0
- package/utils/taiga-ui-cdk-utils.d.ts +3 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.d.ts +0 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.js +0 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/replaceable-attribute-value.d.ts +0 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/replaceable-attribute-value.js +0 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/replaceable-tag.js +0 -0
- /package/schematics/{utils → ng-update/utils/templates}/replace-tag.d.ts +0 -0
- /package/schematics/{utils → ng-update/utils/templates}/replace-tag.js +0 -0
@@ -33,26 +33,56 @@ const MILLISECONDS_IN_MINUTE = MILLISECONDS_IN_SECOND * SECONDS_IN_MINUTE;
|
|
33
33
|
const MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * MINUTES_IN_HOUR;
|
34
34
|
const MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
|
35
35
|
|
36
|
+
/**
|
37
|
+
* @internal 'dd.mm.yyyy'.length
|
38
|
+
* Used in:
|
39
|
+
* - {@link TuiInputDateComponent}
|
40
|
+
* - {@link TuiInputDateRangeComponent}
|
41
|
+
* - {@link TuiInputDateTimeComponent}
|
42
|
+
*/
|
36
43
|
const DATE_FILLER_LENGTH = 10;
|
44
|
+
/**
|
45
|
+
* @internal
|
46
|
+
* Used in {@link TuiInputDateRangeComponent}
|
47
|
+
*/
|
37
48
|
const DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
|
38
49
|
|
50
|
+
/**
|
51
|
+
* Active date format for Taiga UI
|
52
|
+
*/
|
39
53
|
const TUI_DATE_FORMAT = tuiCreateToken(`DMY`);
|
40
54
|
|
55
|
+
/**
|
56
|
+
* Date separator for Taiga UI components
|
57
|
+
*/
|
41
58
|
const TUI_DATE_SEPARATOR = tuiCreateToken(`.`);
|
42
59
|
const changeDateSeparator = (dateString, newDateSeparator) => dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
|
43
60
|
|
61
|
+
/**
|
62
|
+
* Immutable year object
|
63
|
+
* @nosideeffects
|
64
|
+
*/
|
44
65
|
class TuiYear {
|
45
66
|
constructor(year) {
|
46
67
|
this.year = year;
|
47
68
|
ngDevMode && tuiAssert.assert(TuiYear.isValidYear(year));
|
48
69
|
}
|
70
|
+
/**
|
71
|
+
* Checks year for validity
|
72
|
+
*/
|
49
73
|
static isValidYear(year) {
|
50
74
|
return Number.isInteger(year) && tuiInRange(year, MIN_YEAR, MAX_YEAR + 1);
|
51
75
|
}
|
76
|
+
/**
|
77
|
+
* Check if passed year is a leap year
|
78
|
+
*/
|
52
79
|
static isLeapYear(year) {
|
53
80
|
ngDevMode && tuiAssert.assert(TuiYear.isValidYear(year));
|
54
81
|
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
|
55
82
|
}
|
83
|
+
/**
|
84
|
+
* Returns amount of leap years from year 0 to the passed one
|
85
|
+
*/
|
56
86
|
static getAbsoluteLeapYears(year) {
|
57
87
|
ngDevMode && tuiAssert.assert(TuiYear.isValidYear(year));
|
58
88
|
return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
|
@@ -60,6 +90,9 @@ class TuiYear {
|
|
60
90
|
static lengthBetween(from, to) {
|
61
91
|
return to.year - from.year;
|
62
92
|
}
|
93
|
+
/**
|
94
|
+
* Normalizes year by clamping it between min and max years
|
95
|
+
*/
|
63
96
|
static normalizeYearPart(year) {
|
64
97
|
return tuiNormalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
|
65
98
|
}
|
@@ -69,24 +102,45 @@ class TuiYear {
|
|
69
102
|
get isLeapYear() {
|
70
103
|
return TuiYear.isLeapYear(this.year);
|
71
104
|
}
|
105
|
+
/**
|
106
|
+
* Returns amount of leap years from year 0 to current
|
107
|
+
*/
|
72
108
|
get absoluteLeapYears() {
|
73
109
|
return TuiYear.getAbsoluteLeapYears(this.year);
|
74
110
|
}
|
111
|
+
/**
|
112
|
+
* Passed year is after current
|
113
|
+
*/
|
75
114
|
yearBefore({ year }) {
|
76
115
|
return this.year < year;
|
77
116
|
}
|
117
|
+
/**
|
118
|
+
* Passed year is the same or after current
|
119
|
+
*/
|
78
120
|
yearSameOrBefore({ year }) {
|
79
121
|
return this.year <= year;
|
80
122
|
}
|
123
|
+
/**
|
124
|
+
* Passed year is the same as current
|
125
|
+
*/
|
81
126
|
yearSame({ year }) {
|
82
127
|
return this.year === year;
|
83
128
|
}
|
129
|
+
/**
|
130
|
+
* Passed year is either the same of before the current
|
131
|
+
*/
|
84
132
|
yearSameOrAfter({ year }) {
|
85
133
|
return this.year >= year;
|
86
134
|
}
|
135
|
+
/**
|
136
|
+
* Passed year is before current
|
137
|
+
*/
|
87
138
|
yearAfter({ year }) {
|
88
139
|
return this.year > year;
|
89
140
|
}
|
141
|
+
/**
|
142
|
+
* Immutably offsets year
|
143
|
+
*/
|
90
144
|
append({ year = 0 }) {
|
91
145
|
ngDevMode && tuiAssert.assert(Number.isInteger(year));
|
92
146
|
const resultYear = this.year + year;
|
@@ -99,6 +153,11 @@ class TuiYear {
|
|
99
153
|
valueOf() {
|
100
154
|
return this.year;
|
101
155
|
}
|
156
|
+
/**
|
157
|
+
* Returns the primitive value of the given Date object.
|
158
|
+
* Depending on the argument, the method can return either a string or a number.
|
159
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
160
|
+
*/
|
102
161
|
[Symbol.toPrimitive](hint) {
|
103
162
|
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
104
163
|
}
|
@@ -107,15 +166,28 @@ class TuiYear {
|
|
107
166
|
}
|
108
167
|
}
|
109
168
|
|
169
|
+
/**
|
170
|
+
* Immutable object consisting of year and month
|
171
|
+
*/
|
110
172
|
class TuiMonth extends TuiYear {
|
173
|
+
/**
|
174
|
+
* @param year
|
175
|
+
* @param month (starting with 0)
|
176
|
+
*/
|
111
177
|
constructor(year, month) {
|
112
178
|
super(year);
|
113
179
|
this.month = month;
|
114
180
|
ngDevMode && tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
115
181
|
}
|
182
|
+
/**
|
183
|
+
* Tests month and year for validity
|
184
|
+
*/
|
116
185
|
static isValidMonth(year, month) {
|
117
186
|
return TuiYear.isValidYear(year) && TuiMonth.isValidMonthPart(month);
|
118
187
|
}
|
188
|
+
/**
|
189
|
+
* Returns number of days in a month
|
190
|
+
*/
|
119
191
|
static getMonthDaysCount(month, isLeapYear) {
|
120
192
|
ngDevMode && tuiAssert.assert(TuiMonth.isValidMonthPart(month));
|
121
193
|
switch (month) {
|
@@ -130,10 +202,17 @@ class TuiMonth extends TuiYear {
|
|
130
202
|
return 31;
|
131
203
|
}
|
132
204
|
}
|
205
|
+
/**
|
206
|
+
* Returns current month and year based on local time zone
|
207
|
+
* @nosideeffects
|
208
|
+
*/
|
133
209
|
static currentLocal() {
|
134
210
|
const nativeDate = new Date();
|
135
211
|
return new TuiMonth(nativeDate.getFullYear(), nativeDate.getMonth());
|
136
212
|
}
|
213
|
+
/**
|
214
|
+
* Returns current month and year based on UTC
|
215
|
+
*/
|
137
216
|
static currentUtc() {
|
138
217
|
const nativeDate = new Date();
|
139
218
|
return new TuiMonth(nativeDate.getUTCFullYear(), nativeDate.getUTCMonth());
|
@@ -143,37 +222,67 @@ class TuiMonth extends TuiYear {
|
|
143
222
|
const absoluteTo = to.month + to.year * 12;
|
144
223
|
return absoluteTo - absoluteFrom;
|
145
224
|
}
|
225
|
+
/**
|
226
|
+
* Normalizes number by clamping it between min and max month
|
227
|
+
*/
|
146
228
|
static normalizeMonthPart(month) {
|
147
229
|
return tuiNormalizeToIntNumber(month, MIN_MONTH, MAX_MONTH);
|
148
230
|
}
|
231
|
+
/**
|
232
|
+
* Tests month for validity
|
233
|
+
*/
|
149
234
|
static isValidMonthPart(month) {
|
150
235
|
return Number.isInteger(month) && tuiInRange(month, MIN_MONTH, MAX_MONTH + 1);
|
151
236
|
}
|
152
237
|
get formattedMonthPart() {
|
153
238
|
return String(this.month + 1).padStart(2, `0`);
|
154
239
|
}
|
240
|
+
/**
|
241
|
+
* Returns days in a month
|
242
|
+
*/
|
155
243
|
get daysCount() {
|
156
244
|
return TuiMonth.getMonthDaysCount(this.month, this.isLeapYear);
|
157
245
|
}
|
246
|
+
/**
|
247
|
+
* Passed month and year are after current
|
248
|
+
*/
|
158
249
|
monthBefore(another) {
|
159
250
|
return (this.yearBefore(another) ||
|
160
251
|
(this.yearSame(another) && this.month < another.month));
|
161
252
|
}
|
253
|
+
/**
|
254
|
+
* Passed month and year are after or the same as current
|
255
|
+
*/
|
162
256
|
monthSameOrBefore(another) {
|
163
257
|
return (this.yearBefore(another) ||
|
164
258
|
(this.yearSame(another) && this.month <= another.month));
|
165
259
|
}
|
260
|
+
/**
|
261
|
+
* Passed month and year are the same as current
|
262
|
+
*/
|
166
263
|
monthSame(another) {
|
167
264
|
return this.yearSame(another) && this.month === another.month;
|
168
265
|
}
|
266
|
+
/**
|
267
|
+
* Passed month and year are either before or equal to current
|
268
|
+
*/
|
169
269
|
monthSameOrAfter(another) {
|
170
270
|
return (this.yearAfter(another) ||
|
171
271
|
(this.yearSame(another) && this.month >= another.month));
|
172
272
|
}
|
273
|
+
/**
|
274
|
+
* Passed month and year are before current
|
275
|
+
*/
|
173
276
|
monthAfter(another) {
|
174
277
|
return (this.yearAfter(another) ||
|
175
278
|
(this.yearSame(another) && this.month > another.month));
|
176
279
|
}
|
280
|
+
/**
|
281
|
+
* Immutably alters current month and year by passed offset
|
282
|
+
*
|
283
|
+
* @param offset
|
284
|
+
* @return new month and year object as a result of offsetting current
|
285
|
+
*/
|
177
286
|
append({ year = 0, month = 0 }) {
|
178
287
|
const totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
179
288
|
return new TuiMonth(Math.floor(totalMonths / MONTHS_IN_YEAR), totalMonths % MONTHS_IN_YEAR);
|
@@ -187,31 +296,58 @@ class TuiMonth extends TuiYear {
|
|
187
296
|
toJSON() {
|
188
297
|
return `${super.toJSON()}-${this.formattedMonthPart}`;
|
189
298
|
}
|
299
|
+
/**
|
300
|
+
* Returns native {@link Date} based on local time zone
|
301
|
+
*/
|
190
302
|
toLocalNativeDate() {
|
191
303
|
return new Date(this.year, this.month);
|
192
304
|
}
|
305
|
+
/**
|
306
|
+
* Returns native {@link Date} based on UTC
|
307
|
+
*/
|
193
308
|
toUtcNativeDate() {
|
194
309
|
return new Date(Date.UTC(this.year, this.month));
|
195
310
|
}
|
196
311
|
}
|
197
312
|
|
313
|
+
// TODO: Localized formatting
|
314
|
+
/**
|
315
|
+
* Immutable date object, consisting of day, month and year
|
316
|
+
*/
|
198
317
|
class TuiDay extends TuiMonth {
|
199
318
|
constructor(year, month, day) {
|
200
319
|
super(year, month);
|
201
320
|
this.day = day;
|
202
321
|
ngDevMode && tuiAssert.assert(TuiDay.isValidDay(year, month, day));
|
203
322
|
}
|
323
|
+
/**
|
324
|
+
* Creates {@link TuiDay} from native {@link Date} based on local time zone
|
325
|
+
*/
|
204
326
|
static fromLocalNativeDate(date) {
|
205
327
|
return new TuiDay(date.getFullYear(), date.getMonth(), date.getDate());
|
206
328
|
}
|
329
|
+
/**
|
330
|
+
* Creates {@link TuiDay} from native {@link Date} using UTC
|
331
|
+
*/
|
207
332
|
static fromUtcNativeDate(date) {
|
208
333
|
return new TuiDay(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
209
334
|
}
|
335
|
+
/**
|
336
|
+
* Check validity of year, month and day
|
337
|
+
*
|
338
|
+
* @param year
|
339
|
+
* @param month
|
340
|
+
* @param day
|
341
|
+
* @return boolean validity
|
342
|
+
*/
|
210
343
|
static isValidDay(year, month, day) {
|
211
344
|
return (TuiMonth.isValidMonth(year, month) &&
|
212
345
|
Number.isInteger(day) &&
|
213
346
|
tuiInRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1));
|
214
347
|
}
|
348
|
+
/**
|
349
|
+
* Current day based on local time zone
|
350
|
+
*/
|
215
351
|
static currentLocal() {
|
216
352
|
const nativeDate = new Date();
|
217
353
|
const year = nativeDate.getFullYear();
|
@@ -219,6 +355,9 @@ class TuiDay extends TuiMonth {
|
|
219
355
|
const day = nativeDate.getDate();
|
220
356
|
return new TuiDay(year, month, day);
|
221
357
|
}
|
358
|
+
/**
|
359
|
+
* Returns current day based on UTC
|
360
|
+
*/
|
222
361
|
static currentUtc() {
|
223
362
|
const nativeDate = new Date();
|
224
363
|
const year = nativeDate.getUTCFullYear();
|
@@ -226,6 +365,14 @@ class TuiDay extends TuiMonth {
|
|
226
365
|
const day = nativeDate.getUTCDate();
|
227
366
|
return new TuiDay(year, month, day);
|
228
367
|
}
|
368
|
+
/**
|
369
|
+
* Calculates {@link TuiDay} normalizing year, month and day. {@link NaN} is turned into minimal value.
|
370
|
+
*
|
371
|
+
* @param year any year value, including invalid
|
372
|
+
* @param month any month value, including invalid (months start with 0)
|
373
|
+
* @param day any day value, including invalid
|
374
|
+
* @return normalized date
|
375
|
+
*/
|
229
376
|
static normalizeOf(year, month, day) {
|
230
377
|
const normalizedYear = TuiYear.normalizeYearPart(year);
|
231
378
|
const normalizedMonth = TuiMonth.normalizeMonthPart(month);
|
@@ -261,10 +408,24 @@ class TuiDay extends TuiMonth {
|
|
261
408
|
};
|
262
409
|
}
|
263
410
|
}
|
411
|
+
// TODO: Move month and year related code corresponding classes
|
412
|
+
/**
|
413
|
+
* Parsing a string with date with normalization
|
414
|
+
*
|
415
|
+
* @param rawDate date string
|
416
|
+
* @param dateMode date format of the date string (DMY | MDY | YMD)
|
417
|
+
* @return normalized date
|
418
|
+
*/
|
264
419
|
static normalizeParse(rawDate, dateMode = `DMY`) {
|
265
420
|
const { day, month, year } = this.parseRawDateString(rawDate, dateMode);
|
266
421
|
return TuiDay.normalizeOf(year, month, day);
|
267
422
|
}
|
423
|
+
/**
|
424
|
+
* Parsing a date stringified in a toJSON format
|
425
|
+
* @param yearMonthDayString date string in format of YYYY-MM-DD
|
426
|
+
* @return date
|
427
|
+
* @throws exceptions if any part of the date is invalid
|
428
|
+
*/
|
268
429
|
static jsonParse(yearMonthDayString) {
|
269
430
|
const { day, month, year } = this.parseRawDateString(yearMonthDayString, `YMD`);
|
270
431
|
if (!TuiYear.isValidYear(year)) {
|
@@ -291,31 +452,59 @@ class TuiDay extends TuiMonth {
|
|
291
452
|
const dayOfWeek = this.dayOfWeek(false);
|
292
453
|
return dayOfWeek === TuiDayOfWeek.Saturday || dayOfWeek === TuiDayOfWeek.Sunday;
|
293
454
|
}
|
455
|
+
/**
|
456
|
+
* Returns day of week
|
457
|
+
*
|
458
|
+
* @param startFromMonday whether week starts from Monday and not from Sunday
|
459
|
+
* @return day of week (from 0 to 6)
|
460
|
+
*/
|
294
461
|
dayOfWeek(startFromMonday = true) {
|
295
462
|
const dayOfWeek = startFromMonday
|
296
463
|
? this.toLocalNativeDate().getDay() - 1
|
297
464
|
: this.toLocalNativeDate().getDay();
|
298
465
|
return dayOfWeek < 0 ? 6 : dayOfWeek;
|
299
466
|
}
|
467
|
+
/**
|
468
|
+
* Passed date is after current
|
469
|
+
*/
|
300
470
|
dayBefore(another) {
|
301
471
|
return (this.monthBefore(another) ||
|
302
472
|
(this.monthSame(another) && this.day < another.day));
|
303
473
|
}
|
474
|
+
/**
|
475
|
+
* Passed date is after or equals to current
|
476
|
+
*/
|
304
477
|
daySameOrBefore(another) {
|
305
478
|
return (this.monthBefore(another) ||
|
306
479
|
(this.monthSame(another) && this.day <= another.day));
|
307
480
|
}
|
481
|
+
/**
|
482
|
+
* Passed date is the same as current
|
483
|
+
*/
|
308
484
|
daySame(another) {
|
309
485
|
return this.monthSame(another) && this.day === another.day;
|
310
486
|
}
|
487
|
+
/**
|
488
|
+
* Passed date is either before or the same as current
|
489
|
+
*/
|
311
490
|
daySameOrAfter(another) {
|
312
491
|
return (this.monthAfter(another) ||
|
313
492
|
(this.monthSame(another) && this.day >= another.day));
|
314
493
|
}
|
494
|
+
/**
|
495
|
+
* Passed date is before current
|
496
|
+
*/
|
315
497
|
dayAfter(another) {
|
316
498
|
return (this.monthAfter(another) ||
|
317
499
|
(this.monthSame(another) && this.day > another.day));
|
318
500
|
}
|
501
|
+
/**
|
502
|
+
* Clamping date between two limits
|
503
|
+
*
|
504
|
+
* @param min
|
505
|
+
* @param max
|
506
|
+
* @return clamped date
|
507
|
+
*/
|
319
508
|
dayLimit(min, max) {
|
320
509
|
if (min !== null && this.dayBefore(min)) {
|
321
510
|
return min;
|
@@ -325,6 +514,16 @@ class TuiDay extends TuiMonth {
|
|
325
514
|
}
|
326
515
|
return this;
|
327
516
|
}
|
517
|
+
/**
|
518
|
+
* Immutably alters current day by passed offset
|
519
|
+
*
|
520
|
+
* If resulting month has more days than original one, date is rounded to the maximum day
|
521
|
+
* in the resulting month. Offset of days will be calculated based on the resulted year and month
|
522
|
+
* to not interfere with parent classes methods
|
523
|
+
*
|
524
|
+
* @param offset
|
525
|
+
* @return new date object as a result of offsetting current
|
526
|
+
*/
|
328
527
|
append({ year = 0, month = 0, day = 0 }) {
|
329
528
|
const totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
330
529
|
let years = Math.floor(totalMonths / MONTHS_IN_YEAR);
|
@@ -352,6 +551,9 @@ class TuiDay extends TuiMonth {
|
|
352
551
|
}
|
353
552
|
return new TuiDay(years, months, days);
|
354
553
|
}
|
554
|
+
/**
|
555
|
+
* Returns formatted whole date
|
556
|
+
*/
|
355
557
|
getFormattedDay(dateFormat, separator) {
|
356
558
|
ngDevMode &&
|
357
559
|
tuiAssert.assert(separator.length === 1, `Separator should consist of only 1 symbol`);
|
@@ -374,14 +576,23 @@ class TuiDay extends TuiMonth {
|
|
374
576
|
toJSON() {
|
375
577
|
return `${super.toJSON()}-${this.formattedDayPart}`;
|
376
578
|
}
|
579
|
+
/**
|
580
|
+
* Returns native {@link Date} based on local time zone
|
581
|
+
*/
|
377
582
|
toLocalNativeDate() {
|
378
583
|
return new Date(this.year, this.month, this.day);
|
379
584
|
}
|
585
|
+
/**
|
586
|
+
* Returns native {@link Date} based on UTC
|
587
|
+
*/
|
380
588
|
toUtcNativeDate() {
|
381
589
|
return new Date(Date.UTC(this.year, this.month, this.day));
|
382
590
|
}
|
383
591
|
}
|
384
592
|
|
593
|
+
/**
|
594
|
+
* An immutable range of two {@link TuiMonth} objects
|
595
|
+
*/
|
385
596
|
class TuiMonthRange {
|
386
597
|
constructor(from, to) {
|
387
598
|
this.from = from;
|
@@ -404,6 +615,9 @@ class TuiMonthRange {
|
|
404
615
|
}
|
405
616
|
}
|
406
617
|
|
618
|
+
/**
|
619
|
+
* An immutable range of two {@link TuiDay} objects
|
620
|
+
*/
|
407
621
|
class TuiDayRange extends TuiMonthRange {
|
408
622
|
constructor(from, to) {
|
409
623
|
super(from, to);
|
@@ -411,11 +625,25 @@ class TuiDayRange extends TuiMonthRange {
|
|
411
625
|
this.to = to;
|
412
626
|
ngDevMode && tuiAssert.assert(from.daySameOrBefore(to));
|
413
627
|
}
|
628
|
+
/**
|
629
|
+
* Creates range from two days after sorting them
|
630
|
+
*
|
631
|
+
* @param day1
|
632
|
+
* @param day2
|
633
|
+
* @return new range with sorted days
|
634
|
+
*/
|
414
635
|
static sort(day1, day2) {
|
415
636
|
return day1.daySameOrBefore(day2)
|
416
637
|
? new TuiDayRange(day1, day2)
|
417
638
|
: new TuiDayRange(day2, day1);
|
418
639
|
}
|
640
|
+
/**
|
641
|
+
* Parse and correct a day range in string format
|
642
|
+
*
|
643
|
+
* @param rangeString a string of dates in a format dd.mm.yyyy - dd.mm.yyyy
|
644
|
+
* @param dateMode {@link TuiDateMode}
|
645
|
+
* @return normalized day range object
|
646
|
+
*/
|
419
647
|
static normalizeParse(rangeString, dateMode = `DMY`) {
|
420
648
|
const leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
|
421
649
|
if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
|
@@ -426,12 +654,28 @@ class TuiDayRange extends TuiMonthRange {
|
|
426
654
|
get isSingleDay() {
|
427
655
|
return this.from.daySame(this.to);
|
428
656
|
}
|
657
|
+
/**
|
658
|
+
* Tests ranges for identity
|
659
|
+
*
|
660
|
+
* @param another second range to test against current
|
661
|
+
* @return `true` if days are identical
|
662
|
+
*/
|
429
663
|
daySame(another) {
|
430
664
|
return this.from.daySame(another.from) && this.to.daySame(another.to);
|
431
665
|
}
|
666
|
+
/**
|
667
|
+
* Locks range between two days included, or limits from one side if the other is null
|
668
|
+
*
|
669
|
+
* @param min
|
670
|
+
* @param max
|
671
|
+
* @return range — clamped range
|
672
|
+
*/
|
432
673
|
dayLimit(min, max) {
|
433
674
|
return new TuiDayRange(this.from.dayLimit(min, max), this.to.dayLimit(min, max));
|
434
675
|
}
|
676
|
+
/**
|
677
|
+
* Human readable format.
|
678
|
+
*/
|
435
679
|
getFormattedDayRange(dateFormat, dateSeparator) {
|
436
680
|
const from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
437
681
|
const to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
@@ -447,6 +691,9 @@ class TuiDayRange extends TuiMonthRange {
|
|
447
691
|
const TUI_FIRST_DAY = new TuiDay(MIN_YEAR, MIN_MONTH, MIN_DAY);
|
448
692
|
const TUI_LAST_DAY = new TuiDay(MAX_YEAR, MAX_MONTH, 31);
|
449
693
|
|
694
|
+
/**
|
695
|
+
* Immutable time object with hours, minutes, seconds and ms
|
696
|
+
*/
|
450
697
|
class TuiTime {
|
451
698
|
constructor(hours, minutes, seconds = 0, ms = 0) {
|
452
699
|
this.hours = hours;
|
@@ -456,6 +703,9 @@ class TuiTime {
|
|
456
703
|
ngDevMode &&
|
457
704
|
tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), `Time must be real, but got:`, hours, minutes, seconds, ms);
|
458
705
|
}
|
706
|
+
/**
|
707
|
+
* Checks if time is valid
|
708
|
+
*/
|
459
709
|
static isValidTime(hours, minutes, seconds = 0, ms = 0) {
|
460
710
|
return (Number.isInteger(hours) &&
|
461
711
|
tuiInRange(hours, 0, HOURS_IN_DAY) &&
|
@@ -466,14 +716,23 @@ class TuiTime {
|
|
466
716
|
Number.isInteger(ms) &&
|
467
717
|
tuiInRange(ms, 0, 1000));
|
468
718
|
}
|
719
|
+
/**
|
720
|
+
* Current UTC time.
|
721
|
+
*/
|
469
722
|
static current() {
|
470
723
|
return TuiTime.fromAbsoluteMilliseconds(Date.now() % MILLISECONDS_IN_DAY);
|
471
724
|
}
|
725
|
+
/**
|
726
|
+
* Current time in local timezone
|
727
|
+
*/
|
472
728
|
static currentLocal() {
|
473
729
|
const date = new Date();
|
474
730
|
return TuiTime.fromAbsoluteMilliseconds((Date.now() - date.getTimezoneOffset() * MILLISECONDS_IN_MINUTE) %
|
475
731
|
MILLISECONDS_IN_DAY);
|
476
732
|
}
|
733
|
+
/**
|
734
|
+
* Calculates TuiTime from milliseconds
|
735
|
+
*/
|
477
736
|
static fromAbsoluteMilliseconds(milliseconds) {
|
478
737
|
ngDevMode && tuiAssert.assert(Number.isInteger(milliseconds));
|
479
738
|
ngDevMode &&
|
@@ -484,6 +743,9 @@ class TuiTime {
|
|
484
743
|
const ms = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) % 1000) || 0;
|
485
744
|
return new TuiTime(hours, minutes, seconds, ms);
|
486
745
|
}
|
746
|
+
/**
|
747
|
+
* Parses string into TuiTime object
|
748
|
+
*/
|
487
749
|
static fromString(time) {
|
488
750
|
const hours = Number(time.slice(0, 2));
|
489
751
|
const minutes = Number(time.slice(3, 5));
|
@@ -491,9 +753,16 @@ class TuiTime {
|
|
491
753
|
const ms = Number(time.slice(9, 12)) || 0;
|
492
754
|
return new TuiTime(hours, minutes, seconds, ms);
|
493
755
|
}
|
756
|
+
/**
|
757
|
+
* Converts Date object into TuiTime
|
758
|
+
* @param date
|
759
|
+
*/
|
494
760
|
static fromLocalNativeDate(date) {
|
495
761
|
return new TuiTime(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
496
762
|
}
|
763
|
+
/**
|
764
|
+
* Shifts time by hours and minutes
|
765
|
+
*/
|
497
766
|
shift({ hours = 0, minutes = 0, seconds = 0, ms = 0 }) {
|
498
767
|
const newMs = (1000 + this.ms + (ms % 1000)) % 1000;
|
499
768
|
const secondsInMs = ms < 0 ? Math.ceil(ms / 1000) : Math.floor(ms / 1000);
|
@@ -511,6 +780,9 @@ class TuiTime {
|
|
511
780
|
const newHours = (24 + this.hours + (hoursToAdd % 24)) % 24;
|
512
781
|
return new TuiTime(newHours, newMinutes, newSeconds, newMs);
|
513
782
|
}
|
783
|
+
/**
|
784
|
+
* Converts TuiTime to string
|
785
|
+
*/
|
514
786
|
toString(mode) {
|
515
787
|
const needAddMs = mode === `HH:MM:SS.MSS` || (!mode && this.ms > 0);
|
516
788
|
const needAddSeconds = needAddMs || mode === `HH:MM:SS` || (!mode && this.seconds > 0);
|
@@ -521,9 +793,17 @@ class TuiTime {
|
|
521
793
|
valueOf() {
|
522
794
|
return this.toAbsoluteMilliseconds();
|
523
795
|
}
|
796
|
+
/**
|
797
|
+
* Returns the primitive value of the given Date object.
|
798
|
+
* Depending on the argument, the method can return either a string or a number.
|
799
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
800
|
+
*/
|
524
801
|
[Symbol.toPrimitive](hint) {
|
525
802
|
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
526
803
|
}
|
804
|
+
/**
|
805
|
+
* Converts TuiTime to milliseconds
|
806
|
+
*/
|
527
807
|
toAbsoluteMilliseconds() {
|
528
808
|
return (this.hours * MILLISECONDS_IN_HOUR +
|
529
809
|
this.minutes * MILLISECONDS_IN_MINUTE +
|
@@ -535,5 +815,9 @@ class TuiTime {
|
|
535
815
|
}
|
536
816
|
}
|
537
817
|
|
818
|
+
/**
|
819
|
+
* Generated bundle index. Do not edit.
|
820
|
+
*/
|
821
|
+
|
538
822
|
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_FORMAT, TUI_DATE_SEPARATOR, TUI_FIRST_DAY, TUI_LAST_DAY, TuiDay, TuiDayRange, TuiMonth, TuiMonthRange, TuiTime, TuiYear, changeDateSeparator, tuiDateClamp };
|
539
823
|
//# sourceMappingURL=taiga-ui-cdk-date-time.js.map
|