@taiga-ui/cdk 2.54.1 → 2.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-cdk-abstract.umd.js +12 -12
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +7 -7
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +4 -4
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +2 -2
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +24 -16
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +35 -35
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +15 -15
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +6 -6
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +6 -6
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +4 -4
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -5
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +5 -5
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -4
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +10 -10
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +12 -12
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +11 -11
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +10 -10
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +7 -7
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +27 -27
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +31 -31
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +5 -5
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +17 -11
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +19 -19
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +2 -2
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +4 -4
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +4 -4
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.min.js.map +1 -1
- package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
- package/constants/unicode-chars.d.ts +9 -2
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
- package/directives/hovered/taiga-ui-cdk-directives-hovered.metadata.json +1 -1
- package/esm2015/abstract/control.js +4 -4
- package/esm2015/abstract/interactive.js +8 -8
- package/esm2015/abstract/portal-host.js +2 -2
- package/esm2015/abstract/theme-switcher.js +2 -2
- package/esm2015/classes/assert.js +8 -8
- package/esm2015/coercion/coerce-boolean-property.js +2 -2
- package/esm2015/components/alert-host/alert-host.component.js +2 -2
- package/esm2015/components/dialog-host/dialog-host.component.js +5 -5
- package/esm2015/components/dropdown-host/dropdown-host.component.js +3 -3
- package/esm2015/components/portal-host/portal.service.js +2 -2
- package/esm2015/constants/parent-animation.js +5 -5
- package/esm2015/constants/svg-node-filter.js +2 -2
- package/esm2015/constants/unicode-chars.js +19 -12
- package/esm2015/date-time/date-fillers.js +3 -3
- package/esm2015/date-time/date-format.js +3 -3
- package/esm2015/date-time/date-separator.js +3 -3
- package/esm2015/date-time/day-range.js +7 -7
- package/esm2015/date-time/day.js +14 -14
- package/esm2015/date-time/month.js +2 -2
- package/esm2015/date-time/time.js +7 -7
- package/esm2015/date-time/year.js +2 -2
- package/esm2015/decorators/pure.js +2 -2
- package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
- package/esm2015/directives/auto-focus/autofocus.directive.js +2 -2
- package/esm2015/directives/auto-focus/autofocus.options.js +2 -2
- package/esm2015/directives/auto-focus/handlers/abstract.handler.js +2 -2
- package/esm2015/directives/auto-focus/handlers/default.handler.js +2 -2
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +12 -12
- package/esm2015/directives/autofilled/autofilled-style.component.js +2 -2
- package/esm2015/directives/autofilled/autofilled.directive.js +6 -6
- package/esm2015/directives/checked/checked.directive.js +7 -7
- package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
- package/esm2015/directives/drag/drag.directive.js +5 -5
- package/esm2015/directives/droppable/droppable.directive.js +5 -5
- package/esm2015/directives/element/element.directive.js +3 -3
- package/esm2015/directives/focus-trap/focus-trap.directive.js +6 -6
- package/esm2015/directives/focus-visible/focus-visible.directive.js +3 -3
- package/esm2015/directives/focusable/focusable.directive.js +4 -4
- package/esm2015/directives/focused/focused.directive.js +3 -3
- package/esm2015/directives/for/for.directive.js +2 -2
- package/esm2015/directives/for-async/for-async.directive.js +2 -2
- package/esm2015/directives/high-dpi/high-dpi.directive.js +2 -2
- package/esm2015/directives/hovered/hovered.directive.js +8 -5
- package/esm2015/directives/input-mode/input-mode.directive.js +11 -11
- package/esm2015/directives/item/item.directive.js +2 -2
- package/esm2015/directives/let/let.directive.js +2 -2
- package/esm2015/directives/media/media.directive.js +13 -13
- package/esm2015/directives/obscured/obscured.directive.js +2 -2
- package/esm2015/directives/overscroll/overscroll.directive.js +12 -12
- package/esm2015/directives/pan/pan.directive.js +3 -3
- package/esm2015/directives/portal/portal.directive.js +2 -2
- package/esm2015/directives/pressed/pressed.directive.js +2 -2
- package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
- package/esm2015/directives/repeat-times/repeat-times.directive.js +2 -2
- package/esm2015/directives/resize/resize.directive.js +3 -3
- package/esm2015/directives/swipe/swipe.directive.js +3 -3
- package/esm2015/directives/validator/validator.directive.js +2 -2
- package/esm2015/directives/zoom/zoom.directive.js +4 -4
- package/esm2015/enums/autocomplete.js +1 -1
- package/esm2015/enums/input-mode.js +1 -1
- package/esm2015/enums/input-type.js +1 -1
- package/esm2015/enums/overscroll-mode.js +1 -1
- package/esm2015/exceptions/computed-document.exception.js +2 -2
- package/esm2015/exceptions/document-selection.exception.js +2 -2
- package/esm2015/exceptions/no-host.exception.js +2 -2
- package/esm2015/exceptions/owner-document.exception.js +2 -2
- package/esm2015/exceptions/pure.exception.js +2 -2
- package/esm2015/exceptions/table-sort-key.exception.js +2 -2
- package/esm2015/exceptions/ts-parser.exception.js +2 -2
- package/esm2015/exceptions/value-changes.exception.js +2 -2
- package/esm2015/exceptions/value-present.exception.js +2 -2
- package/esm2015/exceptions/xml-parsing.exception.js +2 -2
- package/esm2015/observables/drag-and-drop-from.js +2 -2
- package/esm2015/observables/focus-visible-observable.js +5 -5
- package/esm2015/observables/mouse-drag-finish-from.js +2 -2
- package/esm2015/observables/pressed-observable.js +2 -2
- package/esm2015/pipes/filter/filter.pipe.js +2 -2
- package/esm2015/pipes/mapper/mapper.pipe.js +2 -2
- package/esm2015/services/directive-styles.service.js +5 -5
- package/esm2015/services/hovered.service.js +4 -4
- package/esm2015/services/id.service.js +3 -3
- package/esm2015/services/obscured.service.js +2 -2
- package/esm2015/services/pan.service.js +5 -5
- package/esm2015/services/parents-scroll.service.js +2 -2
- package/esm2015/services/scroll.service.js +5 -5
- package/esm2015/services/static-request.service.js +3 -3
- package/esm2015/services/swipe.service.js +2 -2
- package/esm2015/services/zoom.service.js +3 -3
- package/esm2015/tokens/active-element.js +9 -9
- package/esm2015/tokens/alerts.js +2 -2
- package/esm2015/tokens/default-renderer.js +2 -2
- package/esm2015/tokens/dialogs.js +2 -2
- package/esm2015/tokens/focusable-item-accessor.js +2 -2
- package/esm2015/tokens/is-android.js +2 -2
- package/esm2015/tokens/is-apple.js +2 -2
- package/esm2015/tokens/is-chromium.js +2 -2
- package/esm2015/tokens/is-cypress.js +2 -2
- package/esm2015/tokens/is-firefox.js +3 -3
- package/esm2015/tokens/is-ios.js +2 -2
- package/esm2015/tokens/is-mobile.js +2 -2
- package/esm2015/tokens/is-webkit.js +2 -2
- package/esm2015/tokens/removed-element.js +2 -2
- package/esm2015/tokens/sanitizer.js +2 -2
- package/esm2015/tokens/swipe-options.js +2 -2
- package/esm2015/tokens/take-only-trusted-events.js +2 -2
- package/esm2015/tokens/touch-supported.js +3 -3
- package/esm2015/tokens/window-height.js +3 -3
- package/esm2015/tokens/zoom-options.js +2 -2
- package/esm2015/utils/browser/is-edge-older-than.js +2 -2
- package/esm2015/utils/browser/is-edge.js +2 -2
- package/esm2015/utils/browser/is-firefox.js +2 -2
- package/esm2015/utils/browser/is-ie.js +2 -2
- package/esm2015/utils/browser/is-safari.js +2 -2
- package/esm2015/utils/dom/custom-event.js +3 -3
- package/esm2015/utils/dom/get-actual-target.js +2 -2
- package/esm2015/utils/dom/get-clipboard-data-text.js +4 -4
- package/esm2015/utils/dom/get-document-or-shadow-root.js +2 -2
- package/esm2015/utils/dom/get-element-offset.js +2 -2
- package/esm2015/utils/dom/index.js +2 -1
- package/esm2015/utils/dom/is-element.js +5 -0
- package/esm2015/utils/dom/is-form-field.js +4 -4
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +14 -14
- package/esm2015/utils/focus/is-native-mouse-focusable.js +3 -3
- package/esm2015/utils/focus/set-native-mouse-focused.js +5 -5
- package/esm2015/utils/format/pad-start.js +2 -2
- package/esm2015/utils/format/px.js +2 -2
- package/esm2015/utils/math/round.js +5 -5
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +3 -3
- package/esm2015/utils/miscellaneous/is-number.js +2 -2
- package/esm2015/utils/os/is-apple-platform.js +2 -2
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -2
- package/esm5/abstract/control.js +4 -4
- package/esm5/abstract/interactive.js +8 -8
- package/esm5/abstract/portal-host.js +2 -2
- package/esm5/abstract/theme-switcher.js +2 -2
- package/esm5/classes/assert.js +8 -8
- package/esm5/coercion/coerce-boolean-property.js +2 -2
- package/esm5/components/alert-host/alert-host.component.js +2 -2
- package/esm5/components/dialog-host/dialog-host.component.js +5 -5
- package/esm5/components/dropdown-host/dropdown-host.component.js +3 -3
- package/esm5/components/portal-host/portal.service.js +2 -2
- package/esm5/constants/parent-animation.js +5 -5
- package/esm5/constants/svg-node-filter.js +2 -2
- package/esm5/constants/unicode-chars.js +19 -12
- package/esm5/date-time/date-fillers.js +3 -3
- package/esm5/date-time/date-format.js +3 -3
- package/esm5/date-time/date-separator.js +3 -3
- package/esm5/date-time/day-range.js +8 -8
- package/esm5/date-time/day.js +15 -15
- package/esm5/date-time/month.js +2 -2
- package/esm5/date-time/time.js +7 -7
- package/esm5/date-time/year.js +2 -2
- package/esm5/decorators/pure.js +2 -2
- package/esm5/directives/active-zone/active-zone.directive.js +4 -4
- package/esm5/directives/auto-focus/autofocus.directive.js +2 -2
- package/esm5/directives/auto-focus/autofocus.options.js +2 -2
- package/esm5/directives/auto-focus/handlers/abstract.handler.js +2 -2
- package/esm5/directives/auto-focus/handlers/default.handler.js +2 -2
- package/esm5/directives/auto-focus/handlers/ios.handler.js +12 -12
- package/esm5/directives/autofilled/autofilled-style.component.js +2 -2
- package/esm5/directives/autofilled/autofilled.directive.js +6 -6
- package/esm5/directives/checked/checked.directive.js +7 -7
- package/esm5/directives/copy-processor/copy-processor.directive.js +4 -4
- package/esm5/directives/drag/drag.directive.js +5 -5
- package/esm5/directives/droppable/droppable.directive.js +6 -6
- package/esm5/directives/element/element.directive.js +3 -3
- package/esm5/directives/focus-trap/focus-trap.directive.js +6 -6
- package/esm5/directives/focus-visible/focus-visible.directive.js +3 -3
- package/esm5/directives/focusable/focusable.directive.js +4 -4
- package/esm5/directives/focused/focused.directive.js +3 -3
- package/esm5/directives/for/for.directive.js +2 -2
- package/esm5/directives/for-async/for-async.directive.js +2 -2
- package/esm5/directives/high-dpi/high-dpi.directive.js +2 -2
- package/esm5/directives/hovered/hovered.directive.js +8 -5
- package/esm5/directives/input-mode/input-mode.directive.js +11 -11
- package/esm5/directives/item/item.directive.js +2 -2
- package/esm5/directives/let/let.directive.js +2 -2
- package/esm5/directives/media/media.directive.js +13 -13
- package/esm5/directives/obscured/obscured.directive.js +2 -2
- package/esm5/directives/overscroll/overscroll.directive.js +12 -12
- package/esm5/directives/pan/pan.directive.js +3 -3
- package/esm5/directives/portal/portal.directive.js +2 -2
- package/esm5/directives/pressed/pressed.directive.js +2 -2
- package/esm5/directives/prevent-default/prevent-default.directive.js +4 -4
- package/esm5/directives/repeat-times/repeat-times.directive.js +2 -2
- package/esm5/directives/resize/resize.directive.js +3 -3
- package/esm5/directives/swipe/swipe.directive.js +3 -3
- package/esm5/directives/validator/validator.directive.js +2 -2
- package/esm5/directives/zoom/zoom.directive.js +4 -4
- package/esm5/enums/autocomplete.js +1 -1
- package/esm5/enums/input-mode.js +1 -1
- package/esm5/enums/input-type.js +1 -1
- package/esm5/enums/overscroll-mode.js +1 -1
- package/esm5/exceptions/computed-document.exception.js +2 -2
- package/esm5/exceptions/document-selection.exception.js +2 -2
- package/esm5/exceptions/no-host.exception.js +2 -2
- package/esm5/exceptions/owner-document.exception.js +2 -2
- package/esm5/exceptions/pure.exception.js +2 -2
- package/esm5/exceptions/table-sort-key.exception.js +2 -2
- package/esm5/exceptions/ts-parser.exception.js +2 -2
- package/esm5/exceptions/value-changes.exception.js +2 -2
- package/esm5/exceptions/value-present.exception.js +2 -2
- package/esm5/exceptions/xml-parsing.exception.js +2 -2
- package/esm5/observables/drag-and-drop-from.js +2 -2
- package/esm5/observables/focus-visible-observable.js +5 -5
- package/esm5/observables/mouse-drag-finish-from.js +2 -2
- package/esm5/observables/pressed-observable.js +2 -2
- package/esm5/pipes/filter/filter.pipe.js +2 -2
- package/esm5/pipes/mapper/mapper.pipe.js +2 -2
- package/esm5/services/directive-styles.service.js +5 -5
- package/esm5/services/hovered.service.js +5 -5
- package/esm5/services/id.service.js +3 -3
- package/esm5/services/obscured.service.js +2 -2
- package/esm5/services/pan.service.js +5 -5
- package/esm5/services/parents-scroll.service.js +2 -2
- package/esm5/services/scroll.service.js +5 -5
- package/esm5/services/static-request.service.js +3 -3
- package/esm5/services/swipe.service.js +2 -2
- package/esm5/services/zoom.service.js +5 -5
- package/esm5/tokens/active-element.js +10 -10
- package/esm5/tokens/alerts.js +2 -2
- package/esm5/tokens/default-renderer.js +2 -2
- package/esm5/tokens/dialogs.js +2 -2
- package/esm5/tokens/focusable-item-accessor.js +2 -2
- package/esm5/tokens/is-android.js +2 -2
- package/esm5/tokens/is-apple.js +2 -2
- package/esm5/tokens/is-chromium.js +2 -2
- package/esm5/tokens/is-cypress.js +2 -2
- package/esm5/tokens/is-firefox.js +3 -3
- package/esm5/tokens/is-ios.js +2 -2
- package/esm5/tokens/is-mobile.js +2 -2
- package/esm5/tokens/is-webkit.js +2 -2
- package/esm5/tokens/removed-element.js +2 -2
- package/esm5/tokens/sanitizer.js +2 -2
- package/esm5/tokens/swipe-options.js +2 -2
- package/esm5/tokens/take-only-trusted-events.js +2 -2
- package/esm5/tokens/touch-supported.js +3 -3
- package/esm5/tokens/window-height.js +3 -3
- package/esm5/tokens/zoom-options.js +2 -2
- package/esm5/utils/browser/is-edge-older-than.js +2 -2
- package/esm5/utils/browser/is-edge.js +2 -2
- package/esm5/utils/browser/is-firefox.js +2 -2
- package/esm5/utils/browser/is-ie.js +2 -2
- package/esm5/utils/browser/is-safari.js +2 -2
- package/esm5/utils/dom/custom-event.js +3 -3
- package/esm5/utils/dom/get-actual-target.js +2 -2
- package/esm5/utils/dom/get-clipboard-data-text.js +4 -4
- package/esm5/utils/dom/get-document-or-shadow-root.js +2 -2
- package/esm5/utils/dom/get-element-offset.js +2 -2
- package/esm5/utils/dom/index.js +2 -1
- package/esm5/utils/dom/is-element.js +5 -0
- package/esm5/utils/dom/is-form-field.js +4 -4
- package/esm5/utils/focus/is-native-keyboard-focusable.js +14 -14
- package/esm5/utils/focus/is-native-mouse-focusable.js +3 -3
- package/esm5/utils/focus/set-native-mouse-focused.js +5 -5
- package/esm5/utils/format/pad-start.js +2 -2
- package/esm5/utils/format/px.js +2 -2
- package/esm5/utils/math/round.js +5 -5
- package/esm5/utils/miscellaneous/ease-in-out-quad.js +2 -2
- package/esm5/utils/miscellaneous/get-swipe-direction.js +3 -3
- package/esm5/utils/miscellaneous/is-number.js +2 -2
- package/esm5/utils/os/is-apple-platform.js +2 -2
- package/esm5/utils/svg/svg-linear-gradient-processor.js +2 -2
- package/fesm2015/taiga-ui-cdk-abstract.js +12 -12
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +7 -7
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -4
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +2 -2
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-portal-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-portal-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +24 -17
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +33 -33
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +15 -15
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +6 -6
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +6 -6
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +5 -5
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +7 -4
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js +10 -10
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +12 -12
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +11 -11
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +10 -10
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +7 -7
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +24 -24
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +30 -30
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +5 -5
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +17 -12
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +19 -19
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +2 -2
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +4 -4
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +4 -4
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm5/taiga-ui-cdk-abstract.js +12 -12
- package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm5/taiga-ui-cdk-classes.js +7 -7
- package/fesm5/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm5/taiga-ui-cdk-coercion.js +1 -1
- package/fesm5/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-alert-host.js +1 -1
- package/fesm5/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-dialog-host.js +4 -4
- package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-dropdown-host.js +2 -2
- package/fesm5/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-portal-host.js +1 -1
- package/fesm5/taiga-ui-cdk-components-portal-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-constants.js +24 -17
- package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm5/taiga-ui-cdk-date-time.js +35 -35
- package/fesm5/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm5/taiga-ui-cdk-decorators.js +1 -1
- package/fesm5/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-active-zone.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js +15 -15
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-autofilled.js +6 -6
- package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-checked.js +6 -6
- package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-copy-processor.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-drag.js +4 -4
- package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-droppable.js +5 -5
- package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-element.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js +5 -5
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focusable.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focused.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-for-async.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-for.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-hovered.js +7 -4
- package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-input-mode.js +10 -10
- package/fesm5/taiga-ui-cdk-directives-input-mode.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-item.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-let.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-media.js +12 -12
- package/fesm5/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-obscured.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-overscroll.js +11 -11
- package/fesm5/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-pan.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-portal.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-pressed.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-prevent-default.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-repeat-times.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-resize.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-swipe.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-validator.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-zoom.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm5/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm5/taiga-ui-cdk-exceptions.js +10 -10
- package/fesm5/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm5/taiga-ui-cdk-observables.js +7 -7
- package/fesm5/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm5/taiga-ui-cdk-pipes-filter.js +1 -1
- package/fesm5/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm5/taiga-ui-cdk-pipes-mapper.js +1 -1
- package/fesm5/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm5/taiga-ui-cdk-services.js +27 -27
- package/fesm5/taiga-ui-cdk-services.js.map +1 -1
- package/fesm5/taiga-ui-cdk-tokens.js +31 -31
- package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-browser.js +5 -5
- package/fesm5/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-dom.js +17 -12
- package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-focus.js +19 -19
- package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-format.js +2 -2
- package/fesm5/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-math.js +4 -4
- package/fesm5/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +4 -4
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-os.js +1 -1
- package/fesm5/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-svg.js +1 -1
- package/fesm5/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/constants/modules.js +4 -4
- package/schematics/ng-update/constants/consts.js +30 -0
- package/schematics/ng-update/constants/modules.js +1 -0
- package/schematics/ng-update/constants/templates.d.ts +8 -0
- package/schematics/ng-update/constants/templates.js +10 -0
- package/schematics/ng-update/constants/warnings.js +10 -0
- package/utils/dom/index.d.ts +1 -0
- package/utils/dom/is-element.d.ts +1 -0
- package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-components-alert-host.js","sources":["ng://@taiga-ui/cdk/components/alert-host/alert-host.component.ts","ng://@taiga-ui/cdk/components/alert-host/alert-host.module.ts","ng://@taiga-ui/cdk/components/alert-host/taiga-ui-cdk-components-alert-host.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n INJECTOR,\n Injector,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_ALERTS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog, TuiMapper} from '@taiga-ui/cdk/types';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-components-alert-host.js","sources":["ng://@taiga-ui/cdk/components/alert-host/alert-host.component.ts","ng://@taiga-ui/cdk/components/alert-host/alert-host.module.ts","ng://@taiga-ui/cdk/components/alert-host/taiga-ui-cdk-components-alert-host.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n INJECTOR,\n Injector,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_ALERTS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog, TuiMapper} from '@taiga-ui/cdk/types';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-alert-host`,\n templateUrl: `./alert-host.template.html`,\n styleUrls: [`./alert-host.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [TUI_PARENT_ANIMATION],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAlertHostComponent<T extends TuiDialog<unknown, unknown>> {\n constructor(\n @Inject(TUI_ALERTS) readonly alerts: Array<Observable<readonly T[]>>,\n @Inject(INJECTOR) private readonly injector: Injector,\n ) {}\n\n readonly mapper: TuiMapper<unknown, Injector> = useValue =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk/pipes';\n\nimport {TuiAlertHostComponent} from './alert-host.component';\n\n@NgModule({\n imports: [CommonModule, TuiMapperPipeModule],\n declarations: [TuiAlertHostComponent],\n exports: [TuiAlertHostComponent],\n})\nexport class TuiAlertHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAsBa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YACiC,MAAuC,EACjC,QAAkB;QADxB,WAAM,GAAN,MAAM,CAAiC;QACjC,aAAQ,GAAR,QAAQ,CAAU;QAGhD,WAAM,GAAiC,QAAQ,IACpD,QAAQ,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,oBAAoB;oBAC7B,QAAQ;iBACX;aACJ;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAC;KAXH;EAYP;;YAd4C,KAAK,uBAAzC,MAAM,SAAC,UAAU;YAC2B,QAAQ,uBAApD,MAAM,SAAC,QAAQ;;AAHX,qBAAqB;IARjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,sVAAyC;QAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,oBAAoB,CAAC;QAClC,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAHZ,qBAAqB,CAgBjC;;IC3BY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;QAC5C,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACXlC;;;;;;"}
|
|
@@ -12,11 +12,11 @@ import { TuiFocusTrapModule } from '@taiga-ui/cdk/directives/focus-trap';
|
|
|
12
12
|
import { TuiOverscrollModule } from '@taiga-ui/cdk/directives/overscroll';
|
|
13
13
|
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
14
14
|
|
|
15
|
-
const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken(
|
|
15
|
+
const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken(`Is closing dialog on browser backward navigation enabled`, {
|
|
16
16
|
factory: () => of(false),
|
|
17
17
|
});
|
|
18
18
|
// TODO: 3.0 remove in ivy compilation
|
|
19
|
-
const FAKE_HISTORY_STATE = { label:
|
|
19
|
+
const FAKE_HISTORY_STATE = { label: `ignoreMe` };
|
|
20
20
|
// TODO: 3.0 remove in ivy compilation
|
|
21
21
|
const isFakeHistoryState = (historyState) => (historyState === null || historyState === void 0 ? void 0 : historyState.label) === FAKE_HISTORY_STATE.label;
|
|
22
22
|
// @dynamic
|
|
@@ -44,7 +44,7 @@ let TuiDialogHostComponent = class TuiDialogHostComponent {
|
|
|
44
44
|
last.$implicit.complete();
|
|
45
45
|
}
|
|
46
46
|
onDialog({ propertyName }, popupOpened, isDialogClosesOnBack) {
|
|
47
|
-
if (!isDialogClosesOnBack || propertyName !==
|
|
47
|
+
if (!isDialogClosesOnBack || propertyName !== `letter-spacing`) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
if (popupOpened) {
|
|
@@ -63,7 +63,7 @@ TuiDialogHostComponent.ctorParameters = () => [
|
|
|
63
63
|
];
|
|
64
64
|
TuiDialogHostComponent = __decorate([
|
|
65
65
|
Component({
|
|
66
|
-
selector:
|
|
66
|
+
selector: `tui-dialog-host`,
|
|
67
67
|
template: "<ng-container *ngIf=\"dialogs$ | async as dialogs\">\n <section\n *ngFor=\"let item of dialogs\"\n polymorpheus-outlet\n tuiFocusTrap\n tuiScrollRef\n tuiOverscroll=\"all\"\n role=\"dialog\"\n aria-modal=\"true\"\n class=\"t-dialog\"\n @tuiParentAnimation\n [attr.aria-labelledby]=\"item.id\"\n [content]=\"item.component\"\n [context]=\"item\"\n ></section>\n <div\n *tuiLet=\"isDialogClosesOnBack$ | async as isDialogClosesOnBack\"\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs.length\"\n (window:popstate)=\"closeLast(dialogs, isDialogClosesOnBack)\"\n (transitionend)=\"onDialog($event, !!dialogs.length, isDialogClosesOnBack)\"\n ></div>\n</ng-container>\n",
|
|
68
68
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
69
|
animations: [TUI_PARENT_ANIMATION],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-components-dialog-host.js","sources":["ng://@taiga-ui/cdk/components/dialog-host/dialog-host.component.ts","ng://@taiga-ui/cdk/components/dialog-host/dialog-host.module.ts","ng://@taiga-ui/cdk/components/dialog-host/taiga-ui-cdk-components-dialog-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, InjectionToken} from '@angular/core';\nimport {Title} from '@angular/platform-browser';\nimport {HISTORY} from '@ng-web-apis/common';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog} from '@taiga-ui/cdk/types';\nimport {combineLatest, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nexport const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken<Observable<boolean>>(\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-components-dialog-host.js","sources":["ng://@taiga-ui/cdk/components/dialog-host/dialog-host.component.ts","ng://@taiga-ui/cdk/components/dialog-host/dialog-host.module.ts","ng://@taiga-ui/cdk/components/dialog-host/taiga-ui-cdk-components-dialog-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject, InjectionToken} from '@angular/core';\nimport {Title} from '@angular/platform-browser';\nimport {HISTORY} from '@ng-web-apis/common';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog} from '@taiga-ui/cdk/types';\nimport {combineLatest, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nexport const TUI_DIALOG_CLOSES_ON_BACK = new InjectionToken<Observable<boolean>>(\n `Is closing dialog on browser backward navigation enabled`,\n {\n factory: () => of(false),\n },\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport const FAKE_HISTORY_STATE = {label: `ignoreMe`} as const;\n// TODO: 3.0 remove in ivy compilation\nexport const isFakeHistoryState = (\n historyState: Record<string, unknown>,\n): historyState is typeof FAKE_HISTORY_STATE =>\n historyState?.label === FAKE_HISTORY_STATE.label;\n\n// @dynamic\n@Component({\n selector: `tui-dialog-host`,\n templateUrl: `./dialog-host.template.html`,\n styleUrls: [`./dialog-host.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [TUI_PARENT_ANIMATION],\n})\nexport class TuiDialogHostComponent<T extends TuiDialog<unknown, unknown>> {\n readonly dialogs$ = combineLatest(this.dialogsByType).pipe(\n map(allTypesDialogs =>\n new Array<T>()\n .concat(...allTypesDialogs)\n .sort((a, b) => a.createdAt - b.createdAt),\n ),\n );\n\n constructor(\n @Inject(TUI_DIALOG_CLOSES_ON_BACK)\n readonly isDialogClosesOnBack$: Observable<boolean>,\n @Inject(TUI_DIALOGS)\n private readonly dialogsByType: Array<Observable<readonly T[]>>,\n @Inject(HISTORY) private readonly historyRef: History,\n @Inject(Title) private readonly titleService: Title,\n ) {}\n\n closeLast(dialogs: readonly T[], isDialogClosesOnBack: boolean): void {\n if (!isDialogClosesOnBack) {\n return;\n }\n\n const [last] = dialogs.slice(-1);\n\n if (!last) {\n return;\n }\n\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n\n last.$implicit.complete();\n }\n\n onDialog(\n {propertyName}: TransitionEvent,\n popupOpened: boolean,\n isDialogClosesOnBack: boolean,\n ): void {\n if (!isDialogClosesOnBack || propertyName !== `letter-spacing`) {\n return;\n }\n\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk/directives';\nimport {TuiFocusTrapModule} from '@taiga-ui/cdk/directives/focus-trap';\nimport {TuiOverscrollModule} from '@taiga-ui/cdk/directives/overscroll';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDialogHostComponent} from './dialog-host.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiOverscrollModule,\n TuiFocusTrapModule,\n TuiLetModule,\n ],\n declarations: [TuiDialogHostComponent],\n exports: [TuiDialogHostComponent],\n})\nexport class TuiDialogHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MASa,yBAAyB,GAAG,IAAI,cAAc,CACvD,0DAA0D,EAC1D;IACI,OAAO,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC;CAC3B,EACH;AAEF;MACa,kBAAkB,GAAG,EAAC,KAAK,EAAE,UAAU,GAAW;AAC/D;MACa,kBAAkB,GAAG,CAC9B,YAAqC,KAErC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,MAAK,kBAAkB,CAAC,MAAM;AAErD;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAS/B,YAEa,qBAA0C,EAElC,aAA8C,EAC7B,UAAmB,EACrB,YAAmB;QAJ1C,0BAAqB,GAArB,qBAAqB,CAAqB;QAElC,kBAAa,GAAb,aAAa,CAAiC;QAC7B,eAAU,GAAV,UAAU,CAAS;QACrB,iBAAY,GAAZ,YAAY,CAAO;QAd9C,aAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACtD,GAAG,CAAC,eAAe,IACf,IAAI,KAAK,EAAK;aACT,MAAM,CAAC,GAAG,eAAe,CAAC;aAC1B,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CACjD,CACJ,CAAC;KASE;IAEJ,SAAS,CAAC,OAAqB,EAAE,oBAA6B;QAC1D,IAAI,CAAC,oBAAoB,EAAE;YACvB,OAAO;SACV;QAED,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEjC,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;SACV;QAED,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;QAED,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KAC7B;IAED,QAAQ,CACJ,EAAC,YAAY,EAAkB,EAC/B,WAAoB,EACpB,oBAA6B;QAE7B,IAAI,CAAC,oBAAoB,IAAI,YAAY,KAAK,gBAAgB,EAAE;YAC5D,OAAO;SACV;QAED,IAAI,WAAW,EAAE;YACb,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;aAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAClD,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SAC1B;KACJ;EACJ;;YAxCuC,UAAU,uBADzC,MAAM,SAAC,yBAAyB;YAGD,KAAK,uBADpC,MAAM,SAAC,WAAW;YAE2B,OAAO,uBAApD,MAAM,SAAC,OAAO;YAC+B,KAAK,uBAAlD,MAAM,SAAC,KAAK;;AAfR,sBAAsB;IAPlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,kzBAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,oBAAoB,CAAC;;KACrC,CAAC;IAWO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;IAEjC,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;IAEnB,WAAA,MAAM,CAAC,OAAO,CAAC,CAAA;IACf,WAAA,MAAM,CAAC,KAAK,CAAC,CAAA;GAfT,sBAAsB,CAmDlC;;IC/DY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAX/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,mBAAmB;YACnB,kBAAkB;YAClB,YAAY;SACf;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACpBnC;;;;;;"}
|
|
@@ -15,11 +15,11 @@ let TuiDropdownHostComponent = class TuiDropdownHostComponent extends AbstractTu
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
__decorate([
|
|
18
|
-
ViewChild(
|
|
18
|
+
ViewChild(`positionFixedOffset`)
|
|
19
19
|
], TuiDropdownHostComponent.prototype, "positionFixedOffsetRef", void 0);
|
|
20
20
|
TuiDropdownHostComponent = __decorate([
|
|
21
21
|
Component({
|
|
22
|
-
selector:
|
|
22
|
+
selector: `tui-dropdown-host`,
|
|
23
23
|
template: "<div\n #positionFixedOffset\n class=\"position-fixed-offset\"\n></div>\n<ng-content></ng-content>\n<ng-container #viewContainer></ng-container>\n",
|
|
24
24
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
25
|
providers: [{ provide: AbstractTuiPortalService, useExisting: TuiPortalService }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-components-dropdown-host.js","sources":["ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.component.ts","ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.module.ts","ng://@taiga-ui/cdk/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, ViewChild} from '@angular/core';\nimport {\n AbstractTuiPortalHostComponent,\n AbstractTuiPortalService,\n} from '@taiga-ui/cdk/abstract';\nimport {TuiPortalService} from '@taiga-ui/cdk/components/portal-host';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\n\n/**\n * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.\n */\n@Component({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-components-dropdown-host.js","sources":["ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.component.ts","ng://@taiga-ui/cdk/components/dropdown-host/dropdown-host.module.ts","ng://@taiga-ui/cdk/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, ViewChild} from '@angular/core';\nimport {\n AbstractTuiPortalHostComponent,\n AbstractTuiPortalService,\n} from '@taiga-ui/cdk/abstract';\nimport {TuiPortalService} from '@taiga-ui/cdk/components/portal-host';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\n\n/**\n * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.\n */\n@Component({\n selector: `tui-dropdown-host`,\n templateUrl: `./dropdown-host.template.html`,\n styleUrls: [`./dropdown-host.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: AbstractTuiPortalService, useExisting: TuiPortalService}],\n})\nexport class TuiDropdownHostComponent extends AbstractTuiPortalHostComponent {\n @ViewChild(`positionFixedOffset`)\n private readonly positionFixedOffsetRef?: ElementRef<HTMLDivElement>;\n\n fixedPositionOffset(): ClientRect {\n return (\n this.positionFixedOffsetRef?.nativeElement.getBoundingClientRect() ||\n EMPTY_CLIENT_RECT\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownHostComponent} from './dropdown-host.component';\n\n@NgModule({\n declarations: [TuiDropdownHostComponent],\n exports: [TuiDropdownHostComponent],\n})\nexport class TuiDropdownHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAQA;;;IAUa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,8BAA8B;IAIxE,mBAAmB;;QACf,QACI,OAAA,IAAI,CAAC,sBAAsB,0CAAE,aAAa,CAAC,qBAAqB;YAChE,iBAAiB,EACnB;KACL;EACJ;AARG;IADC,SAAS,CAAC,qBAAqB,CAAC;wEACoC;AAF5D,wBAAwB;IAPpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,mKAA4C;QAE5C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,gBAAgB,EAAC,CAAC;;KAClF,CAAC;GACW,wBAAwB,CAUpC;;ICpBY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
|
|
@@ -11,7 +11,7 @@ let TuiPortalService = class TuiPortalService extends AbstractTuiPortalService {
|
|
|
11
11
|
TuiPortalService.ɵprov = ɵɵdefineInjectable({ factory: function TuiPortalService_Factory() { return new TuiPortalService(); }, token: TuiPortalService, providedIn: "root" });
|
|
12
12
|
TuiPortalService = __decorate([
|
|
13
13
|
Injectable({
|
|
14
|
-
providedIn:
|
|
14
|
+
providedIn: `root`,
|
|
15
15
|
})
|
|
16
16
|
], TuiPortalService);
|
|
17
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-components-portal-host.js","sources":["ng://@taiga-ui/cdk/components/portal-host/portal.service.ts","ng://@taiga-ui/cdk/components/portal-host/taiga-ui-cdk-components-portal-host.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {AbstractTuiPortalService} from '@taiga-ui/cdk/abstract';\n\n/**\n * @deprecated create your own portal (see {@link https://taiga-ui.dev/portals Portals})\n * TODO: 3.0 replace with {@link TuiDropdownPortalService}\n */\n@Injectable({\n providedIn:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-components-portal-host.js","sources":["ng://@taiga-ui/cdk/components/portal-host/portal.service.ts","ng://@taiga-ui/cdk/components/portal-host/taiga-ui-cdk-components-portal-host.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {AbstractTuiPortalService} from '@taiga-ui/cdk/abstract';\n\n/**\n * @deprecated create your own portal (see {@link https://taiga-ui.dev/portals Portals})\n * TODO: 3.0 replace with {@link TuiDropdownPortalService}\n */\n@Injectable({\n providedIn: `root`,\n})\nexport class TuiPortalService extends AbstractTuiPortalService {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;IAOa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,wBAAwB;EAAG;;AAApD,gBAAgB;IAH5B,UAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;GACW,gBAAgB,CAAoC;;ACVjE;;;;;;"}
|
|
@@ -63,10 +63,10 @@ function bothEmpty(item1, item2) {
|
|
|
63
63
|
return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const TUI_PARENT_ANIMATION = trigger(
|
|
67
|
-
transition(
|
|
68
|
-
style({ overflow:
|
|
69
|
-
query(
|
|
66
|
+
const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [
|
|
67
|
+
transition(`* => void`, [
|
|
68
|
+
style({ overflow: `hidden` }),
|
|
69
|
+
query(`@*`, [animateChild()], { optional: true }),
|
|
70
70
|
]),
|
|
71
71
|
]);
|
|
72
72
|
|
|
@@ -74,14 +74,14 @@ const POLLING_TIME = 1000 / 15;
|
|
|
74
74
|
|
|
75
75
|
// Filtering SVGElements for TreeWalker
|
|
76
76
|
// Filter must be a function in IE, other modern browsers are compliant to this format
|
|
77
|
-
const svgNodeFilter = ((node) =>
|
|
77
|
+
const svgNodeFilter = ((node) => `ownerSVGElement` in node
|
|
78
78
|
? NodeFilter.FILTER_REJECT
|
|
79
79
|
: NodeFilter.FILTER_ACCEPT);
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* {@link https://unicode-table.com/en/00A0/ Non-breaking space}.
|
|
83
83
|
*/
|
|
84
|
-
const CHAR_NO_BREAK_SPACE =
|
|
84
|
+
const CHAR_NO_BREAK_SPACE = `\u00A0`;
|
|
85
85
|
/**
|
|
86
86
|
* {@link https://unicode-table.com/en/2013/ EN dash}
|
|
87
87
|
* is used to indicate a range of numbers or a span of time.
|
|
@@ -89,7 +89,7 @@ const CHAR_NO_BREAK_SPACE = '\u00A0';
|
|
|
89
89
|
* ___
|
|
90
90
|
* Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!
|
|
91
91
|
*/
|
|
92
|
-
const CHAR_EN_DASH =
|
|
92
|
+
const CHAR_EN_DASH = `\u2013`;
|
|
93
93
|
/**
|
|
94
94
|
* {@link https://unicode-table.com/en/2014/ EM dash}
|
|
95
95
|
* is used to mark a break in a sentence.
|
|
@@ -97,39 +97,46 @@ const CHAR_EN_DASH = '\u2013';
|
|
|
97
97
|
* ___
|
|
98
98
|
* Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!
|
|
99
99
|
*/
|
|
100
|
-
const CHAR_EM_DASH =
|
|
100
|
+
const CHAR_EM_DASH = `\u2014`;
|
|
101
101
|
/**
|
|
102
102
|
* {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}
|
|
103
|
-
* is used to combine words
|
|
104
|
-
* @example well-behaved
|
|
103
|
+
* is used to combine words.
|
|
104
|
+
* @example well-behaved
|
|
105
105
|
* ___
|
|
106
106
|
* Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!
|
|
107
107
|
*/
|
|
108
|
-
const CHAR_HYPHEN =
|
|
108
|
+
const CHAR_HYPHEN = `\u002D`;
|
|
109
|
+
/**
|
|
110
|
+
* {@link https://unicode-table.com/en/2212/ Minus}
|
|
111
|
+
* is used as math operator symbol or before negative digits.
|
|
112
|
+
* ---
|
|
113
|
+
* Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}
|
|
114
|
+
*/
|
|
115
|
+
const CHAR_MINUS = `\u2212`;
|
|
109
116
|
/**
|
|
110
117
|
* {@link https://unicode-table.com/en/002B/ Plus}
|
|
111
118
|
*/
|
|
112
|
-
const CHAR_PLUS =
|
|
119
|
+
const CHAR_PLUS = `\u002B`;
|
|
113
120
|
/**
|
|
114
121
|
* {@link https://unicode-table.com/en/2022/ Bullet}.
|
|
115
122
|
*/
|
|
116
|
-
const CHAR_BULLET =
|
|
123
|
+
const CHAR_BULLET = `\u2022`;
|
|
117
124
|
/**
|
|
118
125
|
* {@link https://unicode-table.com/en/2026/ Suspension points}.
|
|
119
126
|
*/
|
|
120
|
-
const CHAR_ELLIPSIS =
|
|
127
|
+
const CHAR_ELLIPSIS = `\u2026`;
|
|
121
128
|
/**
|
|
122
129
|
* {@link https://unicode-table.com/en/00A4/ Suspension points}.
|
|
123
130
|
*/
|
|
124
|
-
const CHAR_CURRENCY_SIGN =
|
|
131
|
+
const CHAR_CURRENCY_SIGN = `\u00A4`;
|
|
125
132
|
/**
|
|
126
133
|
* {@link https://unicode-table.com/en/200b/ Suspension points}.
|
|
127
134
|
*/
|
|
128
|
-
const CHAR_ZERO_WIDTH_SPACE =
|
|
135
|
+
const CHAR_ZERO_WIDTH_SPACE = `\u200B`;
|
|
129
136
|
|
|
130
137
|
/**
|
|
131
138
|
* Generated bundle index. Do not edit.
|
|
132
139
|
*/
|
|
133
140
|
|
|
134
|
-
export { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_ZERO_WIDTH_SPACE, CHROMIUM_EDGE_START_VERSION, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, EMPTY_VALIDATOR, POLLING_TIME, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_PARENT_ANIMATION, TUI_STRICT_MATCHER, svgNodeFilter };
|
|
141
|
+
export { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_MINUS, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_ZERO_WIDTH_SPACE, CHROMIUM_EDGE_START_VERSION, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, EMPTY_VALIDATOR, POLLING_TIME, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_PARENT_ANIMATION, TUI_STRICT_MATCHER, svgNodeFilter };
|
|
135
142
|
//# sourceMappingURL=taiga-ui-cdk-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-constants.js","sources":["ng://@taiga-ui/cdk/constants/always-false-handler.ts","ng://@taiga-ui/cdk/constants/always-true-handler.ts","ng://@taiga-ui/cdk/constants/browser.ts","ng://@taiga-ui/cdk/constants/empty.ts","ng://@taiga-ui/cdk/constants/stringify.ts","ng://@taiga-ui/cdk/constants/matcher.ts","ng://@taiga-ui/cdk/constants/parent-animation.ts","ng://@taiga-ui/cdk/constants/polling-time.ts","ng://@taiga-ui/cdk/constants/svg-node-filter.ts","ng://@taiga-ui/cdk/constants/unicode-chars.ts","ng://@taiga-ui/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","export const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\nimport {ValidatorFn} from '@angular/forms';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n/** @deprecated use Validators.nullValidator */\nexport const EMPTY_VALIDATOR: ValidatorFn = () => null;\nexport const EMPTY_CLIENT_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger(
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-constants.js","sources":["ng://@taiga-ui/cdk/constants/always-false-handler.ts","ng://@taiga-ui/cdk/constants/always-true-handler.ts","ng://@taiga-ui/cdk/constants/browser.ts","ng://@taiga-ui/cdk/constants/empty.ts","ng://@taiga-ui/cdk/constants/stringify.ts","ng://@taiga-ui/cdk/constants/matcher.ts","ng://@taiga-ui/cdk/constants/parent-animation.ts","ng://@taiga-ui/cdk/constants/polling-time.ts","ng://@taiga-ui/cdk/constants/svg-node-filter.ts","ng://@taiga-ui/cdk/constants/unicode-chars.ts","ng://@taiga-ui/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","export const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\nimport {ValidatorFn} from '@angular/forms';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n/** @deprecated use Validators.nullValidator */\nexport const EMPTY_VALIDATOR: ValidatorFn = () => null;\nexport const EMPTY_CLIENT_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`* => void`, [\n style({overflow: `hidden`}),\n query(`@*`, [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;MAGa,oBAAoB,GAAG,MAAa;;ACHjD;;;MAGa,mBAAmB,GAAG,MAAY;;MCHlC,2BAA2B,GAAG;;ACG3C;;;;;MAKa,WAAW,GAAG,IAAI,SAAS,GAAQ;MACnC,WAAW,GAAO,GAAG;MACrB,cAAc,GAA6B,UAAS;AACjE;MACa,eAAe,GAAgB,MAAM,KAAK;MAC1C,iBAAiB,GAAe;IACzC,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;;;ACjBZ;;;MAGa,qBAAqB,GAA8B,IAAI,IAAI,MAAM,CAAC,IAAI;;ACDnF;;;;;;MAMa,mBAAmB,GAAG,CAC/B,IAAO,EACP,MAAc,EACd,YAAmC,qBAAqB,KAC9C,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE;AAE3E;;;;;;MAMa,kBAAkB,GAAG,CAC9B,IAAO,EACP,MAAc,EACd,YAAmC,qBAAqB,KAC9C,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,WAAW,GAAG;AAErE;;;;;;;MAOa,4BAA4B,GAAgC,CAAC,KAAK,EAAE,KAAK,KAClF,KAAK,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE;AAE/C,SAAS,SAAS,CAAC,KAAc,EAAE,KAAc;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;AAC1F;;MCtCa,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,EAAE;IAC9D,UAAU,CAAC,WAAW,EAAE;QACpB,KAAK,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC;QAC3B,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;KAClD,CAAC;CACL;;MCPY,YAAY,GAAG,IAAI,GAAG;;ACAnC;AACA;MACa,aAAa,IAAgB,CAAC,IAAU,KACjD,iBAAiB,IAAI,IAAI;MACnB,UAAU,CAAC,aAAa;MACxB,UAAU,CAAC,aAAa;;ACLlC;;;MAGa,mBAAmB,GAAG,SAAS;AAE5C;;;;;;;MAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;MAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;MAOa,WAAW,GAAG,SAAS;AAEpC;;;;;;MAMa,UAAU,GAAG,SAAS;AAEnC;;;MAGa,SAAS,GAAG,SAAS;AAElC;;;MAGa,WAAW,GAAG,SAAS;AAEpC;;;MAGa,aAAa,GAAG,SAAS;AAEtC;;;MAGa,kBAAkB,GAAG,SAAS;AAE3C;;;MAGa,qBAAqB,GAAG;;AC/DrC;;;;;;"}
|
|
@@ -26,13 +26,13 @@ const MILLISECONDS_IN_DAY = MILLISECONDS_IN_HOUR * HOURS_IN_DAY;
|
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated dont use it. See {@link TUI_DATE_FORMAT}
|
|
28
28
|
*/
|
|
29
|
-
const TUI_DATE_FILLER = new InjectionToken(
|
|
29
|
+
const TUI_DATE_FILLER = new InjectionToken(`date filler for Taiga UI`, {
|
|
30
30
|
factory: () => `dd.mm.yyyy`,
|
|
31
31
|
});
|
|
32
32
|
/**
|
|
33
33
|
* @deprecated dont use it
|
|
34
34
|
*/
|
|
35
|
-
const TUI_DATE_RANGE_FILLER = new InjectionToken(
|
|
35
|
+
const TUI_DATE_RANGE_FILLER = new InjectionToken(`date range filler for Taiga UI`, {
|
|
36
36
|
factory: () => {
|
|
37
37
|
const dateFiller = inject(TUI_DATE_FILLER);
|
|
38
38
|
return `${dateFiller}${RANGE_SEPARATOR_CHAR}${dateFiller}`;
|
|
@@ -52,12 +52,12 @@ const DATE_FILLER_LENGTH = 10;
|
|
|
52
52
|
*/
|
|
53
53
|
const DATE_RANGE_FILLER_LENGTH = 2 * DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length;
|
|
54
54
|
|
|
55
|
-
const TUI_DATE_FORMAT = new InjectionToken(
|
|
56
|
-
factory: () =>
|
|
55
|
+
const TUI_DATE_FORMAT = new InjectionToken(`Active date format for Taiga UI`, {
|
|
56
|
+
factory: () => `DMY`,
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
const TUI_DATE_SEPARATOR = new InjectionToken(
|
|
60
|
-
factory: () =>
|
|
59
|
+
const TUI_DATE_SEPARATOR = new InjectionToken(`Date separator for Taiga UI components`, {
|
|
60
|
+
factory: () => `.`,
|
|
61
61
|
});
|
|
62
62
|
const changeDateSeparator = (dateString, newDateSeparator) => dateString.replace(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
|
|
63
63
|
|
|
@@ -119,7 +119,7 @@ class TuiYear {
|
|
|
119
119
|
return normalizeToIntNumber(year, MIN_YEAR, MAX_YEAR);
|
|
120
120
|
}
|
|
121
121
|
get formattedYear() {
|
|
122
|
-
return padStart(String(this.year), 4,
|
|
122
|
+
return padStart(String(this.year), 4, `0`);
|
|
123
123
|
}
|
|
124
124
|
get isLeapYear() {
|
|
125
125
|
return TuiYear.isLeapYear(this.year);
|
|
@@ -269,7 +269,7 @@ class TuiMonth extends TuiYear {
|
|
|
269
269
|
return Number.isInteger(month) && inRange(month, MIN_MONTH, MAX_MONTH + 1);
|
|
270
270
|
}
|
|
271
271
|
get formattedMonthPart() {
|
|
272
|
-
return padStart(String(this.month + 1), 2,
|
|
272
|
+
return padStart(String(this.month + 1), 2, `0`);
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
275
|
* @deprecated
|
|
@@ -476,23 +476,23 @@ class TuiDay extends TuiMonth {
|
|
|
476
476
|
return Math.round((to.toLocalNativeDate().getTime() - from.toLocalNativeDate().getTime()) /
|
|
477
477
|
(1000 * 60 * 60 * 24));
|
|
478
478
|
}
|
|
479
|
-
static parseRawDateString(date, dateMode =
|
|
480
|
-
tuiAssert.assert(date.length === DATE_FILLER_LENGTH,
|
|
479
|
+
static parseRawDateString(date, dateMode = `DMY`) {
|
|
480
|
+
tuiAssert.assert(date.length === DATE_FILLER_LENGTH, `[parseRawDateString]: wrong date string length`);
|
|
481
481
|
switch (dateMode) {
|
|
482
|
-
case
|
|
482
|
+
case `YMD`:
|
|
483
483
|
return {
|
|
484
484
|
day: parseInt(date.slice(8, 10), 10),
|
|
485
485
|
month: parseInt(date.slice(5, 7), 10) - 1,
|
|
486
486
|
year: parseInt(date.slice(0, 4), 10),
|
|
487
487
|
};
|
|
488
|
-
case
|
|
488
|
+
case `MDY`:
|
|
489
489
|
return {
|
|
490
490
|
day: parseInt(date.slice(3, 5), 10),
|
|
491
491
|
month: parseInt(date.slice(0, 2), 10) - 1,
|
|
492
492
|
year: parseInt(date.slice(6, 10), 10),
|
|
493
493
|
};
|
|
494
494
|
default:
|
|
495
|
-
case
|
|
495
|
+
case `DMY`:
|
|
496
496
|
return {
|
|
497
497
|
day: parseInt(date.slice(0, 2), 10),
|
|
498
498
|
month: parseInt(date.slice(3, 5), 10) - 1,
|
|
@@ -508,7 +508,7 @@ class TuiDay extends TuiMonth {
|
|
|
508
508
|
* @param dateMode date format of the date string (DMY | MDY | YMD)
|
|
509
509
|
* @return normalized date
|
|
510
510
|
*/
|
|
511
|
-
static normalizeParse(rawDate, dateMode =
|
|
511
|
+
static normalizeParse(rawDate, dateMode = `DMY`) {
|
|
512
512
|
const { day, month, year } = this.parseRawDateString(rawDate, dateMode);
|
|
513
513
|
return TuiDay.normalizeOf(year, month, day);
|
|
514
514
|
}
|
|
@@ -519,7 +519,7 @@ class TuiDay extends TuiMonth {
|
|
|
519
519
|
* @throws exceptions if any part of the date is invalid
|
|
520
520
|
*/
|
|
521
521
|
static jsonParse(yearMonthDayString) {
|
|
522
|
-
const { day, month, year } = this.parseRawDateString(yearMonthDayString,
|
|
522
|
+
const { day, month, year } = this.parseRawDateString(yearMonthDayString, `YMD`);
|
|
523
523
|
if (!TuiYear.isValidYear(year)) {
|
|
524
524
|
throw new InvalidYearException(year);
|
|
525
525
|
}
|
|
@@ -538,7 +538,7 @@ class TuiDay extends TuiMonth {
|
|
|
538
538
|
return normalizeToIntNumber(day, 1, monthDaysCount);
|
|
539
539
|
}
|
|
540
540
|
get formattedDayPart() {
|
|
541
|
-
return padStart(String(this.day), 2,
|
|
541
|
+
return padStart(String(this.day), 2, `0`);
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
544
|
* @deprecated use {@link getFormattedDay} instead
|
|
@@ -661,21 +661,21 @@ class TuiDay extends TuiMonth {
|
|
|
661
661
|
* Returns formatted whole date
|
|
662
662
|
*/
|
|
663
663
|
getFormattedDay(dateFormat, separator) {
|
|
664
|
-
tuiAssert.assert(separator.length === 1,
|
|
664
|
+
tuiAssert.assert(separator.length === 1, `Separator should consist of only 1 symbol`);
|
|
665
665
|
const dd = this.formattedDayPart;
|
|
666
666
|
const mm = this.formattedMonthPart;
|
|
667
667
|
const yyyy = this.formattedYear;
|
|
668
668
|
switch (dateFormat) {
|
|
669
|
-
case
|
|
669
|
+
case `YMD`:
|
|
670
670
|
return `${yyyy}${separator}${mm}${separator}${dd}`;
|
|
671
|
-
case
|
|
671
|
+
case `MDY`:
|
|
672
672
|
return `${mm}${separator}${dd}${separator}${yyyy}`;
|
|
673
|
-
case
|
|
673
|
+
case `DMY`:
|
|
674
674
|
default:
|
|
675
675
|
return `${dd}${separator}${mm}${separator}${yyyy}`;
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
toString(dateFormat =
|
|
678
|
+
toString(dateFormat = `DMY`, separator = `.`) {
|
|
679
679
|
return this.getFormattedDay(dateFormat, separator);
|
|
680
680
|
}
|
|
681
681
|
toJSON() {
|
|
@@ -730,7 +730,7 @@ class TuiMonthRange {
|
|
|
730
730
|
* Temporary type guard to satisfy ts-overloading of normalizeParse method
|
|
731
731
|
* @deprecated
|
|
732
732
|
*/
|
|
733
|
-
const isDateMode = (dateMode) => [
|
|
733
|
+
const isDateMode = (dateMode) => [`DMY`, `YMD`, `MDY`].includes(dateMode);
|
|
734
734
|
/**
|
|
735
735
|
* An immutable range of two {@link TuiDay} objects
|
|
736
736
|
*/
|
|
@@ -760,8 +760,8 @@ class TuiDayRange extends TuiMonthRange {
|
|
|
760
760
|
* @param dateMode {@link TuiDateMode}
|
|
761
761
|
* @return normalized day range object
|
|
762
762
|
*/
|
|
763
|
-
static normalizeParse(rangeString, dateMode =
|
|
764
|
-
const dateFormat = isDateMode(dateMode) ? dateMode :
|
|
763
|
+
static normalizeParse(rangeString, dateMode = `DMY`) {
|
|
764
|
+
const dateFormat = isDateMode(dateMode) ? dateMode : `DMY`;
|
|
765
765
|
const leftDay = TuiDay.normalizeParse(rangeString.slice(0, DATE_FILLER_LENGTH), dateFormat);
|
|
766
766
|
if (rangeString.length < DATE_RANGE_FILLER_LENGTH) {
|
|
767
767
|
return new TuiDayRange(leftDay, leftDay);
|
|
@@ -776,8 +776,8 @@ class TuiDayRange extends TuiMonthRange {
|
|
|
776
776
|
* @deprecated use {@link getFormattedDayRange} instead
|
|
777
777
|
*/
|
|
778
778
|
get formattedDayRange() {
|
|
779
|
-
const from = this.from.getFormattedDay(
|
|
780
|
-
const to = this.to.getFormattedDay(
|
|
779
|
+
const from = this.from.getFormattedDay(`DMY`, `.`);
|
|
780
|
+
const to = this.to.getFormattedDay(`DMY`, `.`);
|
|
781
781
|
return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
|
|
782
782
|
}
|
|
783
783
|
/**
|
|
@@ -807,7 +807,7 @@ class TuiDayRange extends TuiMonthRange {
|
|
|
807
807
|
const to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
|
808
808
|
return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
|
|
809
809
|
}
|
|
810
|
-
toString(dateFormat =
|
|
810
|
+
toString(dateFormat = `DMY`, dateSeparator = `.`) {
|
|
811
811
|
const from = this.from.getFormattedDay(dateFormat, dateSeparator);
|
|
812
812
|
const to = this.to.getFormattedDay(dateFormat, dateSeparator);
|
|
813
813
|
return `${from}${RANGE_SEPARATOR_CHAR}${to}`;
|
|
@@ -826,7 +826,7 @@ class TuiTime {
|
|
|
826
826
|
this.minutes = minutes;
|
|
827
827
|
this.seconds = seconds;
|
|
828
828
|
this.ms = ms;
|
|
829
|
-
tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms),
|
|
829
|
+
tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), `Time must be real, but got:`, hours, minutes, seconds, ms);
|
|
830
830
|
}
|
|
831
831
|
/**
|
|
832
832
|
* Checks if time is valid
|
|
@@ -908,11 +908,11 @@ class TuiTime {
|
|
|
908
908
|
* Converts TuiTime to string
|
|
909
909
|
*/
|
|
910
910
|
toString(mode) {
|
|
911
|
-
const needAddMs = mode ===
|
|
912
|
-
const needAddSeconds = needAddMs || mode ===
|
|
911
|
+
const needAddMs = mode === `HH:MM:SS.MSS` || (!mode && this.ms > 0);
|
|
912
|
+
const needAddSeconds = needAddMs || mode === `HH:MM:SS` || (!mode && this.seconds > 0);
|
|
913
913
|
return (`${this.formatTime(this.hours)}:${this.formatTime(this.minutes)}` +
|
|
914
|
-
`${needAddSeconds ? `:${this.formatTime(this.seconds)}` :
|
|
915
|
-
`${needAddMs ? `.${this.formatTime(this.ms, 3)}` :
|
|
914
|
+
`${needAddSeconds ? `:${this.formatTime(this.seconds)}` : ``}` +
|
|
915
|
+
`${needAddMs ? `.${this.formatTime(this.ms, 3)}` : ``}`);
|
|
916
916
|
}
|
|
917
917
|
valueOf() {
|
|
918
918
|
return this.toAbsoluteMilliseconds();
|
|
@@ -935,7 +935,7 @@ class TuiTime {
|
|
|
935
935
|
this.ms);
|
|
936
936
|
}
|
|
937
937
|
formatTime(time, digits = 2) {
|
|
938
|
-
return padStart(String(time), digits,
|
|
938
|
+
return padStart(String(time), digits, `0`);
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
941
|
|