@taiga-ui/cdk 3.51.0-canary.d032cc6 → 3.52.0-canary.164e55d
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 +109 -1
- 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/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 +6 -0
- 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 +7 -1
- 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/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/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/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 +109 -1
- 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 +4 -2
- package/pipes/filter/filter.pipe.d.ts +7 -0
- 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 +7 -0
- 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/interfaces/index.d.ts +12 -0
- package/schematics/ng-update/interfaces/index.js +15 -0
- package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.d.ts → interfaces/replacement-attribute-value.d.ts} +1 -1
- package/schematics/ng-update/interfaces/{replaceable-attribute.d.ts → replacement-attribute.d.ts} +1 -1
- package/schematics/ng-update/interfaces/{replacement-const.d.ts → replacement-identifier.d.ts} +1 -1
- package/schematics/ng-update/interfaces/replacement-service.d.ts +2 -2
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +5 -0
- package/schematics/ng-update/interfaces/{type-to-rename.d.ts → replacement-type.d.ts} +1 -1
- package/schematics/ng-update/steps/icons/replace-imports.d.ts +2 -2
- package/schematics/ng-update/steps/rename-types.d.ts +2 -2
- 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-identifier.d.ts +4 -0
- package/schematics/ng-update/steps/{replace-const.js → replace-identifier.js} +8 -8
- 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 +3 -3
- package/schematics/ng-update/utils/templates/replace-attr-values.js +2 -2
- package/schematics/ng-update/utils/templates/replace-attrs.d.ts +10 -0
- package/schematics/ng-update/utils/templates/replace-attrs.js +20 -0
- 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/constants.d.ts +2 -2
- package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +2 -2
- package/schematics/ng-update/v3/constants/enums.js +4 -0
- package/schematics/ng-update/v3/constants/templates.d.ts +12 -7
- package/schematics/ng-update/v3/constants/templates.js +5 -0
- package/schematics/ng-update/v3/constants/types.d.ts +2 -2
- 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 +19 -40
- 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/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3-30/index.js +1 -0
- package/schematics/ng-update/v3-35/constants/constants.d.ts +2 -2
- 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 +19 -6
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +33 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +32 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +6 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +7 -0
- package/schematics/ng-update/v4/steps/index.d.ts +3 -0
- package/schematics/ng-update/v4/steps/index.js +6 -0
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +3 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +44 -0
- 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/ng-update/v4/steps/templates/migrate-badge.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +29 -0
- 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.d.ts +2 -2
- 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 +9 -0
- package/types/matcher.d.ts +8 -0
- 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/steps/replace-const.d.ts +0 -4
- package/schematics/ng-update/v3/interfaces/replaceable-tag.d.ts +0 -5
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.d.ts +0 -3
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.js +0 -58
- /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/interfaces/{replaceable-attribute.js → replacement-attribute-value.js} +0 -0
- /package/schematics/ng-update/interfaces/{replacement-const.js → replacement-attribute.js} +0 -0
- /package/schematics/ng-update/interfaces/{type-to-rename.js → replacement-identifier.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.js → interfaces/replacement-tag.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/replaceable-tag.js → interfaces/replacement-type.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
@@ -32,11 +32,28 @@
|
|
32
32
|
var MILLISECONDS_IN_HOUR = MILLISECONDS_IN_MINUTE * MINUTES_IN_HOUR;
|
33
33
|
var MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
|
34
34
|
|
35
|
+
/**
|
36
|
+
* @internal 'dd.mm.yyyy'.length
|
37
|
+
* Used in:
|
38
|
+
* - {@link TuiInputDateComponent}
|
39
|
+
* - {@link TuiInputDateRangeComponent}
|
40
|
+
* - {@link TuiInputDateTimeComponent}
|
41
|
+
*/
|
35
42
|
var DATE_FILLER_LENGTH = 10;
|
43
|
+
/**
|
44
|
+
* @internal
|
45
|
+
* Used in {@link TuiInputDateRangeComponent}
|
46
|
+
*/
|
36
47
|
var DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
|
37
48
|
|
49
|
+
/**
|
50
|
+
* Active date format for Taiga UI
|
51
|
+
*/
|
38
52
|
var TUI_DATE_FORMAT = utils.tuiCreateToken("DMY");
|
39
53
|
|
54
|
+
/**
|
55
|
+
* Date separator for Taiga UI components
|
56
|
+
*/
|
40
57
|
var TUI_DATE_SEPARATOR = utils.tuiCreateToken(".");
|
41
58
|
var changeDateSeparator = function (dateString, newDateSeparator) { return dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator); };
|
42
59
|
|
@@ -358,18 +375,31 @@
|
|
358
375
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
359
376
|
}
|
360
377
|
|
378
|
+
/**
|
379
|
+
* Immutable year object
|
380
|
+
* @nosideeffects
|
381
|
+
*/
|
361
382
|
var TuiYear = /** @class */ (function () {
|
362
383
|
function TuiYear(year) {
|
363
384
|
this.year = year;
|
364
385
|
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
365
386
|
}
|
387
|
+
/**
|
388
|
+
* Checks year for validity
|
389
|
+
*/
|
366
390
|
TuiYear.isValidYear = function (year) {
|
367
391
|
return Number.isInteger(year) && math.tuiInRange(year, MIN_YEAR, MAX_YEAR + 1);
|
368
392
|
};
|
393
|
+
/**
|
394
|
+
* Check if passed year is a leap year
|
395
|
+
*/
|
369
396
|
TuiYear.isLeapYear = function (year) {
|
370
397
|
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
371
398
|
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
|
372
399
|
};
|
400
|
+
/**
|
401
|
+
* Returns amount of leap years from year 0 to the passed one
|
402
|
+
*/
|
373
403
|
TuiYear.getAbsoluteLeapYears = function (year) {
|
374
404
|
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
375
405
|
return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
|
@@ -377,6 +407,9 @@
|
|
377
407
|
TuiYear.lengthBetween = function (from, to) {
|
378
408
|
return to.year - from.year;
|
379
409
|
};
|
410
|
+
/**
|
411
|
+
* Normalizes year by clamping it between min and max years
|
412
|
+
*/
|
380
413
|
TuiYear.normalizeYearPart = function (year) {
|
381
414
|
return math.tuiNormalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
|
382
415
|
};
|
@@ -395,32 +428,53 @@
|
|
395
428
|
configurable: true
|
396
429
|
});
|
397
430
|
Object.defineProperty(TuiYear.prototype, "absoluteLeapYears", {
|
431
|
+
/**
|
432
|
+
* Returns amount of leap years from year 0 to current
|
433
|
+
*/
|
398
434
|
get: function () {
|
399
435
|
return TuiYear.getAbsoluteLeapYears(this.year);
|
400
436
|
},
|
401
437
|
enumerable: false,
|
402
438
|
configurable: true
|
403
439
|
});
|
440
|
+
/**
|
441
|
+
* Passed year is after current
|
442
|
+
*/
|
404
443
|
TuiYear.prototype.yearBefore = function (_a) {
|
405
444
|
var year = _a.year;
|
406
445
|
return this.year < year;
|
407
446
|
};
|
447
|
+
/**
|
448
|
+
* Passed year is the same or after current
|
449
|
+
*/
|
408
450
|
TuiYear.prototype.yearSameOrBefore = function (_a) {
|
409
451
|
var year = _a.year;
|
410
452
|
return this.year <= year;
|
411
453
|
};
|
454
|
+
/**
|
455
|
+
* Passed year is the same as current
|
456
|
+
*/
|
412
457
|
TuiYear.prototype.yearSame = function (_a) {
|
413
458
|
var year = _a.year;
|
414
459
|
return this.year === year;
|
415
460
|
};
|
461
|
+
/**
|
462
|
+
* Passed year is either the same of before the current
|
463
|
+
*/
|
416
464
|
TuiYear.prototype.yearSameOrAfter = function (_a) {
|
417
465
|
var year = _a.year;
|
418
466
|
return this.year >= year;
|
419
467
|
};
|
468
|
+
/**
|
469
|
+
* Passed year is before current
|
470
|
+
*/
|
420
471
|
TuiYear.prototype.yearAfter = function (_a) {
|
421
472
|
var year = _a.year;
|
422
473
|
return this.year > year;
|
423
474
|
};
|
475
|
+
/**
|
476
|
+
* Immutably offsets year
|
477
|
+
*/
|
424
478
|
TuiYear.prototype.append = function (_a) {
|
425
479
|
var _b = _a.year, year = _b === void 0 ? 0 : _b;
|
426
480
|
ngDevMode && classes.tuiAssert.assert(Number.isInteger(year));
|
@@ -434,6 +488,11 @@
|
|
434
488
|
TuiYear.prototype.valueOf = function () {
|
435
489
|
return this.year;
|
436
490
|
};
|
491
|
+
/**
|
492
|
+
* Returns the primitive value of the given Date object.
|
493
|
+
* Depending on the argument, the method can return either a string or a number.
|
494
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
495
|
+
*/
|
437
496
|
TuiYear.prototype[Symbol.toPrimitive] = function (hint) {
|
438
497
|
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
439
498
|
};
|
@@ -443,17 +502,30 @@
|
|
443
502
|
return TuiYear;
|
444
503
|
}());
|
445
504
|
|
505
|
+
/**
|
506
|
+
* Immutable object consisting of year and month
|
507
|
+
*/
|
446
508
|
var TuiMonth = /** @class */ (function (_super) {
|
447
509
|
__extends(TuiMonth, _super);
|
510
|
+
/**
|
511
|
+
* @param year
|
512
|
+
* @param month (starting with 0)
|
513
|
+
*/
|
448
514
|
function TuiMonth(year, month) {
|
449
515
|
var _this = _super.call(this, year) || this;
|
450
516
|
_this.month = month;
|
451
517
|
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
452
518
|
return _this;
|
453
519
|
}
|
520
|
+
/**
|
521
|
+
* Tests month and year for validity
|
522
|
+
*/
|
454
523
|
TuiMonth.isValidMonth = function (year, month) {
|
455
524
|
return TuiYear.isValidYear(year) && TuiMonth.isValidMonthPart(month);
|
456
525
|
};
|
526
|
+
/**
|
527
|
+
* Returns number of days in a month
|
528
|
+
*/
|
457
529
|
TuiMonth.getMonthDaysCount = function (month, isLeapYear) {
|
458
530
|
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
|
459
531
|
switch (month) {
|
@@ -468,10 +540,17 @@
|
|
468
540
|
return 31;
|
469
541
|
}
|
470
542
|
};
|
543
|
+
/**
|
544
|
+
* Returns current month and year based on local time zone
|
545
|
+
* @nosideeffects
|
546
|
+
*/
|
471
547
|
TuiMonth.currentLocal = function () {
|
472
548
|
var nativeDate = new Date();
|
473
549
|
return new TuiMonth(nativeDate.getFullYear(), nativeDate.getMonth());
|
474
550
|
};
|
551
|
+
/**
|
552
|
+
* Returns current month and year based on UTC
|
553
|
+
*/
|
475
554
|
TuiMonth.currentUtc = function () {
|
476
555
|
var nativeDate = new Date();
|
477
556
|
return new TuiMonth(nativeDate.getUTCFullYear(), nativeDate.getUTCMonth());
|
@@ -481,9 +560,15 @@
|
|
481
560
|
var absoluteTo = to.month + to.year * 12;
|
482
561
|
return absoluteTo - absoluteFrom;
|
483
562
|
};
|
563
|
+
/**
|
564
|
+
* Normalizes number by clamping it between min and max month
|
565
|
+
*/
|
484
566
|
TuiMonth.normalizeMonthPart = function (month) {
|
485
567
|
return math.tuiNormalizeToIntNumber(month, MIN_MONTH, MAX_MONTH);
|
486
568
|
};
|
569
|
+
/**
|
570
|
+
* Tests month for validity
|
571
|
+
*/
|
487
572
|
TuiMonth.isValidMonthPart = function (month) {
|
488
573
|
return Number.isInteger(month) && math.tuiInRange(month, MIN_MONTH, MAX_MONTH + 1);
|
489
574
|
};
|
@@ -495,31 +580,55 @@
|
|
495
580
|
configurable: true
|
496
581
|
});
|
497
582
|
Object.defineProperty(TuiMonth.prototype, "daysCount", {
|
583
|
+
/**
|
584
|
+
* Returns days in a month
|
585
|
+
*/
|
498
586
|
get: function () {
|
499
587
|
return TuiMonth.getMonthDaysCount(this.month, this.isLeapYear);
|
500
588
|
},
|
501
589
|
enumerable: false,
|
502
590
|
configurable: true
|
503
591
|
});
|
592
|
+
/**
|
593
|
+
* Passed month and year are after current
|
594
|
+
*/
|
504
595
|
TuiMonth.prototype.monthBefore = function (another) {
|
505
596
|
return (this.yearBefore(another) ||
|
506
597
|
(this.yearSame(another) && this.month < another.month));
|
507
598
|
};
|
599
|
+
/**
|
600
|
+
* Passed month and year are after or the same as current
|
601
|
+
*/
|
508
602
|
TuiMonth.prototype.monthSameOrBefore = function (another) {
|
509
603
|
return (this.yearBefore(another) ||
|
510
604
|
(this.yearSame(another) && this.month <= another.month));
|
511
605
|
};
|
606
|
+
/**
|
607
|
+
* Passed month and year are the same as current
|
608
|
+
*/
|
512
609
|
TuiMonth.prototype.monthSame = function (another) {
|
513
610
|
return this.yearSame(another) && this.month === another.month;
|
514
611
|
};
|
612
|
+
/**
|
613
|
+
* Passed month and year are either before or equal to current
|
614
|
+
*/
|
515
615
|
TuiMonth.prototype.monthSameOrAfter = function (another) {
|
516
616
|
return (this.yearAfter(another) ||
|
517
617
|
(this.yearSame(another) && this.month >= another.month));
|
518
618
|
};
|
619
|
+
/**
|
620
|
+
* Passed month and year are before current
|
621
|
+
*/
|
519
622
|
TuiMonth.prototype.monthAfter = function (another) {
|
520
623
|
return (this.yearAfter(another) ||
|
521
624
|
(this.yearSame(another) && this.month > another.month));
|
522
625
|
};
|
626
|
+
/**
|
627
|
+
* Immutably alters current month and year by passed offset
|
628
|
+
*
|
629
|
+
* @param offset
|
630
|
+
* @return new month and year object as a result of offsetting current
|
631
|
+
*/
|
523
632
|
TuiMonth.prototype.append = function (_a) {
|
524
633
|
var _b = _a.year, year = _b === void 0 ? 0 : _b, _c = _a.month, month = _c === void 0 ? 0 : _c;
|
525
634
|
var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
@@ -534,15 +643,25 @@
|
|
534
643
|
TuiMonth.prototype.toJSON = function () {
|
535
644
|
return _super.prototype.toJSON.call(this) + "-" + this.formattedMonthPart;
|
536
645
|
};
|
646
|
+
/**
|
647
|
+
* Returns native {@link Date} based on local time zone
|
648
|
+
*/
|
537
649
|
TuiMonth.prototype.toLocalNativeDate = function () {
|
538
650
|
return new Date(this.year, this.month);
|
539
651
|
};
|
652
|
+
/**
|
653
|
+
* Returns native {@link Date} based on UTC
|
654
|
+
*/
|
540
655
|
TuiMonth.prototype.toUtcNativeDate = function () {
|
541
656
|
return new Date(Date.UTC(this.year, this.month));
|
542
657
|
};
|
543
658
|
return TuiMonth;
|
544
659
|
}(TuiYear));
|
545
660
|
|
661
|
+
// TODO: Localized formatting
|
662
|
+
/**
|
663
|
+
* Immutable date object, consisting of day, month and year
|
664
|
+
*/
|
546
665
|
var TuiDay = /** @class */ (function (_super) {
|
547
666
|
__extends(TuiDay, _super);
|
548
667
|
function TuiDay(year, month, day) {
|
@@ -551,17 +670,34 @@
|
|
551
670
|
ngDevMode && classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
|
552
671
|
return _this;
|
553
672
|
}
|
673
|
+
/**
|
674
|
+
* Creates {@link TuiDay} from native {@link Date} based on local time zone
|
675
|
+
*/
|
554
676
|
TuiDay.fromLocalNativeDate = function (date) {
|
555
677
|
return new TuiDay(date.getFullYear(), date.getMonth(), date.getDate());
|
556
678
|
};
|
679
|
+
/**
|
680
|
+
* Creates {@link TuiDay} from native {@link Date} using UTC
|
681
|
+
*/
|
557
682
|
TuiDay.fromUtcNativeDate = function (date) {
|
558
683
|
return new TuiDay(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
559
684
|
};
|
685
|
+
/**
|
686
|
+
* Check validity of year, month and day
|
687
|
+
*
|
688
|
+
* @param year
|
689
|
+
* @param month
|
690
|
+
* @param day
|
691
|
+
* @return boolean validity
|
692
|
+
*/
|
560
693
|
TuiDay.isValidDay = function (year, month, day) {
|
561
694
|
return (TuiMonth.isValidMonth(year, month) &&
|
562
695
|
Number.isInteger(day) &&
|
563
696
|
math.tuiInRange(day, MIN_DAY, TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year)) + 1));
|
564
697
|
};
|
698
|
+
/**
|
699
|
+
* Current day based on local time zone
|
700
|
+
*/
|
565
701
|
TuiDay.currentLocal = function () {
|
566
702
|
var nativeDate = new Date();
|
567
703
|
var year = nativeDate.getFullYear();
|
@@ -569,6 +705,9 @@
|
|
569
705
|
var day = nativeDate.getDate();
|
570
706
|
return new TuiDay(year, month, day);
|
571
707
|
};
|
708
|
+
/**
|
709
|
+
* Returns current day based on UTC
|
710
|
+
*/
|
572
711
|
TuiDay.currentUtc = function () {
|
573
712
|
var nativeDate = new Date();
|
574
713
|
var year = nativeDate.getUTCFullYear();
|
@@ -576,6 +715,14 @@
|
|
576
715
|
var day = nativeDate.getUTCDate();
|
577
716
|
return new TuiDay(year, month, day);
|
578
717
|
};
|
718
|
+
/**
|
719
|
+
* Calculates {@link TuiDay} normalizing year, month and day. {@link NaN} is turned into minimal value.
|
720
|
+
*
|
721
|
+
* @param year any year value, including invalid
|
722
|
+
* @param month any month value, including invalid (months start with 0)
|
723
|
+
* @param day any day value, including invalid
|
724
|
+
* @return normalized date
|
725
|
+
*/
|
579
726
|
TuiDay.normalizeOf = function (year, month, day) {
|
580
727
|
var normalizedYear = TuiYear.normalizeYearPart(year);
|
581
728
|
var normalizedMonth = TuiMonth.normalizeMonthPart(month);
|
@@ -612,11 +759,25 @@
|
|
612
759
|
};
|
613
760
|
}
|
614
761
|
};
|
762
|
+
// TODO: Move month and year related code corresponding classes
|
763
|
+
/**
|
764
|
+
* Parsing a string with date with normalization
|
765
|
+
*
|
766
|
+
* @param rawDate date string
|
767
|
+
* @param dateMode date format of the date string (DMY | MDY | YMD)
|
768
|
+
* @return normalized date
|
769
|
+
*/
|
615
770
|
TuiDay.normalizeParse = function (rawDate, dateMode) {
|
616
771
|
if (dateMode === void 0) { dateMode = "DMY"; }
|
617
772
|
var _a = this.parseRawDateString(rawDate, dateMode), day = _a.day, month = _a.month, year = _a.year;
|
618
773
|
return TuiDay.normalizeOf(year, month, day);
|
619
774
|
};
|
775
|
+
/**
|
776
|
+
* Parsing a date stringified in a toJSON format
|
777
|
+
* @param yearMonthDayString date string in format of YYYY-MM-DD
|
778
|
+
* @return date
|
779
|
+
* @throws exceptions if any part of the date is invalid
|
780
|
+
*/
|
620
781
|
TuiDay.jsonParse = function (yearMonthDayString) {
|
621
782
|
var _a = this.parseRawDateString(yearMonthDayString, "YMD"), day = _a.day, month = _a.month, year = _a.year;
|
622
783
|
if (!TuiYear.isValidYear(year)) {
|
@@ -651,6 +812,12 @@
|
|
651
812
|
enumerable: false,
|
652
813
|
configurable: true
|
653
814
|
});
|
815
|
+
/**
|
816
|
+
* Returns day of week
|
817
|
+
*
|
818
|
+
* @param startFromMonday whether week starts from Monday and not from Sunday
|
819
|
+
* @return day of week (from 0 to 6)
|
820
|
+
*/
|
654
821
|
TuiDay.prototype.dayOfWeek = function (startFromMonday) {
|
655
822
|
if (startFromMonday === void 0) { startFromMonday = true; }
|
656
823
|
var dayOfWeek = startFromMonday
|
@@ -658,25 +825,47 @@
|
|
658
825
|
: this.toLocalNativeDate().getDay();
|
659
826
|
return dayOfWeek < 0 ? 6 : dayOfWeek;
|
660
827
|
};
|
828
|
+
/**
|
829
|
+
* Passed date is after current
|
830
|
+
*/
|
661
831
|
TuiDay.prototype.dayBefore = function (another) {
|
662
832
|
return (this.monthBefore(another) ||
|
663
833
|
(this.monthSame(another) && this.day < another.day));
|
664
834
|
};
|
835
|
+
/**
|
836
|
+
* Passed date is after or equals to current
|
837
|
+
*/
|
665
838
|
TuiDay.prototype.daySameOrBefore = function (another) {
|
666
839
|
return (this.monthBefore(another) ||
|
667
840
|
(this.monthSame(another) && this.day <= another.day));
|
668
841
|
};
|
842
|
+
/**
|
843
|
+
* Passed date is the same as current
|
844
|
+
*/
|
669
845
|
TuiDay.prototype.daySame = function (another) {
|
670
846
|
return this.monthSame(another) && this.day === another.day;
|
671
847
|
};
|
848
|
+
/**
|
849
|
+
* Passed date is either before or the same as current
|
850
|
+
*/
|
672
851
|
TuiDay.prototype.daySameOrAfter = function (another) {
|
673
852
|
return (this.monthAfter(another) ||
|
674
853
|
(this.monthSame(another) && this.day >= another.day));
|
675
854
|
};
|
855
|
+
/**
|
856
|
+
* Passed date is before current
|
857
|
+
*/
|
676
858
|
TuiDay.prototype.dayAfter = function (another) {
|
677
859
|
return (this.monthAfter(another) ||
|
678
860
|
(this.monthSame(another) && this.day > another.day));
|
679
861
|
};
|
862
|
+
/**
|
863
|
+
* Clamping date between two limits
|
864
|
+
*
|
865
|
+
* @param min
|
866
|
+
* @param max
|
867
|
+
* @return clamped date
|
868
|
+
*/
|
680
869
|
TuiDay.prototype.dayLimit = function (min, max) {
|
681
870
|
if (min !== null && this.dayBefore(min)) {
|
682
871
|
return min;
|
@@ -686,6 +875,16 @@
|
|
686
875
|
}
|
687
876
|
return this;
|
688
877
|
};
|
878
|
+
/**
|
879
|
+
* Immutably alters current day by passed offset
|
880
|
+
*
|
881
|
+
* If resulting month has more days than original one, date is rounded to the maximum day
|
882
|
+
* in the resulting month. Offset of days will be calculated based on the resulted year and month
|
883
|
+
* to not interfere with parent classes methods
|
884
|
+
*
|
885
|
+
* @param offset
|
886
|
+
* @return new date object as a result of offsetting current
|
887
|
+
*/
|
689
888
|
TuiDay.prototype.append = function (_a) {
|
690
889
|
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;
|
691
890
|
var totalMonths = (this.year + year) * MONTHS_IN_YEAR + this.month + month;
|
@@ -714,6 +913,9 @@
|
|
714
913
|
}
|
715
914
|
return new TuiDay(years, months, days);
|
716
915
|
};
|
916
|
+
/**
|
917
|
+
* Returns formatted whole date
|
918
|
+
*/
|
717
919
|
TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
|
718
920
|
ngDevMode &&
|
719
921
|
classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
|
@@ -738,15 +940,24 @@
|
|
738
940
|
TuiDay.prototype.toJSON = function () {
|
739
941
|
return _super.prototype.toJSON.call(this) + "-" + this.formattedDayPart;
|
740
942
|
};
|
943
|
+
/**
|
944
|
+
* Returns native {@link Date} based on local time zone
|
945
|
+
*/
|
741
946
|
TuiDay.prototype.toLocalNativeDate = function () {
|
742
947
|
return new Date(this.year, this.month, this.day);
|
743
948
|
};
|
949
|
+
/**
|
950
|
+
* Returns native {@link Date} based on UTC
|
951
|
+
*/
|
744
952
|
TuiDay.prototype.toUtcNativeDate = function () {
|
745
953
|
return new Date(Date.UTC(this.year, this.month, this.day));
|
746
954
|
};
|
747
955
|
return TuiDay;
|
748
956
|
}(TuiMonth));
|
749
957
|
|
958
|
+
/**
|
959
|
+
* An immutable range of two {@link TuiMonth} objects
|
960
|
+
*/
|
750
961
|
var TuiMonthRange = /** @class */ (function () {
|
751
962
|
function TuiMonthRange(from, to) {
|
752
963
|
this.from = from;
|
@@ -774,6 +985,9 @@
|
|
774
985
|
return TuiMonthRange;
|
775
986
|
}());
|
776
987
|
|
988
|
+
/**
|
989
|
+
* An immutable range of two {@link TuiDay} objects
|
990
|
+
*/
|
777
991
|
var TuiDayRange = /** @class */ (function (_super) {
|
778
992
|
__extends(TuiDayRange, _super);
|
779
993
|
function TuiDayRange(from, to) {
|
@@ -783,11 +997,25 @@
|
|
783
997
|
ngDevMode && classes.tuiAssert.assert(from.daySameOrBefore(to));
|
784
998
|
return _this;
|
785
999
|
}
|
1000
|
+
/**
|
1001
|
+
* Creates range from two days after sorting them
|
1002
|
+
*
|
1003
|
+
* @param day1
|
1004
|
+
* @param day2
|
1005
|
+
* @return new range with sorted days
|
1006
|
+
*/
|
786
1007
|
TuiDayRange.sort = function (day1, day2) {
|
787
1008
|
return day1.daySameOrBefore(day2)
|
788
1009
|
? new TuiDayRange(day1, day2)
|
789
1010
|
: new TuiDayRange(day2, day1);
|
790
1011
|
};
|
1012
|
+
/**
|
1013
|
+
* Parse and correct a day range in string format
|
1014
|
+
*
|
1015
|
+
* @param rangeString a string of dates in a format dd.mm.yyyy - dd.mm.yyyy
|
1016
|
+
* @param dateMode {@link TuiDateMode}
|
1017
|
+
* @return normalized day range object
|
1018
|
+
*/
|
791
1019
|
TuiDayRange.normalizeParse = function (rangeString, dateMode) {
|
792
1020
|
if (dateMode === void 0) { dateMode = "DMY"; }
|
793
1021
|
var leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateMode);
|
@@ -803,12 +1031,28 @@
|
|
803
1031
|
enumerable: false,
|
804
1032
|
configurable: true
|
805
1033
|
});
|
1034
|
+
/**
|
1035
|
+
* Tests ranges for identity
|
1036
|
+
*
|
1037
|
+
* @param another second range to test against current
|
1038
|
+
* @return `true` if days are identical
|
1039
|
+
*/
|
806
1040
|
TuiDayRange.prototype.daySame = function (another) {
|
807
1041
|
return this.from.daySame(another.from) && this.to.daySame(another.to);
|
808
1042
|
};
|
1043
|
+
/**
|
1044
|
+
* Locks range between two days included, or limits from one side if the other is null
|
1045
|
+
*
|
1046
|
+
* @param min
|
1047
|
+
* @param max
|
1048
|
+
* @return range — clamped range
|
1049
|
+
*/
|
809
1050
|
TuiDayRange.prototype.dayLimit = function (min, max) {
|
810
1051
|
return new TuiDayRange(this.from.dayLimit(min, max), this.to.dayLimit(min, max));
|
811
1052
|
};
|
1053
|
+
/**
|
1054
|
+
* Human readable format.
|
1055
|
+
*/
|
812
1056
|
TuiDayRange.prototype.getFormattedDayRange = function (dateFormat, dateSeparator) {
|
813
1057
|
var from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
814
1058
|
var to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
@@ -827,6 +1071,9 @@
|
|
827
1071
|
var TUI_FIRST_DAY = new TuiDay(MIN_YEAR, MIN_MONTH, MIN_DAY);
|
828
1072
|
var TUI_LAST_DAY = new TuiDay(MAX_YEAR, MAX_MONTH, 31);
|
829
1073
|
|
1074
|
+
/**
|
1075
|
+
* Immutable time object with hours, minutes, seconds and ms
|
1076
|
+
*/
|
830
1077
|
var TuiTime = /** @class */ (function () {
|
831
1078
|
function TuiTime(hours, minutes, seconds, ms) {
|
832
1079
|
if (seconds === void 0) { seconds = 0; }
|
@@ -838,6 +1085,9 @@
|
|
838
1085
|
ngDevMode &&
|
839
1086
|
classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
|
840
1087
|
}
|
1088
|
+
/**
|
1089
|
+
* Checks if time is valid
|
1090
|
+
*/
|
841
1091
|
TuiTime.isValidTime = function (hours, minutes, seconds, ms) {
|
842
1092
|
if (seconds === void 0) { seconds = 0; }
|
843
1093
|
if (ms === void 0) { ms = 0; }
|
@@ -850,14 +1100,23 @@
|
|
850
1100
|
Number.isInteger(ms) &&
|
851
1101
|
math.tuiInRange(ms, 0, 1000));
|
852
1102
|
};
|
1103
|
+
/**
|
1104
|
+
* Current UTC time.
|
1105
|
+
*/
|
853
1106
|
TuiTime.current = function () {
|
854
1107
|
return TuiTime.fromAbsoluteMilliseconds(Date.now() % MILLISECONDS_IN_DAY);
|
855
1108
|
};
|
1109
|
+
/**
|
1110
|
+
* Current time in local timezone
|
1111
|
+
*/
|
856
1112
|
TuiTime.currentLocal = function () {
|
857
1113
|
var date = new Date();
|
858
1114
|
return TuiTime.fromAbsoluteMilliseconds((Date.now() - date.getTimezoneOffset() * MILLISECONDS_IN_MINUTE) %
|
859
1115
|
MILLISECONDS_IN_DAY);
|
860
1116
|
};
|
1117
|
+
/**
|
1118
|
+
* Calculates TuiTime from milliseconds
|
1119
|
+
*/
|
861
1120
|
TuiTime.fromAbsoluteMilliseconds = function (milliseconds) {
|
862
1121
|
ngDevMode && classes.tuiAssert.assert(Number.isInteger(milliseconds));
|
863
1122
|
ngDevMode &&
|
@@ -868,6 +1127,9 @@
|
|
868
1127
|
var ms = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) % 1000) || 0;
|
869
1128
|
return new TuiTime(hours, minutes, seconds, ms);
|
870
1129
|
};
|
1130
|
+
/**
|
1131
|
+
* Parses string into TuiTime object
|
1132
|
+
*/
|
871
1133
|
TuiTime.fromString = function (time) {
|
872
1134
|
var hours = Number(time.slice(0, 2));
|
873
1135
|
var minutes = Number(time.slice(3, 5));
|
@@ -875,9 +1137,16 @@
|
|
875
1137
|
var ms = Number(time.slice(9, 12)) || 0;
|
876
1138
|
return new TuiTime(hours, minutes, seconds, ms);
|
877
1139
|
};
|
1140
|
+
/**
|
1141
|
+
* Converts Date object into TuiTime
|
1142
|
+
* @param date
|
1143
|
+
*/
|
878
1144
|
TuiTime.fromLocalNativeDate = function (date) {
|
879
1145
|
return new TuiTime(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
880
1146
|
};
|
1147
|
+
/**
|
1148
|
+
* Shifts time by hours and minutes
|
1149
|
+
*/
|
881
1150
|
TuiTime.prototype.shift = function (_a) {
|
882
1151
|
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;
|
883
1152
|
var newMs = (1000 + this.ms + (ms % 1000)) % 1000;
|
@@ -896,6 +1165,9 @@
|
|
896
1165
|
var newHours = (24 + this.hours + (hoursToAdd % 24)) % 24;
|
897
1166
|
return new TuiTime(newHours, newMinutes, newSeconds, newMs);
|
898
1167
|
};
|
1168
|
+
/**
|
1169
|
+
* Converts TuiTime to string
|
1170
|
+
*/
|
899
1171
|
TuiTime.prototype.toString = function (mode) {
|
900
1172
|
var needAddMs = mode === "HH:MM:SS.MSS" || (!mode && this.ms > 0);
|
901
1173
|
var needAddSeconds = needAddMs || mode === "HH:MM:SS" || (!mode && this.seconds > 0);
|
@@ -906,9 +1178,17 @@
|
|
906
1178
|
TuiTime.prototype.valueOf = function () {
|
907
1179
|
return this.toAbsoluteMilliseconds();
|
908
1180
|
};
|
1181
|
+
/**
|
1182
|
+
* Returns the primitive value of the given Date object.
|
1183
|
+
* Depending on the argument, the method can return either a string or a number.
|
1184
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
1185
|
+
*/
|
909
1186
|
TuiTime.prototype[Symbol.toPrimitive] = function (hint) {
|
910
1187
|
return Date.prototype[Symbol.toPrimitive].call(this, hint);
|
911
1188
|
};
|
1189
|
+
/**
|
1190
|
+
* Converts TuiTime to milliseconds
|
1191
|
+
*/
|
912
1192
|
TuiTime.prototype.toAbsoluteMilliseconds = function () {
|
913
1193
|
return (this.hours * MILLISECONDS_IN_HOUR +
|
914
1194
|
this.minutes * MILLISECONDS_IN_MINUTE +
|
@@ -922,6 +1202,10 @@
|
|
922
1202
|
return TuiTime;
|
923
1203
|
}());
|
924
1204
|
|
1205
|
+
/**
|
1206
|
+
* Generated bundle index. Do not edit.
|
1207
|
+
*/
|
1208
|
+
|
925
1209
|
exports.DATE_FILLER_LENGTH = DATE_FILLER_LENGTH;
|
926
1210
|
exports.DATE_RANGE_FILLER_LENGTH = DATE_RANGE_FILLER_LENGTH;
|
927
1211
|
exports.DAYS_IN_LEAP_YEAR = DAYS_IN_LEAP_YEAR;
|