@taiga-ui/cdk 2.75.0 → 2.76.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/abstract/dialog.service.d.ts +1 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js +46 -1
- 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.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.min.js.map +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 +47 -2
- 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 +50 -5
- 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 +48 -3
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-portal-host.umd.js +46 -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 +1 -1
- 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 +47 -2
- 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 +46 -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 +49 -4
- 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 +47 -2
- 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 +52 -7
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +52 -7
- 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 +49 -4
- 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 +50 -5
- 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 +51 -6
- 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 +48 -3
- 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 +51 -6
- 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 +48 -3
- 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 +49 -4
- 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 +48 -3
- 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 +47 -2
- 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 +47 -2
- 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 +47 -2
- 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 +50 -5
- 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 +56 -11
- 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 +47 -2
- 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 +47 -2
- 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 +60 -15
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +47 -2
- 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 +57 -12
- 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 +48 -3
- 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 +47 -2
- 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 +47 -2
- 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 +49 -4
- 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 +47 -2
- 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 +48 -3
- 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 +48 -3
- 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 +47 -2
- 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 +49 -4
- 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 +46 -1
- 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.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +46 -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-keys.umd.js +46 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +46 -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 +46 -1
- 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 +47 -2
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +1 -1
- 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 +2 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +8 -8
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +2 -4
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +46 -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/classes/assert.d.ts +1 -1
- package/classes/validation-error.d.ts +1 -1
- package/coercion/coerce-boolean-property.d.ts +1 -1
- package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/time.d.ts +1 -1
- package/date-time/year.d.ts +1 -1
- package/decorators/default-prop.d.ts +1 -1
- package/decorators/pure.d.ts +1 -1
- package/decorators/required-setter.d.ts +1 -1
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.metadata.json +1 -1
- package/directives/checked/checked.directive.d.ts +1 -1
- package/directives/for-async/for-async.directive.d.ts +1 -1
- package/directives/media/media.directive.d.ts +2 -2
- package/directives/media/taiga-ui-cdk-directives-media.metadata.json +1 -1
- package/enums/autocomplete.d.ts +1 -1
- package/esm2015/abstract/dialog.service.js +1 -1
- package/esm2015/classes/assert.js +1 -1
- package/esm2015/classes/validation-error.js +1 -1
- package/esm2015/coercion/coerce-boolean-property.js +1 -1
- package/esm2015/components/alert-host/alert-host.component.js +2 -2
- package/esm2015/components/dialog-host/dialog-host.component.js +5 -5
- package/esm2015/components/dropdown-host/dropdown-host.component.js +3 -3
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/day-range.js +1 -1
- package/esm2015/date-time/day.js +2 -2
- package/esm2015/date-time/time.js +1 -1
- package/esm2015/date-time/year.js +1 -1
- package/esm2015/decorators/default-prop.js +1 -1
- package/esm2015/decorators/pure.js +1 -1
- package/esm2015/decorators/required-setter.js +1 -1
- package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
- package/esm2015/directives/auto-focus/autofocus.directive.js +2 -2
- package/esm2015/directives/autofilled/autofilled-style.component.js +2 -2
- package/esm2015/directives/autofilled/autofilled.directive.js +6 -6
- package/esm2015/directives/checked/checked.directive.js +7 -7
- package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
- package/esm2015/directives/drag/drag.directive.js +5 -5
- package/esm2015/directives/droppable/droppable.directive.js +5 -5
- package/esm2015/directives/element/element.directive.js +3 -3
- package/esm2015/directives/focus-trap/focus-trap.directive.js +6 -6
- package/esm2015/directives/focus-visible/focus-visible.directive.js +3 -3
- package/esm2015/directives/focusable/focusable.directive.js +4 -4
- package/esm2015/directives/focused/focused.directive.js +3 -3
- package/esm2015/directives/for/for.directive.js +2 -2
- package/esm2015/directives/for-async/for-async.directive.js +2 -2
- package/esm2015/directives/high-dpi/high-dpi.directive.js +2 -2
- package/esm2015/directives/hovered/hovered.directive.js +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 +18 -18
- 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/interfaces/alert-context.js +1 -1
- package/esm2015/interfaces/swipe.js +1 -1
- package/esm2015/interfaces/zoom.js +1 -1
- package/esm2015/observables/must-be-present.js +1 -1
- package/esm2015/services/obscured.service.js +1 -1
- package/esm2015/tokens/active-element.js +2 -2
- package/esm2015/types/dialog.js +1 -1
- package/esm2015/types/event-with.js +1 -1
- package/esm2015/types/input-mode.js +1 -1
- package/esm2015/types/input-type.js +1 -1
- package/esm2015/types/overscroll-mode.js +1 -1
- package/esm2015/types/time-mode.js +1 -1
- package/esm2015/utils/dom/get-closest-element.js +1 -1
- package/esm2015/utils/dom/get-document-or-shadow-root.js +1 -1
- package/esm2015/utils/dom/get-element-obscurers.js +2 -2
- package/esm2015/utils/focus/get-native-focused.js +3 -2
- package/esm2015/utils/focus/set-native-mouse-focused.js +1 -1
- package/esm2015/utils/math/clamp.js +4 -4
- package/esm2015/utils/math/in-range.js +4 -4
- package/esm2015/utils/math/normalize-to-int-number.js +2 -2
- package/esm2015/utils/math/round.js +2 -2
- package/esm2015/utils/math/to-int.js +1 -1
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +2 -2
- package/esm2015/utils/miscellaneous/get-swipe-direction.js +2 -4
- package/esm2015/utils/miscellaneous/uniq-by.js +1 -1
- package/esm5/abstract/dialog.service.js +1 -1
- package/esm5/classes/assert.js +1 -1
- package/esm5/classes/validation-error.js +1 -1
- package/esm5/coercion/coerce-boolean-property.js +1 -1
- package/esm5/components/alert-host/alert-host.component.js +2 -2
- package/esm5/components/dialog-host/dialog-host.component.js +5 -5
- package/esm5/components/dropdown-host/dropdown-host.component.js +3 -3
- package/esm5/constants/version.js +2 -2
- package/esm5/date-time/day-range.js +1 -1
- package/esm5/date-time/day.js +2 -2
- package/esm5/date-time/time.js +1 -1
- package/esm5/date-time/year.js +1 -1
- package/esm5/decorators/default-prop.js +1 -1
- package/esm5/decorators/pure.js +1 -1
- package/esm5/decorators/required-setter.js +1 -1
- package/esm5/directives/active-zone/active-zone.directive.js +4 -4
- package/esm5/directives/auto-focus/autofocus.directive.js +2 -2
- package/esm5/directives/autofilled/autofilled-style.component.js +2 -2
- package/esm5/directives/autofilled/autofilled.directive.js +6 -6
- package/esm5/directives/checked/checked.directive.js +7 -7
- package/esm5/directives/copy-processor/copy-processor.directive.js +4 -4
- package/esm5/directives/drag/drag.directive.js +5 -5
- package/esm5/directives/droppable/droppable.directive.js +6 -6
- package/esm5/directives/element/element.directive.js +3 -3
- package/esm5/directives/focus-trap/focus-trap.directive.js +6 -6
- package/esm5/directives/focus-visible/focus-visible.directive.js +3 -3
- package/esm5/directives/focusable/focusable.directive.js +4 -4
- package/esm5/directives/focused/focused.directive.js +3 -3
- package/esm5/directives/for/for.directive.js +2 -2
- package/esm5/directives/for-async/for-async.directive.js +2 -2
- package/esm5/directives/high-dpi/high-dpi.directive.js +2 -2
- package/esm5/directives/hovered/hovered.directive.js +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 +15 -15
- 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/interfaces/alert-context.js +1 -1
- package/esm5/interfaces/swipe.js +1 -1
- package/esm5/interfaces/zoom.js +1 -1
- package/esm5/observables/must-be-present.js +1 -1
- package/esm5/services/obscured.service.js +1 -1
- package/esm5/tokens/active-element.js +2 -2
- package/esm5/types/dialog.js +1 -1
- package/esm5/types/event-with.js +1 -1
- package/esm5/types/input-mode.js +1 -1
- package/esm5/types/input-type.js +1 -1
- package/esm5/types/overscroll-mode.js +1 -1
- package/esm5/types/time-mode.js +1 -1
- package/esm5/utils/dom/get-closest-element.js +1 -1
- package/esm5/utils/dom/get-document-or-shadow-root.js +1 -1
- package/esm5/utils/dom/get-element-obscurers.js +2 -2
- package/esm5/utils/focus/get-native-focused.js +3 -2
- package/esm5/utils/focus/set-native-mouse-focused.js +1 -1
- package/esm5/utils/math/clamp.js +4 -4
- package/esm5/utils/math/in-range.js +4 -4
- package/esm5/utils/math/normalize-to-int-number.js +2 -2
- package/esm5/utils/math/round.js +2 -2
- package/esm5/utils/math/to-int.js +1 -1
- package/esm5/utils/miscellaneous/ease-in-out-quad.js +2 -2
- package/esm5/utils/miscellaneous/get-swipe-direction.js +2 -4
- package/esm5/utils/miscellaneous/uniq-by.js +1 -1
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +4 -4
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +2 -2
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +6 -6
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +6 -6
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +5 -5
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +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 +17 -17
- 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-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +2 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +8 -8
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +2 -4
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm5/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm5/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm5/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-alert-host.js +1 -1
- package/fesm5/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-dialog-host.js +4 -4
- package/fesm5/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-components-dropdown-host.js +2 -2
- package/fesm5/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm5/taiga-ui-cdk-constants.js +1 -1
- package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm5/taiga-ui-cdk-date-time.js +1 -1
- package/fesm5/taiga-ui-cdk-date-time.js.map +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 +1 -1
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-autofilled.js +6 -6
- package/fesm5/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-checked.js +6 -6
- package/fesm5/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-copy-processor.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-drag.js +4 -4
- package/fesm5/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-droppable.js +5 -5
- package/fesm5/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-element.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js +5 -5
- package/fesm5/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focusable.js +3 -3
- package/fesm5/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-focused.js +2 -2
- package/fesm5/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-for-async.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-for.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js +1 -1
- package/fesm5/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-hovered.js +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 +14 -14
- 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-observables.js.map +1 -1
- package/fesm5/taiga-ui-cdk-services.js.map +1 -1
- package/fesm5/taiga-ui-cdk-tokens.js +1 -1
- package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-dom.js +1 -1
- package/fesm5/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-focus.js +2 -1
- package/fesm5/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-math.js +8 -8
- package/fesm5/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js +2 -4
- package/fesm5/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/interfaces/alert-context.d.ts +1 -1
- package/interfaces/swipe.d.ts +1 -1
- package/interfaces/zoom.d.ts +1 -1
- package/observables/must-be-present.d.ts +1 -1
- package/package.json +1 -1
- package/schematics/constants/file-globs.js +2 -2
- package/schematics/ng-add/constants/modules.d.ts +4 -4
- package/schematics/ng-add/constants/modules.js +12 -12
- package/schematics/ng-add/constants/packages.js +1 -1
- package/schematics/ng-add/constants/versions.js +3 -3
- package/schematics/ng-add/index.js +7 -7
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/steps/add-taiga-icons.js +4 -4
- package/schematics/ng-add/steps/add-taiga-modules.js +4 -4
- package/schematics/ng-add/steps/add-taiga-styles.js +3 -3
- package/schematics/ng-add/steps/wrap-with-tui-root.js +12 -12
- package/schematics/ng-update/constants/consts.js +57 -57
- package/schematics/ng-update/constants/deprecated-functions.js +426 -426
- package/schematics/ng-update/constants/enums.js +109 -109
- package/schematics/ng-update/constants/modules.js +3 -3
- package/schematics/ng-update/constants/services.d.ts +2 -2
- package/schematics/ng-update/constants/services.js +16 -16
- package/schematics/ng-update/constants/templates.d.ts +1 -1
- package/schematics/ng-update/constants/templates.js +123 -123
- package/schematics/ng-update/constants/tui-interactive-selectors.js +50 -50
- package/schematics/ng-update/constants/types.d.ts +1 -1
- package/schematics/ng-update/constants/types.js +87 -87
- package/schematics/ng-update/constants/warnings.js +56 -56
- package/schematics/ng-update/index.js +14 -14
- package/schematics/ng-update/steps/migrate-date-time.js +38 -38
- package/schematics/ng-update/steps/migrate-progress.js +11 -9
- package/schematics/ng-update/steps/migrate-sliders/index.js +2 -2
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.js +28 -26
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-slider.js +28 -27
- package/schematics/ng-update/steps/migrate-templates.js +24 -21
- package/schematics/ng-update/steps/miscellaneous.js +10 -10
- package/schematics/ng-update/steps/remove-module.js +1 -1
- package/schematics/ng-update/steps/rename-types.js +5 -5
- package/schematics/ng-update/steps/replace-const.js +3 -3
- package/schematics/ng-update/steps/replace-deep-import.js +2 -2
- package/schematics/ng-update/steps/replace-enums.js +3 -3
- package/schematics/ng-update/steps/replace-functions.js +8 -8
- package/schematics/ng-update/steps/replace-services.js +4 -5
- package/schematics/ng-update/steps/show-warnings.js +2 -2
- package/schematics/utils/add-unique-import.js +1 -1
- package/schematics/utils/angular/ng-component.js +1 -1
- package/schematics/utils/angular/ng-module.js +1 -1
- package/schematics/utils/colored-log.js +5 -5
- package/schematics/utils/get-named-import-references.d.ts +1 -1
- package/schematics/utils/get-named-import-references.js +2 -2
- package/schematics/utils/get-project-target-options.d.ts +1 -1
- package/schematics/utils/get-project-target-options.js +1 -1
- package/schematics/utils/get-project.js +1 -1
- package/schematics/utils/progress.js +1 -1
- package/schematics/utils/templates/elements.js +3 -3
- package/schematics/utils/templates/get-component-templates.js +9 -11
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +5 -5
- package/schematics/utils/templates/ng-component-input-manipulations.js +8 -8
- package/schematics/utils/templates/template-resource.d.ts +1 -1
- package/schematics/utils/templates/template-resource.js +3 -3
- package/services/obscured.service.d.ts +1 -1
- package/types/dialog.d.ts +2 -2
- package/types/event-with.d.ts +2 -2
- package/types/input-mode.d.ts +1 -1
- package/types/input-type.d.ts +1 -1
- package/types/overscroll-mode.d.ts +1 -1
- package/types/time-mode.d.ts +1 -1
- package/utils/dom/taiga-ui-cdk-utils-dom.metadata.json +1 -1
- package/utils/focus/set-native-mouse-focused.d.ts +1 -1
- package/utils/math/to-int.d.ts +1 -1
- package/utils/miscellaneous/uniq-by.d.ts +1 -1
- package/schematics/ng-update/constants/functions.d.ts +0 -0
- package/schematics/ng-update/constants/functions.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-for.js","sources":["ng://@taiga-ui/cdk/directives/for/for.directive.ts","ng://@taiga-ui/cdk/directives/for/for.module.ts","ng://@taiga-ui/cdk/directives/for/taiga-ui-cdk-directives-for.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-for.js","sources":["ng://@taiga-ui/cdk/directives/for/for.directive.ts","ng://@taiga-ui/cdk/directives/for/for.module.ts","ng://@taiga-ui/cdk/directives/for/taiga-ui-cdk-directives-for.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnChanges,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]',\n})\nexport class TuiForDirective<T, K = unknown> implements OnChanges {\n private ref?: EmbeddedViewRef<unknown>;\n\n @Input()\n ngForOf: T[] | readonly T[] | null = [];\n\n @Input()\n ngForElse?: TemplateRef<K>;\n\n @Input()\n ngForEmpty?: TemplateRef<K>;\n\n constructor(@Inject(ViewContainerRef) private readonly vcr: ViewContainerRef) {}\n\n ngOnChanges(): void {\n this.ref?.destroy();\n\n if (this.ngForOf?.length === 0 && this.ngForEmpty) {\n this.ref = this.vcr.createEmbeddedView(this.ngForEmpty);\n } else if (!this.ngForOf && this.ngForElse) {\n this.ref = this.vcr.createEmbeddedView(this.ngForElse);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiForDirective} from './for.directive';\n\n@NgModule({\n declarations: [TuiForDirective],\n exports: [TuiForDirective],\n})\nexport class TuiForModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAaa,eAAe,GAA5B,MAAa,eAAe;IAYxB,YAAuD,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;QAR5E,YAAO,GAA8B,EAAE,CAAC;KAQwC;IAEhF,WAAW;;QACP,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,GAAG;QAEpB,IAAI,OAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,MAAK,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE;YAC/C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YACxC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1D;KACJ;EACJ;;YAX+D,gBAAgB,uBAA/D,MAAM,SAAC,gBAAgB;;AARpC;IADC,KAAK,EAAE;gDACgC;AAGxC;IADC,KAAK,EAAE;kDACmB;AAG3B;IADC,KAAK,EAAE;mDACoB;AAVnB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,0DAA0D;KACvE,CAAC;IAae,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAZ5B,eAAe,CAuB3B;;IC5BY,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;;ACR5B;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-high-dpi.js","sources":["ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.directive.ts","ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.module.ts","ng://@taiga-ui/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n * @dynamic\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-high-dpi.js","sources":["ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.directive.ts","ng://@taiga-ui/cdk/directives/high-dpi/high-dpi.module.ts","ng://@taiga-ui/cdk/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\n\n/**\n * Only adds current content if user has High DPI display\n * @dynamic\n */\n@Directive({\n selector: '[tuiHighDpi]',\n})\nexport class TuiHighDpiDirective {\n constructor(\n @Inject(WINDOW) {devicePixelRatio}: Window,\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<Record<string, unknown>>,\n ) {\n if (devicePixelRatio > 1) {\n viewContainer.createEmbeddedView(templateRef);\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHighDpiDirective} from './high-dpi.directive';\n\n@NgModule({\n declarations: [TuiHighDpiDirective],\n exports: [TuiHighDpiDirective],\n})\nexport class TuiHighDpiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;IAOa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YACoB,EAAC,gBAAgB,EAAS,EAChB,aAA+B,EACpC,WAAiD;QAEtE,IAAI,gBAAgB,GAAG,CAAC,EAAE;YACtB,aAAa,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;SACjD;KACJ;EACJ;;YAR2C,MAAM,uBAAzC,MAAM,SAAC,MAAM;YAC2B,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJd,mBAAmB;IAH/B,SAAS,CAAC;QACP,QAAQ,EAAE,cAAc;KAC3B,CAAC;IAGO,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GAJf,mBAAmB,CAU/B;;ICZY,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;;;;;;"}
|
|
@@ -27,16 +27,16 @@ __decorate([
|
|
|
27
27
|
Output()
|
|
28
28
|
], TuiHoveredDirective.prototype, "tuiHoveredChange", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
HostListener(
|
|
30
|
+
HostListener('mouseenter')
|
|
31
31
|
], TuiHoveredDirective.prototype, "onHover", null);
|
|
32
32
|
__decorate([
|
|
33
33
|
shouldCall(movedOut),
|
|
34
|
-
HostListener(
|
|
35
|
-
HostListener(
|
|
34
|
+
HostListener('mouseout.init', ['$event']),
|
|
35
|
+
HostListener('mouseout.silent', ['$event'])
|
|
36
36
|
], TuiHoveredDirective.prototype, "onOut", null);
|
|
37
37
|
TuiHoveredDirective = __decorate([
|
|
38
38
|
Directive({
|
|
39
|
-
selector:
|
|
39
|
+
selector: '[tuiHoveredChange]',
|
|
40
40
|
})
|
|
41
41
|
], TuiHoveredDirective);
|
|
42
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, EventEmitter, HostListener, Output} from '@angular/core';\nimport {tuiAssertIsHTMLElement} from '@taiga-ui/cdk/classes';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n if (!relatedTarget) {\n return true;\n }\n\n tuiAssertIsHTMLElement(currentTarget);\n tuiAssertIsHTMLElement(relatedTarget);\n\n return !currentTarget.contains(relatedTarget);\n}\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, EventEmitter, HostListener, Output} from '@angular/core';\nimport {tuiAssertIsHTMLElement} from '@taiga-ui/cdk/classes';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n if (!relatedTarget) {\n return true;\n }\n\n tuiAssertIsHTMLElement(currentTarget);\n tuiAssertIsHTMLElement(relatedTarget);\n\n return !currentTarget.contains(relatedTarget);\n}\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange = new EventEmitter<boolean>();\n\n @HostListener('mouseenter')\n onHover(): void {\n this.tuiHoveredChange.emit(true);\n }\n\n @shouldCall(movedOut)\n @HostListener('mouseout.init', ['$event'])\n @HostListener('mouseout.silent', ['$event'])\n onOut(_: MouseEvent): void {\n this.tuiHoveredChange.emit(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;SAC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
+
this.mode = 'text';
|
|
13
13
|
}
|
|
14
14
|
get patternAttribute() {
|
|
15
|
-
return this.mode ===
|
|
16
|
-
?
|
|
15
|
+
return this.mode === 'numeric' && this.isIOS && !this.pattern
|
|
16
|
+
? '[0-9]*'
|
|
17
17
|
: this.pattern;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
TuiInputModeDirective.ctorParameters = () => [
|
|
21
|
-
{ type: String, decorators: [{ type: Attribute, args: [
|
|
21
|
+
{ type: String, decorators: [{ type: Attribute, args: ['pattern',] }] },
|
|
22
22
|
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_IOS,] }] }
|
|
23
23
|
];
|
|
24
24
|
__decorate([
|
|
25
|
-
Input(
|
|
26
|
-
HostBinding(
|
|
27
|
-
HostBinding(
|
|
25
|
+
Input('tuiInputMode'),
|
|
26
|
+
HostBinding('attr.inputmode'),
|
|
27
|
+
HostBinding('attr.x-inputmode')
|
|
28
28
|
], TuiInputModeDirective.prototype, "mode", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
HostBinding(
|
|
30
|
+
HostBinding('attr.pattern')
|
|
31
31
|
], TuiInputModeDirective.prototype, "patternAttribute", null);
|
|
32
32
|
TuiInputModeDirective = __decorate([
|
|
33
33
|
Directive({
|
|
34
|
-
selector:
|
|
34
|
+
selector: 'input[tuiInputMode]',
|
|
35
35
|
}),
|
|
36
|
-
__param(0, Attribute(
|
|
36
|
+
__param(0, Attribute('pattern')),
|
|
37
37
|
__param(1, Inject(TUI_IS_IOS))
|
|
38
38
|
], TuiInputModeDirective);
|
|
39
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-input-mode.js","sources":["ng://@taiga-ui/cdk/directives/input-mode/input-mode.directive.ts","ng://@taiga-ui/cdk/directives/input-mode/input-mode.module.ts","ng://@taiga-ui/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputModeT} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-input-mode.js","sources":["ng://@taiga-ui/cdk/directives/input-mode/input-mode.directive.ts","ng://@taiga-ui/cdk/directives/input-mode/input-mode.module.ts","ng://@taiga-ui/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputModeT} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector: 'input[tuiInputMode]',\n})\nexport class TuiInputModeDirective {\n @Input('tuiInputMode')\n @HostBinding('attr.inputmode')\n @HostBinding('attr.x-inputmode')\n mode: TuiInputModeT = 'text';\n\n constructor(\n @Attribute('pattern') private readonly pattern: string | null,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {}\n\n @HostBinding('attr.pattern')\n get patternAttribute(): string | null {\n return this.mode === 'numeric' && this.isIOS && !this.pattern\n ? '[0-9]*'\n : this.pattern;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiInputModeDirective} from './input-mode.directive';\n\n@NgModule({\n declarations: [TuiInputModeDirective],\n exports: [TuiInputModeDirective],\n})\nexport class TuiInputModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;IAMa,qBAAqB,GAAlC,MAAa,qBAAqB;IAM9B,YAC2C,OAAsB,EACxB,KAAc;QADZ,YAAO,GAAP,OAAO,CAAe;QACxB,UAAK,GAAL,KAAK,CAAS;QAJvD,SAAI,GAAkB,MAAM,CAAC;KAKzB;IAGJ,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;cACvD,QAAQ;cACR,IAAI,CAAC,OAAO,CAAC;KACtB;EACJ;;yCAVQ,SAAS,SAAC,SAAS;0CACnB,MAAM,SAAC,UAAU;;AAJtB;IAHC,KAAK,CAAC,cAAc,CAAC;IACrB,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,kBAAkB,CAAC;mDACH;AAQ7B;IADC,WAAW,CAAC,cAAc,CAAC;6DAK3B;AAhBQ,qBAAqB;IAHjC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAQO,WAAA,SAAS,CAAC,SAAS,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,qBAAqB,CAiBjC;;ICnBY,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;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-item.js","sources":["ng://@taiga-ui/cdk/directives/item/item.directive.ts","ng://@taiga-ui/cdk/directives/item/item.module.ts","ng://@taiga-ui/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive to query for {@link TemplateRef}\n * TODO: 3.0 Migrate everything to this directive\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-item.js","sources":["ng://@taiga-ui/cdk/directives/item/item.directive.ts","ng://@taiga-ui/cdk/directives/item/item.module.ts","ng://@taiga-ui/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive to query for {@link TemplateRef}\n * TODO: 3.0 Migrate everything to this directive\n */\n@Directive({\n selector: 'ng-template[tuiItem]',\n})\nexport class TuiItemDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiItemDirective} from './item.directive';\n\n@NgModule({\n declarations: [TuiItemDirective],\n exports: [TuiItemDirective],\n})\nexport class TuiItemModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;IAOa,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAH5B,SAAS,CAAC;QACP,QAAQ,EAAE,sBAAsB;KACnC,CAAC;GACW,gBAAgB,CAAG;;ICDnB,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;;ACR7B;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-let.js","sources":["ng://@taiga-ui/cdk/directives/let/let-context.ts","ng://@taiga-ui/cdk/directives/let/let.directive.ts","ng://@taiga-ui/cdk/directives/let/let.module.ts","ng://@taiga-ui/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiLetDirective} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContextWithImplicit<T> {\n constructor(private readonly internalDirectiveInstance: TuiLetDirective<T>) {}\n\n get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-let.js","sources":["ng://@taiga-ui/cdk/directives/let/let-context.ts","ng://@taiga-ui/cdk/directives/let/let.directive.ts","ng://@taiga-ui/cdk/directives/let/let.module.ts","ng://@taiga-ui/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\n\nimport {TuiLetDirective} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContextWithImplicit<T> {\n constructor(private readonly internalDirectiveInstance: TuiLetDirective<T>) {}\n\n get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n selector: '[tuiLet]',\n})\nexport class TuiLetDirective<T> {\n @Input()\n tuiLet!: T;\n\n constructor(\n @Inject(ViewContainerRef) viewContainer: ViewContainerRef,\n @Inject(TemplateRef) templateRef: TemplateRef<TuiLetContext<T>>,\n ) {\n viewContainer.createEmbeddedView(templateRef, new TuiLetContext<T>(this));\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n _dir: TuiLetDirective<T>,\n _ctx: unknown,\n ): _ctx is TuiLetDirective<Exclude<T, null | undefined>> {\n return true;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiLetDirective} from './let.directive';\n\n@NgModule({\n declarations: [TuiLetDirective],\n exports: [TuiLetDirective],\n})\nexport class TuiLetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;;MAGa,aAAa;IACtB,YAA6B,yBAA6C;QAA7C,8BAAyB,GAAzB,yBAAyB,CAAoB;KAAI;IAE9E,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;;;ACZL;;;;IAOa,eAAe,GAA5B,MAAa,eAAe;IAIxB,YAC8B,aAA+B,EACpC,WAA0C;QAE/D,aAAa,CAAC,kBAAkB,CAAC,WAAW,EAAE,IAAI,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC;KAC7E;;;;;;;IAQD,OAAO,sBAAsB,CACzB,IAAwB,EACxB,IAAa;QAEb,OAAO,IAAI,CAAC;KACf;EACJ;;YAlBgD,gBAAgB,uBAAxD,MAAM,SAAC,gBAAgB;YACU,WAAW,uBAA5C,MAAM,SAAC,WAAW;;AAJvB;IADC,KAAK,EAAE;+CACG;AAFF,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;KACvB,CAAC;IAMO,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GANf,eAAe,CAuB3B;;IC1BY,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;;ACR5B;;;;;;"}
|
|
@@ -4,11 +4,11 @@ import { tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk/decorators';
|
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6
6
|
function nonNegativeFiniteAssertion(value) {
|
|
7
|
-
return isFinite(value) && value >= 0;
|
|
7
|
+
return Number.isFinite(value) && value >= 0;
|
|
8
8
|
}
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
10
|
function volumeAssertion(volume) {
|
|
11
|
-
return isFinite(volume) && volume >= 0 && volume <= 1;
|
|
11
|
+
return Number.isFinite(volume) && volume >= 0 && volume <= 1;
|
|
12
12
|
}
|
|
13
13
|
let TuiMediaDirective = class TuiMediaDirective {
|
|
14
14
|
constructor(elementRef) {
|
|
@@ -27,6 +27,9 @@ let TuiMediaDirective = class TuiMediaDirective {
|
|
|
27
27
|
this.elementRef.nativeElement.currentTime = currentTime;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
get currentTime() {
|
|
31
|
+
return this.elementRef.nativeElement.currentTime;
|
|
32
|
+
}
|
|
30
33
|
set paused(paused) {
|
|
31
34
|
if (paused) {
|
|
32
35
|
this.elementRef.nativeElement.pause();
|
|
@@ -40,9 +43,6 @@ let TuiMediaDirective = class TuiMediaDirective {
|
|
|
40
43
|
get paused() {
|
|
41
44
|
return this.elementRef.nativeElement.paused;
|
|
42
45
|
}
|
|
43
|
-
get currentTime() {
|
|
44
|
-
return this.elementRef.nativeElement.currentTime;
|
|
45
|
-
}
|
|
46
46
|
// @bad TODO: Make sure no other events can affect this like network issues etc.
|
|
47
47
|
onPausedChange(paused) {
|
|
48
48
|
this.pausedChange.emit(paused);
|
|
@@ -68,11 +68,11 @@ TuiMediaDirective.ctorParameters = () => [
|
|
|
68
68
|
];
|
|
69
69
|
__decorate([
|
|
70
70
|
Input(),
|
|
71
|
-
HostBinding(
|
|
71
|
+
HostBinding('volume'),
|
|
72
72
|
tuiDefaultProp(volumeAssertion)
|
|
73
73
|
], TuiMediaDirective.prototype, "volume", void 0);
|
|
74
74
|
__decorate([
|
|
75
|
-
Input(
|
|
75
|
+
Input('playbackRate'),
|
|
76
76
|
tuiRequiredSetter(nonNegativeFiniteAssertion)
|
|
77
77
|
], TuiMediaDirective.prototype, "playbackRateSetter", null);
|
|
78
78
|
__decorate([
|
|
@@ -92,25 +92,25 @@ __decorate([
|
|
|
92
92
|
Output()
|
|
93
93
|
], TuiMediaDirective.prototype, "volumeChange", void 0);
|
|
94
94
|
__decorate([
|
|
95
|
-
HostListener(
|
|
96
|
-
HostListener(
|
|
97
|
-
HostListener(
|
|
95
|
+
HostListener('ended', ['true']),
|
|
96
|
+
HostListener('pause', ['true']),
|
|
97
|
+
HostListener('play', ['false'])
|
|
98
98
|
], TuiMediaDirective.prototype, "onPausedChange", null);
|
|
99
99
|
__decorate([
|
|
100
|
-
HostListener(
|
|
100
|
+
HostListener('volumechange')
|
|
101
101
|
], TuiMediaDirective.prototype, "onVolumeChange", null);
|
|
102
102
|
__decorate([
|
|
103
|
-
HostListener(
|
|
104
|
-
HostListener(
|
|
105
|
-
HostListener(
|
|
103
|
+
HostListener('timeupdate'),
|
|
104
|
+
HostListener('seeking'),
|
|
105
|
+
HostListener('seeked')
|
|
106
106
|
], TuiMediaDirective.prototype, "onCurrentTimeChange", null);
|
|
107
107
|
__decorate([
|
|
108
|
-
HostListener(
|
|
108
|
+
HostListener('durationchange')
|
|
109
109
|
], TuiMediaDirective.prototype, "changeDetectionTrigger", null);
|
|
110
110
|
TuiMediaDirective = __decorate([
|
|
111
111
|
Directive({
|
|
112
|
-
selector:
|
|
113
|
-
exportAs:
|
|
112
|
+
selector: 'video[tuiMedia], audio[tuiMedia]',
|
|
113
|
+
exportAs: 'tuiMedia',
|
|
114
114
|
}),
|
|
115
115
|
__param(0, Inject(ElementRef))
|
|
116
116
|
], TuiMediaDirective);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-media.js","sources":["ng://@taiga-ui/cdk/directives/media/media.directive.ts","ng://@taiga-ui/cdk/directives/media/media.module.ts","ng://@taiga-ui/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return isFinite(value) && value >= 0;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function volumeAssertion(volume: number): boolean {\n return isFinite(volume) && volume >= 0 && volume <= 1;\n}\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-media.js","sources":["ng://@taiga-ui/cdk/directives/media/media.directive.ts","ng://@taiga-ui/cdk/directives/media/media.module.ts","ng://@taiga-ui/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeFiniteAssertion(value: number): boolean {\n return Number.isFinite(value) && value >= 0;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function volumeAssertion(volume: number): boolean {\n return Number.isFinite(volume) && volume >= 0 && volume <= 1;\n}\n\n@Directive({\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n})\nexport class TuiMediaDirective {\n private playbackRate = 1;\n\n @Input()\n @HostBinding('volume')\n @tuiDefaultProp(volumeAssertion)\n volume = 1;\n\n @Input('playbackRate')\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n @tuiRequiredSetter(nonNegativeFiniteAssertion)\n set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.elementRef.nativeElement.currentTime = currentTime;\n }\n }\n\n get currentTime(): number {\n return this.elementRef.nativeElement.currentTime;\n }\n\n @Input()\n set paused(paused: boolean) {\n if (paused) {\n this.elementRef.nativeElement.pause();\n } else {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.elementRef.nativeElement.play();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n get paused(): boolean {\n return this.elementRef.nativeElement.paused;\n }\n\n @Output()\n readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n readonly volumeChange = new EventEmitter<number>();\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLMediaElement>,\n ) {}\n\n // @bad TODO: Make sure no other events can affect this like network issues etc.\n @HostListener('ended', ['true'])\n @HostListener('pause', ['true'])\n @HostListener('play', ['false'])\n onPausedChange(paused: boolean): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n @HostListener('volumechange')\n onVolumeChange(): void {\n this.volume = this.elementRef.nativeElement.volume;\n this.volumeChange.emit(this.volume);\n }\n\n @HostListener('timeupdate')\n @HostListener('seeking')\n @HostListener('seeked')\n onCurrentTimeChange(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n @HostListener('durationchange')\n changeDetectionTrigger(): void {\n // @bad TODO: consider if other events need to trigger CD\n }\n\n private updatePlaybackRate(playbackRate: number): void {\n this.playbackRate = playbackRate;\n this.elementRef.nativeElement.playbackRate = this.playbackRate;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMediaDirective} from './media.directive';\n\n@NgModule({\n declarations: [TuiMediaDirective],\n exports: [TuiMediaDirective],\n})\nexport class TuiMediaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAYA;SACgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AAChD,CAAC;AAED;SACgB,eAAe,CAAC,MAAc;IAC1C,OAAO,MAAM,CAAC,QAAQ,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,gBAAgB,CAAC;+DAG9B;AAhFQ,iBAAiB;IAJ7B,SAAS,CAAC;QACP,QAAQ,EAAE,kCAAkC;QAC5C,QAAQ,EAAE,UAAU;KACvB,CAAC;IAoDO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAnDd,iBAAiB,CAsF7B;;ICxGY,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;;ACR9B;;;;;;"}
|
|
@@ -35,7 +35,7 @@ __decorate([
|
|
|
35
35
|
], TuiObscuredDirective.prototype, "tuiObscured", void 0);
|
|
36
36
|
TuiObscuredDirective = __decorate([
|
|
37
37
|
Directive({
|
|
38
|
-
selector:
|
|
38
|
+
selector: '[tuiObscured]',
|
|
39
39
|
providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],
|
|
40
40
|
}),
|
|
41
41
|
__param(0, Optional()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-obscured.js","sources":["ng://@taiga-ui/cdk/directives/obscured/obscured.directive.ts","ng://@taiga-ui/cdk/directives/obscured/obscured.module.ts","ng://@taiga-ui/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {Directive, Inject, Input, Optional, Output, Self} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiActiveZoneDirective} from '@taiga-ui/cdk/directives/active-zone';\nimport {\n TuiDestroyService,\n TuiObscuredService,\n TuiParentsScrollService,\n} from '@taiga-ui/cdk/services';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {map, switchMap} from 'rxjs/operators';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-obscured.js","sources":["ng://@taiga-ui/cdk/directives/obscured/obscured.directive.ts","ng://@taiga-ui/cdk/directives/obscured/obscured.module.ts","ng://@taiga-ui/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {Directive, Inject, Input, Optional, Output, Self} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiActiveZoneDirective} from '@taiga-ui/cdk/directives/active-zone';\nimport {\n TuiDestroyService,\n TuiObscuredService,\n TuiParentsScrollService,\n} from '@taiga-ui/cdk/services';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {map, switchMap} from 'rxjs/operators';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n selector: '[tuiObscured]',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiObscuredDirective {\n private readonly enabled$ = new Subject<boolean>();\n\n @Input()\n @tuiRequiredSetter()\n set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n\n @Output()\n readonly tuiObscured: Observable<boolean>;\n\n constructor(\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n @Self()\n @Inject(TuiObscuredService)\n obscured$: TuiObscuredService,\n ) {\n const mapped$ = obscured$.pipe(\n map(\n obscuredBy =>\n !!obscuredBy &&\n (!activeZone ||\n !obscuredBy.length ||\n obscuredBy.every(element => !activeZone.contains(element))),\n ),\n );\n\n this.tuiObscured = this.enabled$.pipe(\n switchMap(enabled => (enabled ? mapped$ : EMPTY)),\n );\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiObscuredDirective} from './obscured.directive';\n\n@NgModule({\n declarations: [TuiObscuredDirective],\n exports: [TuiObscuredDirective],\n})\nexport class TuiObscuredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;;;IAOa,oBAAoB,GAAjC,MAAa,oBAAoB;IAY7B,YAGI,UAAy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C,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACRjC;;;;;;"}
|
|
@@ -12,19 +12,19 @@ import { filter, takeUntil, switchMap, tap } from 'rxjs/operators';
|
|
|
12
12
|
*/
|
|
13
13
|
let TuiOverscrollDirective = class TuiOverscrollDirective {
|
|
14
14
|
constructor({ nativeElement }, ngZone, destroy$) {
|
|
15
|
-
this.mode =
|
|
16
|
-
typedFromEvent(nativeElement,
|
|
15
|
+
this.mode = 'scroll';
|
|
16
|
+
typedFromEvent(nativeElement, 'wheel', { passive: false })
|
|
17
17
|
.pipe(filter(() => this.enabled), tuiZonefree(ngZone), takeUntil(destroy$))
|
|
18
18
|
.subscribe(event => {
|
|
19
19
|
this.processEvent(event, !!event.deltaY, event.deltaY ? event.deltaY < 0 : event.deltaX < 0);
|
|
20
20
|
});
|
|
21
|
-
typedFromEvent(nativeElement,
|
|
21
|
+
typedFromEvent(nativeElement, 'touchstart', { passive: true })
|
|
22
22
|
.pipe(switchMap(({ touches }) => {
|
|
23
23
|
let { clientX, clientY } = touches[0];
|
|
24
24
|
let deltaX = 0;
|
|
25
25
|
let deltaY = 0;
|
|
26
26
|
let vertical;
|
|
27
|
-
return typedFromEvent(nativeElement,
|
|
27
|
+
return typedFromEvent(nativeElement, 'touchmove', {
|
|
28
28
|
passive: false,
|
|
29
29
|
}).pipe(filter(() => this.enabled), tap(event => {
|
|
30
30
|
// We have to have it in tap instead of subscribe due to variables in closure
|
|
@@ -42,10 +42,10 @@ let TuiOverscrollDirective = class TuiOverscrollDirective {
|
|
|
42
42
|
.subscribe();
|
|
43
43
|
}
|
|
44
44
|
get enabled() {
|
|
45
|
-
return this.mode !==
|
|
45
|
+
return this.mode !== 'none';
|
|
46
46
|
}
|
|
47
47
|
get overscrollBehavior() {
|
|
48
|
-
return this.enabled ?
|
|
48
|
+
return this.enabled ? 'contain' : null;
|
|
49
49
|
}
|
|
50
50
|
processEvent(event, vertical, negative) {
|
|
51
51
|
var _a;
|
|
@@ -53,11 +53,11 @@ let TuiOverscrollDirective = class TuiOverscrollDirective {
|
|
|
53
53
|
// TODO: iframe warning
|
|
54
54
|
if (!cancelable ||
|
|
55
55
|
!(target instanceof Element) ||
|
|
56
|
-
((_a = target) === null || _a === void 0 ? void 0 : _a.type) ===
|
|
56
|
+
((_a = target) === null || _a === void 0 ? void 0 : _a.type) === 'range') {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
// This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior
|
|
60
|
-
if (this.mode ===
|
|
60
|
+
if (this.mode === 'all' &&
|
|
61
61
|
((vertical && !currentTarget.contains(getScrollParent(target))) ||
|
|
62
62
|
(!vertical && !currentTarget.contains(getScrollParent(target, false))))) {
|
|
63
63
|
event.preventDefault();
|
|
@@ -83,14 +83,14 @@ TuiOverscrollDirective.ctorParameters = () => [
|
|
|
83
83
|
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] }
|
|
84
84
|
];
|
|
85
85
|
__decorate([
|
|
86
|
-
Input(
|
|
86
|
+
Input('tuiOverscroll')
|
|
87
87
|
], TuiOverscrollDirective.prototype, "mode", void 0);
|
|
88
88
|
__decorate([
|
|
89
|
-
HostBinding(
|
|
89
|
+
HostBinding('style.overscrollBehavior')
|
|
90
90
|
], TuiOverscrollDirective.prototype, "overscrollBehavior", null);
|
|
91
91
|
TuiOverscrollDirective = __decorate([
|
|
92
92
|
Directive({
|
|
93
|
-
selector:
|
|
93
|
+
selector: '[tuiOverscroll]',
|
|
94
94
|
providers: [TuiDestroyService],
|
|
95
95
|
}),
|
|
96
96
|
__param(0, Inject(ElementRef)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["ng://@taiga-ui/cdk/directives/overscroll/overscroll.directive.ts","ng://@taiga-ui/cdk/directives/overscroll/overscroll.module.ts","ng://@taiga-ui/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Inject, Input, NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollModeT} from '@taiga-ui/cdk/types';\nimport {canScroll, getScrollParent} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n * @dynamic\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["ng://@taiga-ui/cdk/directives/overscroll/overscroll.directive.ts","ng://@taiga-ui/cdk/directives/overscroll/overscroll.module.ts","ng://@taiga-ui/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Inject, Input, NgZone} from '@angular/core';\nimport {tuiZonefree, typedFromEvent} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollModeT} from '@taiga-ui/cdk/types';\nimport {canScroll, getScrollParent} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n * @dynamic\n */\n@Directive({\n selector: '[tuiOverscroll]',\n providers: [TuiDestroyService],\n})\nexport class TuiOverscrollDirective {\n @Input('tuiOverscroll')\n mode: TuiOverscrollModeT | '' = 'scroll';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n typedFromEvent(nativeElement, 'wheel', {passive: false})\n .pipe(\n filter(() => this.enabled),\n tuiZonefree(ngZone),\n takeUntil(destroy$),\n )\n .subscribe(event => {\n this.processEvent(\n event,\n !!event.deltaY,\n event.deltaY ? event.deltaY < 0 : event.deltaX < 0,\n );\n });\n\n typedFromEvent(nativeElement, 'touchstart', {passive: true})\n .pipe(\n switchMap(({touches}) => {\n let {clientX, clientY} = touches[0];\n let deltaX = 0;\n let deltaY = 0;\n let vertical: boolean;\n\n return typedFromEvent(nativeElement, 'touchmove', {\n passive: false,\n }).pipe(\n filter(() => this.enabled),\n tap(event => {\n // We have to have it in tap instead of subscribe due to variables in closure\n const changedTouch = event.changedTouches[0];\n\n deltaX = clientX - changedTouch.clientX;\n deltaY = clientY - changedTouch.clientY;\n clientX = changedTouch.clientX;\n clientY = changedTouch.clientY;\n\n if (vertical === undefined) {\n vertical = Math.abs(deltaY) > Math.abs(deltaX);\n }\n\n this.processEvent(\n event,\n vertical,\n vertical ? deltaY < 0 : deltaX < 0,\n );\n }),\n );\n }),\n tuiZonefree(ngZone),\n takeUntil(destroy$),\n )\n .subscribe();\n }\n\n get enabled(): boolean {\n return this.mode !== 'none';\n }\n\n @HostBinding('style.overscrollBehavior')\n get overscrollBehavior(): 'contain' | null {\n return this.enabled ? 'contain' : null;\n }\n\n private processEvent(\n event: TuiEventWith<Event, HTMLElement>,\n vertical: boolean,\n negative: boolean,\n ): void {\n const {target, currentTarget, cancelable} = event;\n\n // TODO: iframe warning\n if (\n !cancelable ||\n !(target instanceof Element) ||\n (target as HTMLInputElement)?.type === 'range'\n ) {\n return;\n }\n\n // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior\n if (\n this.mode === 'all' &&\n ((vertical && !currentTarget.contains(getScrollParent(target))) ||\n (!vertical && !currentTarget.contains(getScrollParent(target, false))))\n ) {\n event.preventDefault();\n\n return;\n }\n\n // This is Safari/IE/Edge fallback\n if (\n vertical &&\n ((negative && !canScroll(target, currentTarget, true, false)) ||\n (!negative && !canScroll(target, currentTarget, true, true)))\n ) {\n event.preventDefault();\n\n return;\n }\n\n if (\n !vertical &&\n ((negative && !canScroll(target, currentTarget, false, false)) ||\n (!negative && !canScroll(target, currentTarget, false, true)))\n ) {\n event.preventDefault();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiOverscrollDirective} from './overscroll.directive';\n\n@NgModule({\n declarations: [TuiOverscrollDirective],\n exports: [TuiOverscrollDirective],\n})\nexport class TuiOverscrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA;;;;IAQa,sBAAsB,GAAnC,MAAa,sBAAsB;IAI/B,YACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACH,QAA0B;QALzD,SAAI,GAA4B,QAAQ,CAAC;QAOrC,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACnD,IAAI,CACD,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAC1B,WAAW,CAAC,MAAM,CAAC,EACnB,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC,KAAK;YACZ,IAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,MAAM,EACd,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CACrD,CAAC;SACL,CAAC,CAAC;QAEP,cAAc,CAAC,aAAa,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;aACvD,IAAI,CACD,SAAS,CAAC,CAAC,EAAC,OAAO,EAAC;YAChB,IAAI,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACpC,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,IAAI,MAAM,GAAG,CAAC,CAAC;YACf,IAAI,QAAiB,CAAC;YAEtB,OAAO,cAAc,CAAC,aAAa,EAAE,WAAW,EAAE;gBAC9C,OAAO,EAAE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AC,iBAAiB,CAAC,CAAA;GAPrB,sBAAsB,CAqHlC;;IC7HY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
|
|
@@ -14,8 +14,8 @@ TuiPanDirective.ctorParameters = () => [
|
|
|
14
14
|
];
|
|
15
15
|
TuiPanDirective = __decorate([
|
|
16
16
|
Directive({
|
|
17
|
-
selector:
|
|
18
|
-
outputs: [
|
|
17
|
+
selector: '[tuiPan]',
|
|
18
|
+
outputs: ['tuiPan'],
|
|
19
19
|
providers: [TuiPanService],
|
|
20
20
|
}),
|
|
21
21
|
__param(0, Inject(TuiPanService))
|
|
@@ -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+B,EAE/B,WAA+C;QAF/C,kBAAa,GAAb,aAAa,CAAkB;QAE/B,gBAAW,GAAX,WAAW,CAAoC;KAChE;IAjBJ,IAAI,gBAAgB,CAAC,KAAa;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;QAEzD,MAAM,EAAC,MAAM,EAAC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