@taiga-ui/cdk 2.55.0 → 2.58.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 +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js.map +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 +4 -4
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js +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 +25 -15
- 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 +7 -7
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js +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 +4 -4
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +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/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.metadata.json +1 -1
- package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
- package/constants/unicode-chars.d.ts +8 -0
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.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 +2 -2
- 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 +5 -5
- 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 -11
- 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 +3 -3
- 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 +5 -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 +2 -2
- 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 +5 -5
- 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 -11
- 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 +3 -3
- 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 +5 -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 +1 -1
- 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 +4 -4
- 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 -16
- 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 +7 -7
- 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 +4 -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 +1 -1
- 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 +4 -4
- 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 -16
- 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 +7 -7
- 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 +4 -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-update/constants/templates.d.ts +4 -0
- package/schematics/ng-update/constants/templates.js +5 -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-directives-pan.js","sources":["ng://@taiga-ui/cdk/directives/pan/pan.directive.ts","ng://@taiga-ui/cdk/directives/pan/pan.module.ts","ng://@taiga-ui/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["ng://@taiga-ui/cdk/directives/pan/pan.directive.ts","ng://@taiga-ui/cdk/directives/pan/pan.module.ts","ng://@taiga-ui/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: `[tuiPan]`,\n outputs: [`tuiPan`],\n providers: [TuiPanService],\n})\nexport class TuiPanDirective {\n constructor(\n @Inject(TuiPanService) readonly tuiPan: Observable<readonly [number, number]>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPanDirective} from './pan.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiPanDirective],\n exports: [TuiPanDirective],\n})\nexport class TuiPanModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;IAMa,eAAe,GAA5B,MAAa,eAAe;IACxB,YACoC,MAA6C;QAA7C,WAAM,GAAN,MAAM,CAAuC;KAC7E;EACP;;YAF+C,UAAU,uBAAjD,MAAM,SAAC,aAAa;;AAFhB,eAAe;IAL3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,SAAS,EAAE,CAAC,aAAa,CAAC;KAC7B,CAAC;IAGO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;GAFjB,eAAe,CAI3B;;ACVD;;;IAOa,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IAJxB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACX5B;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-portal.js","sources":["ng://@taiga-ui/cdk/directives/portal/portal.directive.ts","ng://@taiga-ui/cdk/directives/portal/portal.module.ts","ng://@taiga-ui/cdk/directives/portal/taiga-ui-cdk-directives-portal.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiPortalService} from '@taiga-ui/cdk/components/portal-host';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-portal.js","sources":["ng://@taiga-ui/cdk/directives/portal/portal.directive.ts","ng://@taiga-ui/cdk/directives/portal/portal.module.ts","ng://@taiga-ui/cdk/directives/portal/taiga-ui-cdk-directives-portal.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiPortalService} from '@taiga-ui/cdk/components/portal-host';\n\n@Directive({\n selector: `[tuiPortal]`,\n})\nexport class TuiPortalDirective implements OnDestroy {\n private viewRef?: EmbeddedViewRef<unknown>;\n\n @Input()\n set tuiPortal(show: boolean) {\n this.viewRef?.destroy();\n\n if (show) {\n this.viewRef = this.portalService.addTemplate(this.templateRef);\n }\n }\n\n constructor(\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<Record<string, unknown>>,\n @Inject(TuiPortalService) private readonly portalService: TuiPortalService,\n ) {}\n\n ngOnDestroy(): void {\n this.viewRef?.destroy();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPortalDirective} from './portal.directive';\n\n@NgModule({\n declarations: [TuiPortalDirective],\n exports: [TuiPortalDirective],\n})\nexport class TuiPortalModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAaa,kBAAkB,GAA/B,MAAa,kBAAkB;IAY3B,YAEqB,WAAiD,EACvB,aAA+B;QADzD,gBAAW,GAAX,WAAW,CAAsC;QACvB,kBAAa,GAAb,aAAa,CAAkB;KAC1E;IAZJ,IAAI,SAAS,CAAC,IAAa;;QACvB,MAAA,IAAI,CAAC,OAAO,0CAAE,OAAO,GAAG;QAExB,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACnE;KACJ;IAQD,WAAW;;QACP,MAAA,IAAI,CAAC,OAAO,0CAAE,OAAO,GAAG;KAC3B;EACJ;;YAPqC,WAAW,uBADxC,MAAM,SAAC,WAAW;YAEuC,gBAAgB,uBAAzE,MAAM,SAAC,gBAAgB;;AAX5B;IADC,KAAK,EAAE;mDAOP;AAVQ,kBAAkB;IAH9B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;KAC1B,CAAC;IAcO,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;IAEnB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAfpB,kBAAkB,CAqB9B;;IC1BY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAJ3B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;ACR/B;;;;;;"}
|
|
@@ -21,7 +21,7 @@ __decorate([
|
|
|
21
21
|
], TuiPressedDirective.prototype, "tuiPressedChange", void 0);
|
|
22
22
|
TuiPressedDirective = __decorate([
|
|
23
23
|
Directive({
|
|
24
|
-
selector:
|
|
24
|
+
selector: `[tuiPressedChange]`,
|
|
25
25
|
}),
|
|
26
26
|
__param(0, Inject(ElementRef)),
|
|
27
27
|
__param(1, Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["ng://@taiga-ui/cdk/directives/pressed/pressed.directive.ts","ng://@taiga-ui/cdk/directives/pressed/pressed.module.ts","ng://@taiga-ui/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {pressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["ng://@taiga-ui/cdk/directives/pressed/pressed.directive.ts","ng://@taiga-ui/cdk/directives/pressed/pressed.module.ts","ng://@taiga-ui/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {pressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector: `[tuiPressedChange]`,\n})\nexport class TuiPressedDirective {\n @Output()\n readonly tuiPressedChange = pressedObservable(this.elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n });\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPressedDirective} from './pressed.directive';\n\n@NgModule({\n declarations: [TuiPressedDirective],\n exports: [TuiPressedDirective],\n})\nexport class TuiPressedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAM5B,YACyC,UAA+B,EAEnD,qBAA8B;QAFV,eAAU,GAAV,UAAU,CAAqB;QAEnD,0BAAqB,GAArB,qBAAqB,CAAS;QAP1C,qBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzE,WAAW,EAAE,IAAI,CAAC,qBAAqB;SAC1C,CAAC,CAAC;KAMC;EACP;;YAJwD,UAAU,uBAA1D,MAAM,SAAC,UAAU;0CACjB,MAAM,SAAC,4BAA4B;;AANxC;IADC,MAAM,EAAE;6DAGN;AAJM,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;KACjC,CAAC;IAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;GARhC,mBAAmB,CAW/B;;ICVY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
|
|
@@ -21,17 +21,17 @@ TuiPreventDefaultDirective.ctorParameters = () => [
|
|
|
21
21
|
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
22
22
|
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
23
23
|
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
24
|
-
{ type: String, decorators: [{ type: Attribute, args: [
|
|
24
|
+
{ type: String, decorators: [{ type: Attribute, args: [`tuiPreventDefault`,] }] }
|
|
25
25
|
];
|
|
26
26
|
TuiPreventDefaultDirective = __decorate([
|
|
27
27
|
Directive({
|
|
28
|
-
selector:
|
|
28
|
+
selector: `[tuiPreventDefault]`,
|
|
29
29
|
providers: [TuiDestroyService],
|
|
30
30
|
}),
|
|
31
31
|
__param(0, Inject(ElementRef)),
|
|
32
32
|
__param(1, Inject(NgZone)),
|
|
33
33
|
__param(2, Inject(TuiDestroyService)),
|
|
34
|
-
__param(3, Attribute(
|
|
34
|
+
__param(3, Attribute(`tuiPreventDefault`))
|
|
35
35
|
], TuiPreventDefaultDirective);
|
|
36
36
|
|
|
37
37
|
let TuiPreventDefaultModule = class TuiPreventDefaultModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.directive.ts","ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.module.ts","ng://@taiga-ui/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone} from '@angular/core';\nimport {preventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n * @dynamic\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.directive.ts","ng://@taiga-ui/cdk/directives/prevent-default/prevent-default.module.ts","ng://@taiga-ui/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone} from '@angular/core';\nimport {preventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n * @dynamic\n */\n@Directive({\n selector: `[tuiPreventDefault]`,\n providers: [TuiDestroyService],\n})\nexport class TuiPreventDefaultDirective {\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Attribute(`tuiPreventDefault`) eventName: string,\n ) {\n fromEvent(nativeElement, eventName, {passive: false})\n .pipe(tuiZonefree(ngZone), preventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPreventDefaultDirective} from './prevent-default.directive';\n\n@NgModule({\n declarations: [TuiPreventDefaultDirective],\n exports: [TuiPreventDefaultDirective],\n})\nexport class TuiPreventDefaultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;IASa,0BAA0B,GAAvC,MAAa,0BAA0B;IACnC,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B,EACrB,SAAiB;QAEjD,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aAChD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAChE,SAAS,EAAE,CAAC;KACpB;EACJ;;YAT4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACM,MAAM,uBAA7B,MAAM,SAAC,MAAM;YACuB,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;yCACxB,SAAS,SAAC,mBAAmB;;AALzB,0BAA0B;IAJtC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IAGO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,SAAS,CAAC,mBAAmB,CAAC,CAAA;GAL1B,0BAA0B,CAWtC;;IClBY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;QAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;ACRvC;;;;;;"}
|
|
@@ -52,7 +52,7 @@ __decorate([
|
|
|
52
52
|
], TuiRepeatTimesDirective.prototype, "tuiRepeatTimesOf", null);
|
|
53
53
|
TuiRepeatTimesDirective = __decorate([
|
|
54
54
|
Directive({
|
|
55
|
-
selector:
|
|
55
|
+
selector: `[tuiRepeatTimes][tuiRepeatTimesOf]`,
|
|
56
56
|
}),
|
|
57
57
|
__param(0, Inject(ViewContainerRef)),
|
|
58
58
|
__param(1, Inject(TemplateRef))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.directive.ts","ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.module.ts","ng://@taiga-ui/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {clamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.directive.ts","ng://@taiga-ui/cdk/directives/repeat-times/repeat-times.module.ts","ng://@taiga-ui/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {clamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: `[tuiRepeatTimes][tuiRepeatTimesOf]`,\n})\nexport class TuiRepeatTimesDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(clamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainer: ViewContainerRef,\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<TuiRepeatTimesContext>,\n ) {}\n\n private addContainers(count: number): void {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRepeatTimesDirective} from './repeat-times.directive';\n\n@NgModule({\n declarations: [TuiRepeatTimesDirective],\n exports: [TuiRepeatTimesDirective],\n})\nexport class TuiRepeatTimesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAAM,SAAS,GAAG,OAAO,CAAC;MAEb,qBAAqB;IAC9B,YAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;KAAI;CAC7C;AAED;;;;;;;IAUa,uBAAuB,GAApC,MAAa,uBAAuB;IAehC,YAEqB,aAA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Y,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACRpC;;;;;;"}
|
|
@@ -14,8 +14,8 @@ TuiResizeDirective.ctorParameters = () => [
|
|
|
14
14
|
];
|
|
15
15
|
TuiResizeDirective = __decorate([
|
|
16
16
|
Directive({
|
|
17
|
-
selector:
|
|
18
|
-
outputs: [
|
|
17
|
+
selector: `[tuiResize]`,
|
|
18
|
+
outputs: [`tuiResize`],
|
|
19
19
|
providers: [TuiDestroyService, TuiResizeService],
|
|
20
20
|
}),
|
|
21
21
|
__param(0, Inject(TuiResizeService))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["ng://@taiga-ui/cdk/directives/resize/resize.directive.ts","ng://@taiga-ui/cdk/directives/resize/resize.module.ts","ng://@taiga-ui/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["ng://@taiga-ui/cdk/directives/resize/resize.directive.ts","ng://@taiga-ui/cdk/directives/resize/resize.module.ts","ng://@taiga-ui/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: `[tuiResize]`,\n outputs: [`tuiResize`],\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiResizeDirective {\n constructor(\n @Inject(TuiResizeService)\n readonly tuiResize: Observable<readonly ResizeObserverEntry[]>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizeDirective} from './resize.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiResizeDirective],\n exports: [TuiResizeDirective],\n})\nexport class TuiResizeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;IAMa,kBAAkB,GAA/B,MAAa,kBAAkB;IAC3B,YAEa,SAAqD;QAArD,cAAS,GAAT,SAAS,CAA4C;KAC9D;EACP;;YAF2B,UAAU,uBAD7B,MAAM,SAAC,gBAAgB;;AAFnB,kBAAkB;IAL9B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;KACnD,CAAC;IAGO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAFpB,kBAAkB,CAK9B;;ACXD;;;IAOa,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAJ3B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;ACX/B;;;;;;"}
|
|
@@ -14,8 +14,8 @@ TuiSwipeDirective.ctorParameters = () => [
|
|
|
14
14
|
];
|
|
15
15
|
TuiSwipeDirective = __decorate([
|
|
16
16
|
Directive({
|
|
17
|
-
selector:
|
|
18
|
-
outputs: [
|
|
17
|
+
selector: `[tuiSwipe]`,
|
|
18
|
+
outputs: [`tuiSwipe`],
|
|
19
19
|
providers: [TuiSwipeService],
|
|
20
20
|
}),
|
|
21
21
|
__param(0, Inject(TuiSwipeService))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["ng://@taiga-ui/cdk/directives/swipe/swipe.directive.ts","ng://@taiga-ui/cdk/directives/swipe/swipe.module.ts","ng://@taiga-ui/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipe} from '@taiga-ui/cdk/interfaces';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["ng://@taiga-ui/cdk/directives/swipe/swipe.directive.ts","ng://@taiga-ui/cdk/directives/swipe/swipe.module.ts","ng://@taiga-ui/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipe} from '@taiga-ui/cdk/interfaces';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: `[tuiSwipe]`,\n outputs: [`tuiSwipe`],\n providers: [TuiSwipeService],\n})\nexport class TuiSwipeDirective {\n constructor(@Inject(TuiSwipeService) readonly tuiSwipe: Observable<TuiSwipe>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSwipeDirective} from './swipe.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiSwipeDirective],\n exports: [TuiSwipeDirective],\n})\nexport class TuiSwipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;IAMa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YAA8C,QAA8B;QAA9B,aAAQ,GAAR,QAAQ,CAAsB;KAAI;EACnF;;YAD2D,UAAU,uBAArD,MAAM,SAAC,eAAe;;AAD1B,iBAAiB;IAL7B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,SAAS,EAAE,CAAC,eAAe,CAAC;KAC/B,CAAC;IAEe,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;GAD3B,iBAAiB,CAE7B;;ACTD;;;IAOa,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACX9B;;;;;;"}
|
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
], TuiValidatorDirective.prototype, "tuiValidator", void 0);
|
|
31
31
|
TuiValidatorDirective = TuiValidatorDirective_1 = __decorate([
|
|
32
32
|
Directive({
|
|
33
|
-
selector:
|
|
33
|
+
selector: `[tuiValidator]`,
|
|
34
34
|
providers: [
|
|
35
35
|
{
|
|
36
36
|
provide: NG_VALIDATORS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["ng://@taiga-ui/cdk/directives/validator/validator.directive.ts","ng://@taiga-ui/cdk/directives/validator/validator.module.ts","ng://@taiga-ui/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["ng://@taiga-ui/cdk/directives/validator/validator.directive.ts","ng://@taiga-ui/cdk/directives/validator/validator.module.ts","ng://@taiga-ui/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector: `[tuiValidator]`,\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TuiValidatorDirective),\n multi: true,\n },\n ],\n})\nexport class TuiValidatorDirective implements Validator, OnChanges, OnDestroy {\n private onChange = EMPTY_FUNCTION;\n\n @Input()\n @tuiDefaultProp()\n tuiValidator: ValidatorFn = Validators.nullValidator;\n\n validate(control: AbstractControl): ValidationErrors | null {\n return this.tuiValidator(control);\n }\n\n registerOnValidatorChange(onChange: (...args: any[]) => void): void {\n this.onChange = onChange;\n }\n\n ngOnChanges(): void {\n this.onChange();\n }\n\n ngOnDestroy(): void {\n this.tuiValidator = Validators.nullValidator;\n this.onChange();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValidatorDirective} from './validator.directive';\n\n@NgModule({\n declarations: [TuiValidatorDirective],\n exports: [TuiValidatorDirective],\n})\nexport class TuiValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAsBa,qBAAqB,6BAAlC,MAAa,qBAAqB;IAAlC;QACY,aAAQ,GAAG,cAAc,CAAC;QAIlC,iBAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;KAkBxD;IAhBG,QAAQ,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;IAED,yBAAyB,CAAC,QAAkC;QACxD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,WAAW;QACP,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,WAAW;QACP,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;EACJ;AAlBG;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;2DACoC;AAL5C,qBAAqB;IAVjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,UAAU,CAAC,MAAM,uBAAqB,CAAC;gBACpD,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;GACW,qBAAqB,CAuBjC;;ICrCY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAJ9B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACRlC;;;;;;"}
|
|
@@ -14,11 +14,11 @@ TuiZoomDirective.ctorParameters = () => [
|
|
|
14
14
|
];
|
|
15
15
|
TuiZoomDirective = __decorate([
|
|
16
16
|
Directive({
|
|
17
|
-
selector:
|
|
18
|
-
outputs: [
|
|
17
|
+
selector: `[tuiZoom]`,
|
|
18
|
+
outputs: [`tuiZoom`],
|
|
19
19
|
providers: [TuiZoomService],
|
|
20
20
|
host: {
|
|
21
|
-
'[style.touch-action]':
|
|
21
|
+
'[style.touch-action]': `"none"`,
|
|
22
22
|
},
|
|
23
23
|
}),
|
|
24
24
|
__param(0, Inject(TuiZoomService))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["ng://@taiga-ui/cdk/directives/zoom/zoom.directive.ts","ng://@taiga-ui/cdk/directives/zoom/zoom.module.ts","ng://@taiga-ui/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoom} from '@taiga-ui/cdk/interfaces';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["ng://@taiga-ui/cdk/directives/zoom/zoom.directive.ts","ng://@taiga-ui/cdk/directives/zoom/zoom.module.ts","ng://@taiga-ui/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoom} from '@taiga-ui/cdk/interfaces';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector: `[tuiZoom]`,\n outputs: [`tuiZoom`],\n providers: [TuiZoomService],\n host: {\n '[style.touch-action]': `\"none\"`,\n },\n})\nexport class TuiZoomDirective {\n constructor(@Inject(TuiZoomService) readonly tuiZoom: Observable<TuiZoom>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiZoomDirective} from './zoom.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiZoomDirective],\n exports: [TuiZoomDirective],\n})\nexport class TuiZoomModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;IASa,gBAAgB,GAA7B,MAAa,gBAAgB;IACzB,YAA6C,OAA4B;QAA5B,YAAO,GAAP,OAAO,CAAqB;KAAI;EAChF;;YADyD,UAAU,uBAAnD,MAAM,SAAC,cAAc;;AADzB,gBAAgB;IAR5B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,SAAS,EAAE,CAAC,cAAc,CAAC;QAC3B,IAAI,EAAE;YACF,sBAAsB,EAAE,QAAQ;SACnC;KACJ,CAAC;IAEe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;GAD1B,gBAAgB,CAE5B;;ACZD;;;IAOa,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACX7B;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-enums.js","sources":["ng://@taiga-ui/cdk/enums/autocomplete.ts","ng://@taiga-ui/cdk/enums/day-of-week.ts","ng://@taiga-ui/cdk/enums/input-mode.ts","ng://@taiga-ui/cdk/enums/input-type.ts","ng://@taiga-ui/cdk/enums/month-number.ts","ng://@taiga-ui/cdk/enums/overscroll-mode.ts","ng://@taiga-ui/cdk/enums/taiga-ui-cdk-enums.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nexport const enum TuiCreditCardAutofillName {\n Off =
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-enums.js","sources":["ng://@taiga-ui/cdk/enums/autocomplete.ts","ng://@taiga-ui/cdk/enums/day-of-week.ts","ng://@taiga-ui/cdk/enums/input-mode.ts","ng://@taiga-ui/cdk/enums/input-type.ts","ng://@taiga-ui/cdk/enums/month-number.ts","ng://@taiga-ui/cdk/enums/overscroll-mode.ts","ng://@taiga-ui/cdk/enums/taiga-ui-cdk-enums.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nexport const enum TuiCreditCardAutofillName {\n Off = `off`,\n CcName = `cc-name`,\n CcNumber = `cc-number`,\n CcCsc = `cc-csc`,\n CcExpMonth = `cc-exp-month`,\n /**\n * @deprecated\n * TODO: 3.0 replace with {@link CcExpMonth}\n */\n CcExp_mounth = `cc-exp-month`,\n CcExpYear = `cc-exp-year`,\n /**\n * @deprecated\n * TODO: 3.0 replace with {@link CcExpYear}\n */\n CcExp_year = `cc-exp-year`,\n CcExp = `cc-exp`,\n CcType = `cc-type`,\n}\n\nexport const enum TuiNameAutofillName {\n Off = `off`,\n Name = `name`,\n GivenName = `given-name`,\n AdditionalName = `additional-name`,\n FamilyName = `family-name`,\n}\n\nexport const enum TuiAccountAutofillName {\n Off = `off`,\n Username = `username`,\n NewPassword = `new-password`,\n CurrentPassword = `current-password`,\n}\n\nexport const enum TuiEmailAutofillName {\n Off = `off`,\n Email = `email`,\n}\n\nexport const enum TuiAddressAutofillName {\n Off = `off`,\n StreetAddress = `street-address`,\n PostalCode = `postal-code`,\n CountryName = `country-name`,\n}\n\nexport const enum TuiPhoneAutofillName {\n Off = `off`,\n Tel = `tel`,\n}\n\nexport const enum TuiDateAutofillName {\n Off = `off`,\n Bday = `bday`,\n}\n\nexport const enum TuiTransactionAutofillName {\n Off = `off`,\n TransactionCurrency = `transaction-currency`,\n TransactionAmount = `transaction-amount`,\n}\n\nexport type TuiAutofillFieldNameT =\n | 'off'\n // TuiCreditCardAutofillName\n | 'cc-name'\n | 'cc-number'\n | 'cc-csc'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-exp'\n | 'cc-type'\n // TuiNameAutofillName\n | 'name'\n | 'given-name'\n | 'additional-name'\n | 'family-name'\n // TuiAccountAutofillName\n | 'username'\n | 'new-password'\n | 'current-password'\n // TuiEmailAutofillName\n | 'email'\n // TuiAddressAutofillName\n | 'street-address'\n | 'postal-code'\n | 'country-name'\n // TuiPhoneAutofillName\n | 'tel'\n // TuiDateAutofillName\n | 'bday'\n // TuiTransactionAutofillName\n | 'transaction-currency'\n | 'transaction-amount';\n\nexport type TuiAutofillFieldName =\n | TuiAutofillFieldNameT\n | TuiCreditCardAutofillName\n | TuiNameAutofillName\n | TuiAccountAutofillName\n | TuiEmailAutofillName\n | TuiAddressAutofillName\n | TuiPhoneAutofillName\n | TuiDateAutofillName\n | TuiTransactionAutofillName;\n","export const enum TuiDayOfWeek {\n Sunday,\n Monday,\n Tuesday,\n Wednesday,\n Thursday,\n Friday,\n Saturday,\n}\n","/**\n * @deprecated use join type {@link TuiInputModeT}\n */\nexport const enum TuiInputMode {\n None = `none`,\n Text = `text`,\n Decimal = `decimal`,\n Numeric = `numeric`,\n Tel = `tel`,\n Email = `email`,\n Url = `url`,\n Search = `search`,\n}\n","/**\n * @deprecated use join type {@link TuiInputTypeT}\n */\nexport const enum TuiInputType {\n Text = `text`,\n Tel = `tel`,\n Email = `email`,\n Url = `url`,\n Password = `password`,\n}\n","export const enum TuiMonthNumber {\n January,\n February,\n March,\n April,\n May,\n June,\n July,\n August,\n September,\n October,\n November,\n December,\n}\n","/**\n * Modes for {@link TuiOverscrollDirective}:\n *\n * All — blocks all scroll actions\n * Scroll — blocks scroll actions only if content is scrollable (equivalent to overscroll-behavior: contain)\n * None — blocking is disabled\n * @deprecated use join type {@link TuiOverscrollModeT}\n */\nexport const enum TuiOverscrollMode {\n All = `all`,\n Scroll = `scroll`,\n None = `none`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;IACkB;AAAlB,WAAkB,yBAAyB;IACvC,wCAAW,CAAA;IACX,+CAAkB,CAAA;IAClB,mDAAsB,CAAA;IACtB,6CAAgB,CAAA;IAChB,wDAA2B,CAAA;;;;;IAK3B,0DAA6B,CAAA;IAC7B,sDAAyB,CAAA;;;;;IAKzB,uDAA0B,CAAA;IAC1B,6CAAgB,CAAA;IAChB,+CAAkB,CAAA;AACtB,CAAC,EAnBiB,yBAAyB,KAAzB,yBAAyB,QAmB1C;IAEiB;AAAlB,WAAkB,mBAAmB;IACjC,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,+CAAwB,CAAA;IACxB,yDAAkC,CAAA;IAClC,iDAA0B,CAAA;AAC9B,CAAC,EANiB,mBAAmB,KAAnB,mBAAmB,QAMpC;IAEiB;AAAlB,WAAkB,sBAAsB;IACpC,qCAAW,CAAA;IACX,+CAAqB,CAAA;IACrB,sDAA4B,CAAA;IAC5B,8DAAoC,CAAA;AACxC,CAAC,EALiB,sBAAsB,KAAtB,sBAAsB,QAKvC;IAEiB;AAAlB,WAAkB,oBAAoB;IAClC,mCAAW,CAAA;IACX,uCAAe,CAAA;AACnB,CAAC,EAHiB,oBAAoB,KAApB,oBAAoB,QAGrC;IAEiB;AAAlB,WA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ACH,mDAAI,CAAA;IACJ,mDAAI,CAAA;IACJ,uDAAM,CAAA;IACN,6DAAS,CAAA;IACT,yDAAO,CAAA;IACP,4DAAQ,CAAA;IACR,4DAAQ,CAAA;AACZ,CAAC,EAbiB,cAAc,KAAd,cAAc;;ACAhC;;;;;;;;IAQkB;AAAlB,WAAkB,iBAAiB;IAC/B,gCAAW,CAAA;IACX,sCAAiB,CAAA;IACjB,kCAAa,CAAA;AACjB,CAAC,EAJiB,iBAAiB,KAAjB,iBAAiB;;ACRnC;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
class TuiComputedDocumentException extends Error {
|
|
2
2
|
constructor() {
|
|
3
|
-
super(
|
|
3
|
+
super(`Only use computedDocument after load event`);
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
class TuiDocumentSelectionException extends Error {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(
|
|
9
|
+
super(`Failed to get document selection`);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -51,49 +51,49 @@ class TuiInvalidYearException extends InvalidYearException {
|
|
|
51
51
|
|
|
52
52
|
class TuiNoHostException extends Error {
|
|
53
53
|
constructor() {
|
|
54
|
-
super(
|
|
54
|
+
super(`Portals cannot be used without TuiPortalHostComponent`);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class TuiOwnerDocumentException extends Error {
|
|
59
59
|
constructor() {
|
|
60
|
-
super(
|
|
60
|
+
super(`Element does not have ownerDocument`);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
class TuiPureException extends Error {
|
|
65
65
|
constructor() {
|
|
66
|
-
super(
|
|
66
|
+
super(`tuiPure can only be used with functions or getters`);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
class TuiTableSortKeyException extends Error {
|
|
71
71
|
constructor() {
|
|
72
|
-
super(
|
|
72
|
+
super(`Trying to sort with no key`);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
class TuiTsParserException extends Error {
|
|
77
77
|
constructor() {
|
|
78
|
-
super(
|
|
78
|
+
super(`TsFileParser: 1 component/module per ts-file`);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
class TuiValueChangesException extends Error {
|
|
83
83
|
constructor() {
|
|
84
|
-
super(
|
|
84
|
+
super(`Control does not have valueChanges`);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
class TuiValuePresentException extends Error {
|
|
89
89
|
constructor() {
|
|
90
|
-
super(
|
|
90
|
+
super(`Value must present`);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
class TuiXmlParsingException extends Error {
|
|
95
95
|
constructor() {
|
|
96
|
-
super(
|
|
96
|
+
super(`Error parsing XML string`);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-exceptions.js","sources":["ng://@taiga-ui/cdk/exceptions/computed-document.exception.ts","ng://@taiga-ui/cdk/exceptions/document-selection.exception.ts","ng://@taiga-ui/cdk/exceptions/invalid-day.exception.ts","ng://@taiga-ui/cdk/exceptions/invalid-month.exception.ts","ng://@taiga-ui/cdk/exceptions/invalid-year.exception.ts","ng://@taiga-ui/cdk/exceptions/no-host.exception.ts","ng://@taiga-ui/cdk/exceptions/owner-document.exception.ts","ng://@taiga-ui/cdk/exceptions/pure.exception.ts","ng://@taiga-ui/cdk/exceptions/table-sort-key.exception.ts","ng://@taiga-ui/cdk/exceptions/ts-parser.exception.ts","ng://@taiga-ui/cdk/exceptions/value-changes.exception.ts","ng://@taiga-ui/cdk/exceptions/value-present.exception.ts","ng://@taiga-ui/cdk/exceptions/xml-parsing.exception.ts","ng://@taiga-ui/cdk/exceptions/taiga-ui-cdk-exceptions.ts"],"sourcesContent":["export class TuiComputedDocumentException extends Error {\n constructor() {\n super(
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-exceptions.js","sources":["ng://@taiga-ui/cdk/exceptions/computed-document.exception.ts","ng://@taiga-ui/cdk/exceptions/document-selection.exception.ts","ng://@taiga-ui/cdk/exceptions/invalid-day.exception.ts","ng://@taiga-ui/cdk/exceptions/invalid-month.exception.ts","ng://@taiga-ui/cdk/exceptions/invalid-year.exception.ts","ng://@taiga-ui/cdk/exceptions/no-host.exception.ts","ng://@taiga-ui/cdk/exceptions/owner-document.exception.ts","ng://@taiga-ui/cdk/exceptions/pure.exception.ts","ng://@taiga-ui/cdk/exceptions/table-sort-key.exception.ts","ng://@taiga-ui/cdk/exceptions/ts-parser.exception.ts","ng://@taiga-ui/cdk/exceptions/value-changes.exception.ts","ng://@taiga-ui/cdk/exceptions/value-present.exception.ts","ng://@taiga-ui/cdk/exceptions/xml-parsing.exception.ts","ng://@taiga-ui/cdk/exceptions/taiga-ui-cdk-exceptions.ts"],"sourcesContent":["export class TuiComputedDocumentException extends Error {\n constructor() {\n super(`Only use computedDocument after load event`);\n }\n}\n","export class TuiDocumentSelectionException extends Error {\n constructor() {\n super(`Failed to get document selection`);\n }\n}\n","/**\n * @deprecated: use {@link TuiInvalidDayException}\n * TODO: remove in v3.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class InvalidDayException extends Error {\n constructor(day: number) {\n super(`Invalid day: ${day}`);\n }\n}\n\nexport class TuiInvalidDayException extends InvalidDayException {}\n","/**\n * @deprecated: use {@link TuiInvalidMonthException}\n * TODO: remove in v3.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class InvalidMonthException extends Error {\n constructor(month: number) {\n super(`Invalid month: ${month}`);\n }\n}\n\nexport class TuiInvalidMonthException extends InvalidMonthException {}\n","/**\n * @deprecated: use {@link TuiInvalidYearException}\n * TODO: remove in v3.0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport class InvalidYearException extends Error {\n constructor(year: number) {\n super(`Invalid year: ${year}`);\n }\n}\n\nexport class TuiInvalidYearException extends InvalidYearException {}\n","export class TuiNoHostException extends Error {\n constructor() {\n super(`Portals cannot be used without TuiPortalHostComponent`);\n }\n}\n","export class TuiOwnerDocumentException extends Error {\n constructor() {\n super(`Element does not have ownerDocument`);\n }\n}\n","export class TuiPureException extends Error {\n constructor() {\n super(`tuiPure can only be used with functions or getters`);\n }\n}\n","export class TuiTableSortKeyException extends Error {\n constructor() {\n super(`Trying to sort with no key`);\n }\n}\n","export class TuiTsParserException extends Error {\n constructor() {\n super(`TsFileParser: 1 component/module per ts-file`);\n }\n}\n","export class TuiValueChangesException extends Error {\n constructor() {\n super(`Control does not have valueChanges`);\n }\n}\n","export class TuiValuePresentException extends Error {\n constructor() {\n super(`Value must present`);\n }\n}\n","export class TuiXmlParsingException extends Error {\n constructor() {\n super(`Error parsing XML string`);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"MAAa,4BAA6B,SAAQ,KAAK;IACnD;QACI,KAAK,CAAC,4CAA4C,CAAC,CAAC;KACvD;;;MCHQ,6BAA8B,SAAQ,KAAK;IACpD;QACI,KAAK,CAAC,kCAAkC,CAAC,CAAC;KAC7C;;;ACHL;;;;AAIA;MACa,mBAAoB,SAAQ,KAAK;IAC1C,YAAY,GAAW;QACnB,KAAK,CAAC,gBAAgB,GAAG,EAAE,CAAC,CAAC;KAChC;CACJ;MAEY,sBAAuB,SAAQ,mBAAmB;;;ACX/D;;;;AAIA;MACa,qBAAsB,SAAQ,KAAK;IAC5C,YAAY,KAAa;QACrB,KAAK,CAAC,kBAAkB,KAAK,EAAE,CAAC,CAAC;KACpC;CACJ;MAEY,wBAAyB,SAAQ,qBAAqB;;;ACXnE;;;;AAIA;MACa,oBAAqB,SAAQ,KAAK;IAC3C,YAAY,IAAY;QACpB,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;KAClC;CACJ;MAEY,uBAAwB,SAAQ,oBAAoB;;;MCXpD,kBAAmB,SAAQ,KAAK;IACzC;QACI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAClE;;;MCHQ,yBAA0B,SAAQ,KAAK;IAChD;QACI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KAChD;;;MCHQ,gBAAiB,SAAQ,KAAK;IACvC;QACI,KAAK,CAAC,oDAAoD,CAAC,CAAC;KAC/D;;;MCHQ,wBAAyB,SAAQ,KAAK;IAC/C;QACI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KACvC;;;MCHQ,oBAAqB,SAAQ,KAAK;IAC3C;QACI,KAAK,CAAC,8CAA8C,CAAC,CAAC;KACzD;;;MCHQ,wBAAyB,SAAQ,KAAK;IAC/C;QACI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KAC/C;;;MCHQ,wBAAyB,SAAQ,KAAK;IAC/C;QACI,KAAK,CAAC,oBAAoB,CAAC,CAAC;KAC/B;;;MCHQ,sBAAuB,SAAQ,KAAK;IAC7C;QACI,KAAK,CAAC,0BAA0B,CAAC,CAAC;KACrC;;;ACHL;;;;;;"}
|
|
@@ -20,7 +20,7 @@ const tuiTypedFromEvent = typedFromEvent;
|
|
|
20
20
|
*/
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
22
22
|
function mouseDragFinishFrom(target) {
|
|
23
|
-
return merge(typedFromEvent(target,
|
|
23
|
+
return merge(typedFromEvent(target, `mouseup`), typedFromEvent(target, `dragend`));
|
|
24
24
|
}
|
|
25
25
|
const tuiMouseDragFinishFrom = mouseDragFinishFrom;
|
|
26
26
|
|
|
@@ -45,7 +45,7 @@ function dragAndDropFrom(element) {
|
|
|
45
45
|
if (!ownerDocument) {
|
|
46
46
|
throw new TuiOwnerDocumentException();
|
|
47
47
|
}
|
|
48
|
-
return concat(typedFromEvent(element,
|
|
48
|
+
return concat(typedFromEvent(element, `mousedown`).pipe(take(1), map(event => new TuiDragState(0 /* Start */, event))), merge(typedFromEvent(ownerDocument, `mousemove`).pipe(map(event => new TuiDragState(1 /* Continues */, event))), mouseDragFinishFrom(ownerDocument).pipe(take(1), map(event => new TuiDragState(2 /* End */, event)), endWith(null))).pipe(takeWhile(isPresent))).pipe(repeat());
|
|
49
49
|
}
|
|
50
50
|
const tuiDragAndDropFrom = dragAndDropFrom;
|
|
51
51
|
|
|
@@ -63,22 +63,22 @@ let documentMouseDownIsAlive$;
|
|
|
63
63
|
*/
|
|
64
64
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
65
65
|
function focusVisibleObservable(element) {
|
|
66
|
-
const elementBlur$ = typedFromEvent(element,
|
|
66
|
+
const elementBlur$ = typedFromEvent(element, `blur`);
|
|
67
67
|
const { ownerDocument } = element;
|
|
68
68
|
if (!ownerDocument) {
|
|
69
69
|
throw new TuiOwnerDocumentException();
|
|
70
70
|
}
|
|
71
71
|
if (!documentMouseDownIsAlive$ || !documentMouseUpIsAlive$) {
|
|
72
|
-
documentMouseUpIsAlive$ = typedFromEvent(ownerDocument,
|
|
72
|
+
documentMouseUpIsAlive$ = typedFromEvent(ownerDocument, `mouseup`, {
|
|
73
73
|
capture: true,
|
|
74
74
|
}).pipe(tuiIsAlive(), startWith(false), shareReplay({ bufferSize: 1, refCount: true }));
|
|
75
|
-
documentMouseDownIsAlive$ = typedFromEvent(ownerDocument,
|
|
75
|
+
documentMouseDownIsAlive$ = typedFromEvent(ownerDocument, `mousedown`, {
|
|
76
76
|
capture: true,
|
|
77
77
|
}).pipe(tuiIsAlive(), startWith(false), shareReplay({ bufferSize: 1, refCount: true }));
|
|
78
78
|
}
|
|
79
79
|
return merge(
|
|
80
80
|
// focus events excluding ones that came right after mouse action
|
|
81
|
-
concat(typedFromEvent(element,
|
|
81
|
+
concat(typedFromEvent(element, `focus`).pipe(take(1)),
|
|
82
82
|
// filtering out blur events when element remains focused so that we ignore browser tab focus loss
|
|
83
83
|
elementBlur$.pipe(filter(() => !isNativeFocused(element)), take(1), ignoreElements())).pipe(repeat(), withLatestFrom(documentMouseDownIsAlive$, documentMouseUpIsAlive$, (_event, elementActual, documentActual) => elementActual || documentActual), filter(isUserFocus => !isUserFocus))).pipe(switchMapTo(elementBlur$.pipe(mapTo(false), take(1), startWith(true))), distinctUntilChanged());
|
|
84
84
|
}
|
|
@@ -117,7 +117,7 @@ function pressedObservable(element, { onlyTrusted } = { onlyTrusted: true }) {
|
|
|
117
117
|
if (!ownerDocument) {
|
|
118
118
|
throw new TuiOwnerDocumentException();
|
|
119
119
|
}
|
|
120
|
-
return typedFromEvent(element,
|
|
120
|
+
return typedFromEvent(element, `mousedown`).pipe(filter(({ isTrusted }) => isTrusted || !onlyTrusted), switchMapTo(mouseDragFinishFrom(ownerDocument).pipe(mapTo(false), take(1), startWith(true))));
|
|
121
121
|
}
|
|
122
122
|
const tuiPressedObservable = pressedObservable;
|
|
123
123
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-observables.js","sources":["ng://@taiga-ui/cdk/observables/typed-from-event.ts","ng://@taiga-ui/cdk/observables/mouse-drag-finish-from.ts","ng://@taiga-ui/cdk/observables/drag-and-drop-from.ts","ng://@taiga-ui/cdk/observables/is-alive.ts","ng://@taiga-ui/cdk/observables/focus-visible-observable.ts","ng://@taiga-ui/cdk/observables/items-query-list-observable.ts","ng://@taiga-ui/cdk/observables/must-be-present.ts","ng://@taiga-ui/cdk/observables/pressed-observable.ts","ng://@taiga-ui/cdk/observables/prevent-default.ts","ng://@taiga-ui/cdk/observables/replay-control-value-changes.ts","ng://@taiga-ui/cdk/observables/stop-propagation.ts","ng://@taiga-ui/cdk/observables/watch.ts","ng://@taiga-ui/cdk/observables/zone-free.ts","ng://@taiga-ui/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {fromEvent, Observable} from 'rxjs';\n\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n return fromEvent(target, event, options);\n}\n\nexport const tuiTypedFromEvent = typedFromEvent;\n","import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {merge, Observable} from 'rxjs';\n\nimport {typedFromEvent} from './typed-from-event';\n\n/**\n * @deprecated: use {@link tuiMouseDragFinishFrom} instead\n * Letting go of the mouse after it was pressed\n * @param target\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function mouseDragFinishFrom<\n T extends TuiTypedEventTarget<TuiEventWith<DragEvent, T>>,\n>(target: Exclude<T, null>): Observable<TuiEventWith<MouseEvent, T>> {\n return merge(typedFromEvent(target, 'mouseup'), typedFromEvent(target, 'dragend'));\n}\n\nexport const tuiMouseDragFinishFrom = mouseDragFinishFrom;\n","import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {concat, merge, Observable} from 'rxjs';\nimport {endWith, map, repeat, take, takeWhile} from 'rxjs/operators';\n\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport const enum TuiDragStage {\n Start,\n Continues,\n End,\n}\n\nexport class TuiDragState {\n constructor(readonly stage: TuiDragStage, readonly event: MouseEvent) {}\n}\n\n/**\n * @deprecated: use {@link tuiDragAndDropFrom} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function dragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new TuiOwnerDocumentException();\n }\n\n return concat(\n typedFromEvent(element, 'mousedown').pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.Start, event)),\n ),\n merge(\n typedFromEvent(ownerDocument, 'mousemove').pipe(\n map(event => new TuiDragState(TuiDragStage.Continues, event)),\n ),\n mouseDragFinishFrom(ownerDocument).pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.End, event)),\n endWith(null),\n ),\n ).pipe(takeWhile(isPresent)),\n ).pipe(repeat());\n}\n\nexport const tuiDragAndDropFrom = dragAndDropFrom;\n","import {OperatorFunction, pipe, timer} from 'rxjs';\nimport {distinctUntilChanged, mapTo, startWith, switchMapTo} from 'rxjs/operators';\n\n/**\n * Operator to set lifespan after which current value is considered obsolete\n */\nexport function tuiIsAlive(lifespan: number = 0): OperatorFunction<unknown, boolean> {\n return pipe(\n switchMapTo(timer(lifespan).pipe(mapTo(false), startWith(true))),\n distinctUntilChanged(),\n );\n}\n","import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {concat, merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n ignoreElements,\n mapTo,\n repeat,\n shareReplay,\n startWith,\n switchMapTo,\n take,\n withLatestFrom,\n} from 'rxjs/operators';\n\nimport {tuiIsAlive} from './is-alive';\nimport {typedFromEvent} from './typed-from-event';\n\nlet documentMouseUpIsAlive$: Observable<boolean>;\nlet documentMouseDownIsAlive$: Observable<boolean>;\n\n/**\n * @deprecated: use {@link tuiFocusVisibleObservable} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function focusVisibleObservable(element: Element): Observable<boolean> {\n const elementBlur$ = typedFromEvent(element, 'blur');\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new TuiOwnerDocumentException();\n }\n\n if (!documentMouseDownIsAlive$ || !documentMouseUpIsAlive$) {\n documentMouseUpIsAlive$ = typedFromEvent(ownerDocument, 'mouseup', {\n capture: true,\n }).pipe(\n tuiIsAlive(),\n startWith(false),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n documentMouseDownIsAlive$ = typedFromEvent(ownerDocument, 'mousedown', {\n capture: true,\n }).pipe(\n tuiIsAlive(),\n startWith(false),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n }\n\n return merge(\n // focus events excluding ones that came right after mouse action\n concat(\n typedFromEvent(element, 'focus').pipe(take(1)),\n // filtering out blur events when element remains focused so that we ignore browser tab focus loss\n elementBlur$.pipe(\n filter(() => !isNativeFocused(element)),\n take(1),\n ignoreElements(),\n ),\n ).pipe(\n repeat(),\n withLatestFrom(\n documentMouseDownIsAlive$,\n documentMouseUpIsAlive$,\n (_event, elementActual, documentActual) =>\n elementActual || documentActual,\n ),\n filter(isUserFocus => !isUserFocus),\n ),\n ).pipe(\n switchMapTo(elementBlur$.pipe(mapTo(false), take(1), startWith(true))),\n distinctUntilChanged(),\n );\n}\n\nexport const tuiFocusVisibleObservable = focusVisibleObservable;\n","import {QueryList} from '@angular/core';\nimport {getOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiItemsQueryListObservable} instead\n * Converts changes observable of a QueryList to an Observable of arrays\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function itemsQueryListObservable<T>(\n queryList: QueryList<T>,\n): Observable<readonly T[]> {\n return queryList.changes.pipe(\n map(() => getOriginalArrayFromQueryList(queryList)),\n startWith(getOriginalArrayFromQueryList(queryList)),\n );\n}\n\nexport const tuiItemsQueryListObservable = itemsQueryListObservable;\n","import {TuiValuePresentException} from '@taiga-ui/cdk/exceptions';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {OperatorFunction} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiMustBePresent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function mustBePresent<T>(): OperatorFunction<T | undefined | null, T> {\n return map(value => {\n if (!isPresent(value)) {\n throw new TuiValuePresentException();\n }\n\n return value;\n });\n}\n\nexport const tuiMustBePresent = mustBePresent;\n","import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions';\nimport {Observable} from 'rxjs';\nimport {filter, mapTo, startWith, switchMapTo, take} from 'rxjs/operators';\n\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport interface TuiPressedObservableOptions {\n onlyTrusted: boolean;\n}\n\n/**\n * @deprecated: use {@link tuiPressedObservable} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function pressedObservable(\n element: Element,\n {onlyTrusted}: TuiPressedObservableOptions = {onlyTrusted: true},\n): Observable<boolean> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new TuiOwnerDocumentException();\n }\n\n return typedFromEvent(element, 'mousedown').pipe(\n filter(({isTrusted}) => isTrusted || !onlyTrusted),\n switchMapTo(\n mouseDragFinishFrom(ownerDocument).pipe(\n mapTo(false),\n take(1),\n startWith(true),\n ),\n ),\n );\n}\n\nexport const tuiPressedObservable = pressedObservable;\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiPreventDefault} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function preventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(event => event.preventDefault());\n}\n\nexport const tuiPreventDefault = preventDefault;\n","import {AbstractControl, AbstractControlDirective} from '@angular/forms';\nimport {TuiValueChangesException} from '@taiga-ui/cdk/exceptions';\nimport {Observable} from 'rxjs';\nimport {startWith} from 'rxjs/operators';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n * TODO: 3.0 name should be shorter.\n */\nexport function tuiReplayedValueChangesFrom<T>(\n control: AbstractControl | AbstractControlDirective,\n): Observable<T> {\n return new Observable(subscriber => {\n if (!control.valueChanges) {\n throw new TuiValueChangesException();\n }\n\n control.valueChanges.pipe(startWith(control.value)).subscribe(subscriber);\n });\n}\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiStopPropagation} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function stopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(e => {\n e.stopPropagation();\n });\n}\n\nexport const tuiStopPropagation = stopPropagation;\n","import {ChangeDetectorRef} from '@angular/core';\nimport {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiWatch} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function watch<T>(\n changeDetectorRef: ChangeDetectorRef,\n): MonoTypeOperatorFunction<T> {\n return tap(() => {\n changeDetectorRef.markForCheck();\n });\n}\n\nexport const tuiWatch = watch;\n","import {NgZone} from '@angular/core';\nimport {MonoTypeOperatorFunction, Observable, pipe} from 'rxjs';\n\nexport function tuiZonefull<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n source.subscribe({\n next: value => ngZone.run(() => subscriber.next(value)),\n error: (error: unknown) => ngZone.run(() => subscriber.error(error)),\n complete: () => ngZone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n ngZone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(ngZone), tuiZonefull(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAmDA;;;AAGA;SACgB,cAAc,CAC1B,MAA8B,EAC9B,KAAa,EACb,UAAmC,EAAE;IAErC,OAAO,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC;MAEY,iBAAiB,GAAG;;AC1DjC;;;;;AAKA;SACgB,mBAAmB,CAEjC,MAAwB;IACtB,OAAO,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AACvF,CAAC;MAEY,sBAAsB,GAAG;;ICTpB;AAAlB,WAAkB,YAAY;IAC1B,iDAAK,CAAA;IACL,yDAAS,CAAA;IACT,6CAAG,CAAA;AACP,CAAC,EAJiB,YAAY,KAAZ,YAAY,QAI7B;MAEY,YAAY;IACrB,YAAqB,KAAmB,EAAW,KAAiB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,CAAC,UAAU,CAAC,CAAC,CAC/D,CAAC;AACV,CAAC;SAEe,gBAAgB,CAAI,MAAc;IAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAC1D;;ACvBA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-observables.js","sources":["ng://@taiga-ui/cdk/observables/typed-from-event.ts","ng://@taiga-ui/cdk/observables/mouse-drag-finish-from.ts","ng://@taiga-ui/cdk/observables/drag-and-drop-from.ts","ng://@taiga-ui/cdk/observables/is-alive.ts","ng://@taiga-ui/cdk/observables/focus-visible-observable.ts","ng://@taiga-ui/cdk/observables/items-query-list-observable.ts","ng://@taiga-ui/cdk/observables/must-be-present.ts","ng://@taiga-ui/cdk/observables/pressed-observable.ts","ng://@taiga-ui/cdk/observables/prevent-default.ts","ng://@taiga-ui/cdk/observables/replay-control-value-changes.ts","ng://@taiga-ui/cdk/observables/stop-propagation.ts","ng://@taiga-ui/cdk/observables/watch.ts","ng://@taiga-ui/cdk/observables/zone-free.ts","ng://@taiga-ui/cdk/observables/taiga-ui-cdk-observables.ts"],"sourcesContent":["import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {fromEvent, Observable} from 'rxjs';\n\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends keyof WindowEventMap>(\n target: Window,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<WindowEventMap[E], typeof target>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends keyof DocumentEventMap>(\n target: Document,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<DocumentEventMap[E], typeof target>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<T extends Element, E extends keyof HTMLElementEventMap>(\n target: T,\n event: E,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<HTMLElementEventMap[E], typeof target>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<\n E extends Event,\n T extends TuiTypedEventTarget<TuiEventWith<E, T>>,\n>(\n target: T,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<TuiEventWith<E, T>>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options?: AddEventListenerOptions,\n): Observable<E>;\n/**\n * @deprecated: use {@link tuiTypedFromEvent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function typedFromEvent<E extends Event>(\n target: TuiTypedEventTarget<E>,\n event: string,\n options: AddEventListenerOptions = {},\n): Observable<E> {\n return fromEvent(target, event, options);\n}\n\nexport const tuiTypedFromEvent = typedFromEvent;\n","import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types';\nimport {merge, Observable} from 'rxjs';\n\nimport {typedFromEvent} from './typed-from-event';\n\n/**\n * @deprecated: use {@link tuiMouseDragFinishFrom} instead\n * Letting go of the mouse after it was pressed\n * @param target\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function mouseDragFinishFrom<\n T extends TuiTypedEventTarget<TuiEventWith<DragEvent, T>>,\n>(target: Exclude<T, null>): Observable<TuiEventWith<MouseEvent, T>> {\n return merge(typedFromEvent(target, `mouseup`), typedFromEvent(target, `dragend`));\n}\n\nexport const tuiMouseDragFinishFrom = mouseDragFinishFrom;\n","import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {concat, merge, Observable} from 'rxjs';\nimport {endWith, map, repeat, take, takeWhile} from 'rxjs/operators';\n\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport const enum TuiDragStage {\n Start,\n Continues,\n End,\n}\n\nexport class TuiDragState {\n constructor(readonly stage: TuiDragStage, readonly event: MouseEvent) {}\n}\n\n/**\n * @deprecated: use {@link tuiDragAndDropFrom} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function dragAndDropFrom(element: Element): Observable<TuiDragState> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new TuiOwnerDocumentException();\n }\n\n return concat(\n typedFromEvent(element, `mousedown`).pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.Start, event)),\n ),\n merge(\n typedFromEvent(ownerDocument, `mousemove`).pipe(\n map(event => new TuiDragState(TuiDragStage.Continues, event)),\n ),\n mouseDragFinishFrom(ownerDocument).pipe(\n take(1),\n map(event => new TuiDragState(TuiDragStage.End, event)),\n endWith(null),\n ),\n ).pipe(takeWhile(isPresent)),\n ).pipe(repeat());\n}\n\nexport const tuiDragAndDropFrom = dragAndDropFrom;\n","import {OperatorFunction, pipe, timer} from 'rxjs';\nimport {distinctUntilChanged, mapTo, startWith, switchMapTo} from 'rxjs/operators';\n\n/**\n * Operator to set lifespan after which current value is considered obsolete\n */\nexport function tuiIsAlive(lifespan: number = 0): OperatorFunction<unknown, boolean> {\n return pipe(\n switchMapTo(timer(lifespan).pipe(mapTo(false), startWith(true))),\n distinctUntilChanged(),\n );\n}\n","import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions';\nimport {isNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {concat, merge, Observable} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n ignoreElements,\n mapTo,\n repeat,\n shareReplay,\n startWith,\n switchMapTo,\n take,\n withLatestFrom,\n} from 'rxjs/operators';\n\nimport {tuiIsAlive} from './is-alive';\nimport {typedFromEvent} from './typed-from-event';\n\nlet documentMouseUpIsAlive$: Observable<boolean>;\nlet documentMouseDownIsAlive$: Observable<boolean>;\n\n/**\n * @deprecated: use {@link tuiFocusVisibleObservable} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function focusVisibleObservable(element: Element): Observable<boolean> {\n const elementBlur$ = typedFromEvent(element, `blur`);\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new TuiOwnerDocumentException();\n }\n\n if (!documentMouseDownIsAlive$ || !documentMouseUpIsAlive$) {\n documentMouseUpIsAlive$ = typedFromEvent(ownerDocument, `mouseup`, {\n capture: true,\n }).pipe(\n tuiIsAlive(),\n startWith(false),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n documentMouseDownIsAlive$ = typedFromEvent(ownerDocument, `mousedown`, {\n capture: true,\n }).pipe(\n tuiIsAlive(),\n startWith(false),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n }\n\n return merge(\n // focus events excluding ones that came right after mouse action\n concat(\n typedFromEvent(element, `focus`).pipe(take(1)),\n // filtering out blur events when element remains focused so that we ignore browser tab focus loss\n elementBlur$.pipe(\n filter(() => !isNativeFocused(element)),\n take(1),\n ignoreElements(),\n ),\n ).pipe(\n repeat(),\n withLatestFrom(\n documentMouseDownIsAlive$,\n documentMouseUpIsAlive$,\n (_event, elementActual, documentActual) =>\n elementActual || documentActual,\n ),\n filter(isUserFocus => !isUserFocus),\n ),\n ).pipe(\n switchMapTo(elementBlur$.pipe(mapTo(false), take(1), startWith(true))),\n distinctUntilChanged(),\n );\n}\n\nexport const tuiFocusVisibleObservable = focusVisibleObservable;\n","import {QueryList} from '@angular/core';\nimport {getOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiItemsQueryListObservable} instead\n * Converts changes observable of a QueryList to an Observable of arrays\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function itemsQueryListObservable<T>(\n queryList: QueryList<T>,\n): Observable<readonly T[]> {\n return queryList.changes.pipe(\n map(() => getOriginalArrayFromQueryList(queryList)),\n startWith(getOriginalArrayFromQueryList(queryList)),\n );\n}\n\nexport const tuiItemsQueryListObservable = itemsQueryListObservable;\n","import {TuiValuePresentException} from '@taiga-ui/cdk/exceptions';\nimport {isPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {OperatorFunction} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiMustBePresent} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function mustBePresent<T>(): OperatorFunction<T | undefined | null, T> {\n return map(value => {\n if (!isPresent(value)) {\n throw new TuiValuePresentException();\n }\n\n return value;\n });\n}\n\nexport const tuiMustBePresent = mustBePresent;\n","import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions';\nimport {Observable} from 'rxjs';\nimport {filter, mapTo, startWith, switchMapTo, take} from 'rxjs/operators';\n\nimport {mouseDragFinishFrom} from './mouse-drag-finish-from';\nimport {typedFromEvent} from './typed-from-event';\n\nexport interface TuiPressedObservableOptions {\n onlyTrusted: boolean;\n}\n\n/**\n * @deprecated: use {@link tuiPressedObservable} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function pressedObservable(\n element: Element,\n {onlyTrusted}: TuiPressedObservableOptions = {onlyTrusted: true},\n): Observable<boolean> {\n const {ownerDocument} = element;\n\n if (!ownerDocument) {\n throw new TuiOwnerDocumentException();\n }\n\n return typedFromEvent(element, `mousedown`).pipe(\n filter(({isTrusted}) => isTrusted || !onlyTrusted),\n switchMapTo(\n mouseDragFinishFrom(ownerDocument).pipe(\n mapTo(false),\n take(1),\n startWith(true),\n ),\n ),\n );\n}\n\nexport const tuiPressedObservable = pressedObservable;\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiPreventDefault} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function preventDefault<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(event => event.preventDefault());\n}\n\nexport const tuiPreventDefault = preventDefault;\n","import {AbstractControl, AbstractControlDirective} from '@angular/forms';\nimport {TuiValueChangesException} from '@taiga-ui/cdk/exceptions';\nimport {Observable} from 'rxjs';\nimport {startWith} from 'rxjs/operators';\n\n/**\n * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)\n * TODO: 3.0 name should be shorter.\n */\nexport function tuiReplayedValueChangesFrom<T>(\n control: AbstractControl | AbstractControlDirective,\n): Observable<T> {\n return new Observable(subscriber => {\n if (!control.valueChanges) {\n throw new TuiValueChangesException();\n }\n\n control.valueChanges.pipe(startWith(control.value)).subscribe(subscriber);\n });\n}\n","import {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiStopPropagation} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function stopPropagation<T extends Event>(): MonoTypeOperatorFunction<T> {\n return tap(e => {\n e.stopPropagation();\n });\n}\n\nexport const tuiStopPropagation = stopPropagation;\n","import {ChangeDetectorRef} from '@angular/core';\nimport {MonoTypeOperatorFunction} from 'rxjs';\nimport {tap} from 'rxjs/operators';\n\n/**\n * @deprecated: use {@link tuiWatch} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function watch<T>(\n changeDetectorRef: ChangeDetectorRef,\n): MonoTypeOperatorFunction<T> {\n return tap(() => {\n changeDetectorRef.markForCheck();\n });\n}\n\nexport const tuiWatch = watch;\n","import {NgZone} from '@angular/core';\nimport {MonoTypeOperatorFunction, Observable, pipe} from 'rxjs';\n\nexport function tuiZonefull<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n source.subscribe({\n next: value => ngZone.run(() => subscriber.next(value)),\n error: (error: unknown) => ngZone.run(() => subscriber.error(error)),\n complete: () => ngZone.run(() => subscriber.complete()),\n }),\n );\n}\n\nexport function tuiZonefree<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return source =>\n new Observable(subscriber =>\n ngZone.runOutsideAngular(() => source.subscribe(subscriber)),\n );\n}\n\nexport function tuiZoneOptimized<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return pipe(tuiZonefree(ngZone), tuiZonefull(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAmDA;;;AAGA;SACgB,cAAc,CAC1B,MAA8B,EAC9B,KAAa,EACb,UAAmC,EAAE;IAErC,OAAO,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC;MAEY,iBAAiB,GAAG;;AC1DjC;;;;;AAKA;SACgB,mBAAmB,CAEjC,MAAwB;IACtB,OAAO,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AACvF,CAAC;MAEY,sBAAsB,GAAG;;ICTpB;AAAlB,WAAkB,YAAY;IAC1B,iDAAK,CAAA;IACL,yDAAS,CAAA;IACT,6CAAG,CAAA;AACP,CAAC,EAJiB,YAAY,KAAZ,YAAY,QAI7B;MAEY,YAAY;IACrB,YAAqB,KAAmB,EAAW,KAAiB;QAA/C,UAAK,GAAL,KAAK,CAAc;QAAW,UAAK,GAAL,KAAK,CAAY;KAAI;CAC3E;AAED;;;AAGA;SACgB,eAAe,CAAC,OAAgB;IAC5C,MAAM,EAAC,aAAa,EAAC,GAAG,OAAO,CAAC;IAEhC,IAAI,CAAC,aAAa,EAAE;QAChB,MAAM,IAAI,yBAAyB,EAAE,CAAC;KACzC;IAED,OAAO,MAAM,CACT,cAAc,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,IAAI,CACrC,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,CAAC,KAAK,I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/filter/taiga-ui-cdk-pipes-filter.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiMatcher} from '@taiga-ui/cdk/types';\n\n@Pipe({name:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-filter.js","sources":["ng://@taiga-ui/cdk/pipes/filter/filter.pipe.ts","ng://@taiga-ui/cdk/pipes/filter/filter.module.ts","ng://@taiga-ui/cdk/pipes/filter/taiga-ui-cdk-pipes-filter.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiMatcher} from '@taiga-ui/cdk/types';\n\n@Pipe({name: `tuiFilter`})\nexport class TuiFilterPipe implements PipeTransform {\n /**\n * Filters an array through a matcher function using additional arguments\n *\n * @param items array\n * @param matcher method for filtering\n * @param args arbitrary number of additional arguments\n */\n transform<T>(items: readonly T[], matcher: TuiMatcher<T>, ...args: any[]): T[] {\n return items.filter(item => matcher(item, ...args));\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFilterPipe} from './filter.pipe';\n\n@NgModule({\n exports: [TuiFilterPipe],\n declarations: [TuiFilterPipe],\n})\nexport class TuiFilterPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAIa,aAAa,GAA1B,MAAa,aAAa;;;;;;;;IAQtB,SAAS,CAAI,KAAmB,EAAE,OAAsB,EAAE,GAAG,IAAW;QACpE,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;KACvD;EACJ;AAXY,aAAa;IADzB,IAAI,CAAC,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC;GACb,aAAa,CAWzB;;ICPY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,YAAY,EAAE,CAAC,aAAa,CAAC;KAChC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-pipes-mapper.js","sources":["ng://@taiga-ui/cdk/pipes/mapper/mapper.pipe.ts","ng://@taiga-ui/cdk/pipes/mapper/mapper.module.ts","ng://@taiga-ui/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({name:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-pipes-mapper.js","sources":["ng://@taiga-ui/cdk/pipes/mapper/mapper.pipe.ts","ng://@taiga-ui/cdk/pipes/mapper/mapper.module.ts","ng://@taiga-ui/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({name: `tuiMapper`})\nexport class TuiMapperPipe implements PipeTransform {\n /**\n * Maps object to an arbitrary result through a mapper function\n *\n * @param value an item to transform\n * @param mapper a mapping function\n * @param args arbitrary number of additional arguments\n */\n transform<T, G>(value: T, mapper: TuiMapper<T, G>, ...args: any[]): G {\n return mapper(value, ...args);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMapperPipe} from './mapper.pipe';\n\n@NgModule({\n exports: [TuiMapperPipe],\n declarations: [TuiMapperPipe],\n})\nexport class TuiMapperPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAIa,aAAa,GAA1B,MAAa,aAAa;;;;;;;;IAQtB,SAAS,CAAO,KAAQ,EAAE,MAAuB,EAAE,GAAG,IAAW;QAC7D,OAAO,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;KACjC;EACJ;AAXY,aAAa;IADzB,IAAI,CAAC,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC;GACb,aAAa,CAWzB;;ICPY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,aAAa,CAAC;QACxB,YAAY,EAAE,CAAC,aAAa,CAAC;KAChC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
|