@taiga-ui/cdk 2.75.0 → 2.77.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 +54 -2
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.min.js +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 +3 -1
- package/esm2015/decorators/pure.js +7 -2
- 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 +3 -1
- package/esm5/decorators/pure.js +7 -2
- 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 +8 -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 +8 -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
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const ng_morph_1 = require("ng-morph");
|
|
4
4
|
function getNgComponents(pattern, query) {
|
|
5
|
-
return ng_morph_1.getClasses(pattern, query).filter(declaration => !!declaration.getDecorator(
|
|
5
|
+
return ng_morph_1.getClasses(pattern, query).filter(declaration => !!declaration.getDecorator(`Component`));
|
|
6
6
|
}
|
|
7
7
|
exports.getNgComponents = getNgComponents;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const ng_morph_1 = require("ng-morph");
|
|
4
4
|
const constants_1 = require("../../constants");
|
|
5
5
|
function getNgModules(pattern, query) {
|
|
6
|
-
return ng_morph_1.getClasses(pattern, query).filter(declaration => !!declaration.getDecorator(
|
|
6
|
+
return ng_morph_1.getClasses(pattern, query).filter(declaration => !!declaration.getDecorator(`NgModule`));
|
|
7
7
|
}
|
|
8
8
|
exports.getNgModules = getNgModules;
|
|
9
9
|
/**
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
function processLog(message) {
|
|
4
|
-
console.info(
|
|
4
|
+
console.info(`\x1B[36m%s\x1B[0m`, message);
|
|
5
5
|
}
|
|
6
6
|
exports.processLog = processLog;
|
|
7
7
|
function errorLog(message) {
|
|
8
|
-
console.info(
|
|
8
|
+
console.info(`\x1B[31m%s\x1B[0m`, message);
|
|
9
9
|
}
|
|
10
10
|
exports.errorLog = errorLog;
|
|
11
11
|
function successLog(message) {
|
|
12
|
-
console.info(
|
|
12
|
+
console.info(`\x1B[32m%s\x1B[0m`, message);
|
|
13
13
|
}
|
|
14
14
|
exports.successLog = successLog;
|
|
15
15
|
function infoLog(message) {
|
|
16
|
-
console.info(
|
|
16
|
+
console.info(`\x1B[34m%s\x1B[0m`, message);
|
|
17
17
|
}
|
|
18
18
|
exports.infoLog = infoLog;
|
|
19
19
|
function titleLog(message) {
|
|
20
|
-
console.info(
|
|
20
|
+
console.info(`\x1B[35m`, message);
|
|
21
21
|
}
|
|
22
22
|
exports.titleLog = titleLog;
|
|
23
23
|
exports.SMALL_TAB_SYMBOL = ` `; // @note: if you use \t then we have big gaps
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Node } from 'ng-morph';
|
|
2
|
-
export declare function getNamedImportReferences(namedImport: string, moduleSpecifier?: string | string
|
|
2
|
+
export declare function getNamedImportReferences(namedImport: string, moduleSpecifier?: string[] | string): Node[];
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const ng_morph_1 = require("ng-morph");
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
|
-
function getNamedImportReferences(namedImport, moduleSpecifier =
|
|
5
|
+
function getNamedImportReferences(namedImport, moduleSpecifier = `**/**`) {
|
|
6
6
|
const importDeclarations = ng_morph_1.getImports(constants_1.ALL_TS_FILES, {
|
|
7
7
|
namedImports: [namedImport],
|
|
8
|
-
moduleSpecifier
|
|
8
|
+
moduleSpecifier,
|
|
9
9
|
});
|
|
10
10
|
const namedImports = importDeclarations.map(declaration => { var _a; return (_a = declaration
|
|
11
11
|
.getNamedImports()
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { JsonArray, JsonObject, workspaces } from '@angular-devkit/core';
|
|
2
|
-
export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string,
|
|
2
|
+
export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string, JsonArray | JsonObject | boolean | number | string | null | undefined>;
|
|
@@ -4,7 +4,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function getProjectTargetOptions(project, buildTarget) {
|
|
5
5
|
var _a;
|
|
6
6
|
const buildTargetObject = (_a = project.targets) === null || _a === void 0 ? void 0 : _a.get(buildTarget);
|
|
7
|
-
if (buildTargetObject
|
|
7
|
+
if (buildTargetObject === null || buildTargetObject === void 0 ? void 0 : buildTargetObject.options) {
|
|
8
8
|
return buildTargetObject.options;
|
|
9
9
|
}
|
|
10
10
|
throw new schematics_1.SchematicsException(`Cannot determine project target configuration for: ${buildTarget}.`);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
function getProject(options, workspace) {
|
|
5
5
|
var _a;
|
|
6
|
-
const projectName = options.project || ((_a = workspace.extensions.defaultProject) === null || _a === void 0 ? void 0 : _a.toString()) ||
|
|
6
|
+
const projectName = options.project || ((_a = workspace.extensions.defaultProject) === null || _a === void 0 ? void 0 : _a.toString()) || ``;
|
|
7
7
|
const project = workspace.projects.get(projectName);
|
|
8
8
|
if (!project) {
|
|
9
9
|
throw new schematics_1.SchematicsException(`Unable to find project '${projectName}' in the workspace`);
|
|
@@ -6,7 +6,7 @@ function printProgress(progressLog, isLastLog = false) {
|
|
|
6
6
|
readline_1.cursorTo(process.stdout, 0);
|
|
7
7
|
process.stdout.write(progressLog);
|
|
8
8
|
if (isLastLog) {
|
|
9
|
-
process.stdout.write(
|
|
9
|
+
process.stdout.write(`\n`);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.printProgress = printProgress;
|
|
@@ -38,7 +38,7 @@ exports.findElementsWithAttribute = findElementsWithAttribute;
|
|
|
38
38
|
*/
|
|
39
39
|
function findAttributeOnElementWithTag(html, name, tagNames, filterFn = ALWAYS_TRUE_HANDLER) {
|
|
40
40
|
return findElementsWithAttribute(html, name)
|
|
41
|
-
.filter(element => (tagNames.includes(element.tagName) || tagNames.includes(
|
|
41
|
+
.filter(element => (tagNames.includes(element.tagName) || tagNames.includes(`*`)) &&
|
|
42
42
|
filterFn(element))
|
|
43
43
|
.map(element => getStartOffsetOfAttribute(element, name));
|
|
44
44
|
}
|
|
@@ -56,8 +56,8 @@ function findAttributeOnElementWithAttrs(html, name, attrs, filterFn = ALWAYS_TR
|
|
|
56
56
|
exports.findAttributeOnElementWithAttrs = findAttributeOnElementWithAttrs;
|
|
57
57
|
/** Shorthand function that checks if the specified element contains the given attribute. */
|
|
58
58
|
function hasElementAttribute(element, attributeName) {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
var _a;
|
|
60
|
+
return (_a = element.attrs) === null || _a === void 0 ? void 0 : _a.some(attr => attr.name === attributeName.toLowerCase());
|
|
61
61
|
}
|
|
62
62
|
exports.hasElementAttribute = hasElementAttribute;
|
|
63
63
|
/** Gets the start offset of the given attribute from a Parse5 element. */
|
|
@@ -5,7 +5,7 @@ const ng_morph_1 = require("ng-morph");
|
|
|
5
5
|
const path = tslib_1.__importStar(require("path"));
|
|
6
6
|
function getComponentTemplates(pattern, query) {
|
|
7
7
|
return ng_morph_1.getClasses(pattern, query)
|
|
8
|
-
.map(declaration => declaration.getDecorator(
|
|
8
|
+
.map(declaration => declaration.getDecorator(`Component`))
|
|
9
9
|
.filter((decorator) => !!decorator)
|
|
10
10
|
.map(decoratorToTemplateResource);
|
|
11
11
|
}
|
|
@@ -13,23 +13,21 @@ exports.getComponentTemplates = getComponentTemplates;
|
|
|
13
13
|
function decoratorToTemplateResource(decorator) {
|
|
14
14
|
var _a, _b, _c;
|
|
15
15
|
const [metadata] = decorator.getArguments();
|
|
16
|
-
const templateUrl = metadata.getProperty(
|
|
17
|
-
const template = metadata.getProperty(
|
|
16
|
+
const templateUrl = metadata.getProperty(`templateUrl`);
|
|
17
|
+
const template = metadata.getProperty(`template`);
|
|
18
18
|
const componentPath = decorator.getSourceFile().getFilePath();
|
|
19
19
|
if (templateUrl) {
|
|
20
|
-
const templatePath = path.parse(((_a = templateUrl === null || templateUrl === void 0 ? void 0 : templateUrl.getInitializer()) === null || _a === void 0 ? void 0 : _a.getText().replace(/['"`]/g,
|
|
20
|
+
const templatePath = path.parse(((_a = templateUrl === null || templateUrl === void 0 ? void 0 : templateUrl.getInitializer()) === null || _a === void 0 ? void 0 : _a.getText().replace(/['"`]/g, ``)) || ``);
|
|
21
21
|
return {
|
|
22
22
|
componentPath,
|
|
23
23
|
templatePath: getFullTemplatePath(templatePath, path.parse(componentPath)),
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
}
|
|
26
|
+
return {
|
|
27
|
+
componentPath,
|
|
28
|
+
template: ((_b = template.getInitializer()) === null || _b === void 0 ? void 0 : _b.getText()) || ``,
|
|
29
|
+
offset: ((_c = template.getInitializer()) === null || _c === void 0 ? void 0 : _c.getStart()) || 0,
|
|
30
|
+
};
|
|
33
31
|
}
|
|
34
32
|
function getFullTemplatePath(templatePath, componentPath) {
|
|
35
33
|
return path.join(componentPath.dir, templatePath.dir, templatePath.name + templatePath.ext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DevkitFileSystem } from 'ng-morph';
|
|
1
2
|
import { Element } from 'parse5';
|
|
2
3
|
import { TemplateResource } from '../../ng-update/interfaces/template-resourse';
|
|
3
|
-
import { DevkitFileSystem } from 'ng-morph';
|
|
4
4
|
/**
|
|
5
5
|
* Replace component input property by new value
|
|
6
6
|
* ___
|
|
@@ -29,7 +29,7 @@ import { DevkitFileSystem } from 'ng-morph';
|
|
|
29
29
|
export declare function replaceInputProperty({ templateResource, fileSystem, componentSelector, from, to, newValue, filterFn, }: {
|
|
30
30
|
templateResource: TemplateResource;
|
|
31
31
|
fileSystem: DevkitFileSystem;
|
|
32
|
-
componentSelector: string | string
|
|
32
|
+
componentSelector: string[] | string;
|
|
33
33
|
from: string;
|
|
34
34
|
to: string;
|
|
35
35
|
newValue?: string;
|
|
@@ -42,7 +42,7 @@ export declare function replaceInputProperty({ templateResource, fileSystem, com
|
|
|
42
42
|
*
|
|
43
43
|
* getInputPropertyOffsets(template, 'size', ['tui-card']) // [[10, 18]]
|
|
44
44
|
*/
|
|
45
|
-
export declare function getInputPropertyOffsets(html: string, attrName: string, tags: string[], filterFn?: (element: Element) => boolean): [number, number]
|
|
45
|
+
export declare function getInputPropertyOffsets(html: string, attrName: string, tags: string[], filterFn?: (element: Element) => boolean): Array<[number, number]>;
|
|
46
46
|
/**
|
|
47
47
|
* @example
|
|
48
48
|
* // `<tui-card size="` has 16-symbols length
|
|
@@ -50,11 +50,11 @@ export declare function getInputPropertyOffsets(html: string, attrName: string,
|
|
|
50
50
|
*
|
|
51
51
|
* getInputPropertyValueOffsets(template, 'size', ['tui-card']) // [ [16, 18] ]
|
|
52
52
|
*/
|
|
53
|
-
export declare function getInputPropertyValueOffsets(template: string, attrName: string, tags: string[]): [number, number]
|
|
53
|
+
export declare function getInputPropertyValueOffsets(template: string, attrName: string, tags: string[]): Array<[number, number]>;
|
|
54
54
|
export declare function replaceInputPropertyByDirective({ templateResource, fileSystem, componentSelector, inputProperty, directive, directiveModule, filterFn, }: {
|
|
55
55
|
templateResource: TemplateResource;
|
|
56
56
|
fileSystem: DevkitFileSystem;
|
|
57
|
-
componentSelector: string | string
|
|
57
|
+
componentSelector: string[] | string;
|
|
58
58
|
inputProperty: string;
|
|
59
59
|
directive: string;
|
|
60
60
|
directiveModule?: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const template_resource_1 = require("./template-resource");
|
|
4
|
-
const ng_component_1 = require("../angular/ng-component");
|
|
5
|
-
const ng_module_1 = require("../angular/ng-module");
|
|
6
3
|
const ng_morph_1 = require("ng-morph");
|
|
7
4
|
const add_unique_import_1 = require("../add-unique-import");
|
|
5
|
+
const ng_component_1 = require("../angular/ng-component");
|
|
6
|
+
const ng_module_1 = require("../angular/ng-module");
|
|
8
7
|
const elements_1 = require("./elements");
|
|
8
|
+
const template_resource_1 = require("./template-resource");
|
|
9
9
|
/**
|
|
10
10
|
* Replace component input property by new value
|
|
11
11
|
* ___
|
|
@@ -31,7 +31,7 @@ const elements_1 = require("./elements");
|
|
|
31
31
|
* ___
|
|
32
32
|
* @return true if something was changed
|
|
33
33
|
*/
|
|
34
|
-
function replaceInputProperty({ templateResource, fileSystem, componentSelector, from, to, newValue =
|
|
34
|
+
function replaceInputProperty({ templateResource, fileSystem, componentSelector, from, to, newValue = ``, filterFn, }) {
|
|
35
35
|
const template = template_resource_1.getTemplateFromTemplateResource(templateResource, fileSystem);
|
|
36
36
|
const path = fileSystem.resolve(template_resource_1.getPathFromTemplateResource(templateResource));
|
|
37
37
|
const recorder = fileSystem.edit(path);
|
|
@@ -62,7 +62,7 @@ function replaceInputProperty({ templateResource, fileSystem, componentSelector,
|
|
|
62
62
|
});
|
|
63
63
|
propertyBindings.forEach(offset => {
|
|
64
64
|
recorder.remove(offset, `[${from}]`.length);
|
|
65
|
-
recorder.insertRight(offset, to.startsWith(
|
|
65
|
+
recorder.insertRight(offset, to.startsWith(`[`) ? to : `[${to}]`);
|
|
66
66
|
});
|
|
67
67
|
propertyValues.forEach(([startOffset, endOffset]) => {
|
|
68
68
|
recorder.remove(startOffset, endOffset - startOffset);
|
|
@@ -80,7 +80,7 @@ exports.replaceInputProperty = replaceInputProperty;
|
|
|
80
80
|
*/
|
|
81
81
|
function getInputPropertyOffsets(html, attrName, tags, filterFn = () => true) {
|
|
82
82
|
return elements_1.findElementsWithAttribute(html, attrName)
|
|
83
|
-
.filter(element => (tags.includes(element.tagName) || tags.includes(
|
|
83
|
+
.filter(element => (tags.includes(element.tagName) || tags.includes(`*`)) &&
|
|
84
84
|
filterFn(element))
|
|
85
85
|
.map((element) => {
|
|
86
86
|
var _a, _b;
|
|
@@ -97,8 +97,8 @@ exports.getInputPropertyOffsets = getInputPropertyOffsets;
|
|
|
97
97
|
* getInputPropertyValueOffsets(template, 'size', ['tui-card']) // [ [16, 18] ]
|
|
98
98
|
*/
|
|
99
99
|
function getInputPropertyValueOffsets(template, attrName, tags) {
|
|
100
|
-
const stringProperties = getInputPropertyOffsets(template, attrName, tags).map(([start, end]) => [start + attrName.length +
|
|
101
|
-
const propertyBindings = getInputPropertyOffsets(template, `[${attrName}]`, tags).map(([start, end]) => [start + `[${attrName}]`.length +
|
|
100
|
+
const stringProperties = getInputPropertyOffsets(template, attrName, tags).map(([start, end]) => [start + attrName.length + `="`.length, end - 1]);
|
|
101
|
+
const propertyBindings = getInputPropertyOffsets(template, `[${attrName}]`, tags).map(([start, end]) => [start + `[${attrName}]`.length + `="`.length, end - 1]);
|
|
102
102
|
return [...stringProperties, ...propertyBindings];
|
|
103
103
|
}
|
|
104
104
|
exports.getInputPropertyValueOffsets = getInputPropertyValueOffsets;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TemplateResource } from '../../ng-update/interfaces/template-resourse';
|
|
2
1
|
import { DevkitFileSystem } from 'ng-morph';
|
|
2
|
+
import { TemplateResource } from '../../ng-update/interfaces/template-resourse';
|
|
3
3
|
export declare function getTemplateFromTemplateResource(templateRes: TemplateResource, fileSystem: DevkitFileSystem): string;
|
|
4
4
|
export declare function getPathFromTemplateResource(templateRes: TemplateResource): string;
|
|
5
5
|
export declare function getTemplateOffset(templateRes: TemplateResource): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
function getTemplateFromTemplateResource(templateRes, fileSystem) {
|
|
4
|
-
if (
|
|
4
|
+
if (`template` in templateRes) {
|
|
5
5
|
return templateRes.template;
|
|
6
6
|
}
|
|
7
7
|
const path = fileSystem.resolve(templateRes.templatePath);
|
|
@@ -9,13 +9,13 @@ function getTemplateFromTemplateResource(templateRes, fileSystem) {
|
|
|
9
9
|
}
|
|
10
10
|
exports.getTemplateFromTemplateResource = getTemplateFromTemplateResource;
|
|
11
11
|
function getPathFromTemplateResource(templateRes) {
|
|
12
|
-
if (
|
|
12
|
+
if (`templatePath` in templateRes) {
|
|
13
13
|
return templateRes.templatePath;
|
|
14
14
|
}
|
|
15
15
|
return templateRes.componentPath;
|
|
16
16
|
}
|
|
17
17
|
exports.getPathFromTemplateResource = getPathFromTemplateResource;
|
|
18
18
|
function getTemplateOffset(templateRes) {
|
|
19
|
-
return
|
|
19
|
+
return `offset` in templateRes ? templateRes.offset : 0;
|
|
20
20
|
}
|
|
21
21
|
exports.getTemplateOffset = getTemplateOffset;
|
|
@@ -6,7 +6,7 @@ import { TuiParentsScrollService } from './parents-scroll.service';
|
|
|
6
6
|
* and polling with set interval, returns either null or an array
|
|
7
7
|
* of elements that overlap given element edges
|
|
8
8
|
*/
|
|
9
|
-
export declare class TuiObscuredService extends Observable<
|
|
9
|
+
export declare class TuiObscuredService extends Observable<readonly Element[] | null> {
|
|
10
10
|
private readonly obscured$;
|
|
11
11
|
constructor(parentsScroll$: TuiParentsScrollService, { nativeElement }: ElementRef<Element>, ngZone: NgZone, windowRef: Window, destroy$: Observable<void>, animationFrame$: Observable<number>);
|
|
12
12
|
}
|
package/types/dialog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TuiBaseDialogContext } from '@taiga-ui/cdk/interfaces';
|
|
2
2
|
import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
|
|
3
|
-
export declare type TuiDialog<T, O> = TuiBaseDialogContext<O> &
|
|
4
|
-
content: PolymorpheusContent<TuiBaseDialogContext<O
|
|
3
|
+
export declare type TuiDialog<T, O> = T & TuiBaseDialogContext<O> & {
|
|
4
|
+
content: PolymorpheusContent<T & TuiBaseDialogContext<O>>;
|
|
5
5
|
};
|
package/types/event-with.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface TuiTypedEventTarget<E> {
|
|
2
|
-
addEventListener(type: string, listener: ((evt: E) => void) | null, options?:
|
|
3
|
-
removeEventListener(type: string, listener?: ((evt: E) => void) | null, options?:
|
|
2
|
+
addEventListener(type: string, listener: ((evt: E) => void) | null, options?: AddEventListenerOptions | boolean): void;
|
|
3
|
+
removeEventListener(type: string, listener?: ((evt: E) => void) | null, options?: EventListenerOptions | boolean): void;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Wrapper around {@link Event} to add typings to target and currentTarget.
|
package/types/input-mode.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type TuiInputModeT = '
|
|
1
|
+
export declare type TuiInputModeT = 'decimal' | 'email' | 'none' | 'numeric' | 'search' | 'tel' | 'text' | 'url';
|
package/types/input-type.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type TuiInputTypeT = '
|
|
1
|
+
export declare type TuiInputTypeT = 'email' | 'password' | 'tel' | 'text' | 'url';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type TuiOverscrollModeT = 'all' | '
|
|
1
|
+
export declare type TuiOverscrollModeT = 'all' | 'none' | 'scroll';
|
package/types/time-mode.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type TuiTimeMode = 'HH:MM' | 'HH:MM:SS' | 'HH:MM
|
|
1
|
+
export declare type TuiTimeMode = 'HH:MM:SS.MSS' | 'HH:MM:SS' | 'HH:MM';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"canScroll":{"__symbolic":"function","parameters":["element","rootElement","vertical","scrollEnd"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"vertical"},"thenExpression":{"__symbolic":"error","message":"Reference to a non-exported function","line":17,"character":9,"context":{"name":"canScrollVertical"},"module":"./can-scroll"},"elseExpression":{"__symbolic":"error","message":"Reference to a non-exported function","line":44,"character":9,"context":{"name":"canScrollHorizontal"},"module":"./can-scroll"}}},"tuiCanScroll":{"__symbolic":"reference","name":"canScroll"},"containsOrAfter":{"__symbolic":"function","parameters":["current","node"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"current"},"member":"contains"},"arguments":[{"__symbolic":"reference","name":"node"}]},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"binop","operator":"&","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"compareDocumentPosition"},"arguments":[{"__symbolic":"reference","name":"current"}]},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Node"},"member":"DOCUMENT_POSITION_PRECEDING"}}}}}},"tuiContainsOrAfter":{"__symbolic":"reference","name":"containsOrAfter"},"tuiCustomEvent":{"__symbolic":"function"},"getActualTarget":{"__symbolic":"function"},"tuiGetActualTarget":{"__symbolic":"reference","name":"getActualTarget"},"getClipboardDataText":{"__symbolic":"function","parameters":["event","format"],"defaults":[null,"text/plain"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"in","left":"clipboardData","right":{"__symbolic":"reference","name":"event"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"clipboardData"},"right":null}},"thenExpression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"clipboardData"},"member":"getData"},"arguments":[{"__symbolic":"reference","name":"format"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"clipboardData"},"member":"getData"},"arguments":["text/plain"]}},"elseExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"target"},"member":"ownerDocument"},"member":"defaultView"},"member":"clipboardData"},"member":"getData"},"arguments":["text"]}}},"tuiGetClipboardDataText":{"__symbolic":"reference","name":"getClipboardDataText"},"getClosestElement":{"__symbolic":"function"},"getDocumentOrShadowRoot":{"__symbolic":"function","parameters":["node"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"in","left":"getRootNode","right":{"__symbolic":"reference","name":"node"}},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"isConnected"}},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"getRootNode"}},"elseExpression":{"__symbolic":"
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"canScroll":{"__symbolic":"function","parameters":["element","rootElement","vertical","scrollEnd"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"vertical"},"thenExpression":{"__symbolic":"error","message":"Reference to a non-exported function","line":17,"character":9,"context":{"name":"canScrollVertical"},"module":"./can-scroll"},"elseExpression":{"__symbolic":"error","message":"Reference to a non-exported function","line":44,"character":9,"context":{"name":"canScrollHorizontal"},"module":"./can-scroll"}}},"tuiCanScroll":{"__symbolic":"reference","name":"canScroll"},"containsOrAfter":{"__symbolic":"function","parameters":["current","node"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"current"},"member":"contains"},"arguments":[{"__symbolic":"reference","name":"node"}]},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"binop","operator":"&","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"compareDocumentPosition"},"arguments":[{"__symbolic":"reference","name":"current"}]},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Node"},"member":"DOCUMENT_POSITION_PRECEDING"}}}}}},"tuiContainsOrAfter":{"__symbolic":"reference","name":"containsOrAfter"},"tuiCustomEvent":{"__symbolic":"function"},"getActualTarget":{"__symbolic":"function"},"tuiGetActualTarget":{"__symbolic":"reference","name":"getActualTarget"},"getClipboardDataText":{"__symbolic":"function","parameters":["event","format"],"defaults":[null,"text/plain"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"in","left":"clipboardData","right":{"__symbolic":"reference","name":"event"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"clipboardData"},"right":null}},"thenExpression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"clipboardData"},"member":"getData"},"arguments":[{"__symbolic":"reference","name":"format"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"clipboardData"},"member":"getData"},"arguments":["text/plain"]}},"elseExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"target"},"member":"ownerDocument"},"member":"defaultView"},"member":"clipboardData"},"member":"getData"},"arguments":["text"]}}},"tuiGetClipboardDataText":{"__symbolic":"reference","name":"getClipboardDataText"},"getClosestElement":{"__symbolic":"function"},"getDocumentOrShadowRoot":{"__symbolic":"function","parameters":["node"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"in","left":"getRootNode","right":{"__symbolic":"reference","name":"node"}},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"isConnected"}},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"getRootNode"}},"elseExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"ownerDocument"}}},"tuiGetDocumentOrShadowRoot":{"__symbolic":"reference","name":"getDocumentOrShadowRoot"},"getElementObscurers":{"__symbolic":"function"},"tuiGetElementObscures":{"__symbolic":"reference","name":"getElementObscurers"},"getElementOffset":{"__symbolic":"function"},"tuiGetElementOffset":{"__symbolic":"reference","name":"getElementOffset"},"getScrollParent":{"__symbolic":"function"},"tuiGetScrollParent":{"__symbolic":"reference","name":"getScrollParent"},"tuiGetSelectedText":{"__symbolic":"function","parameters":["getSelection","document"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"tuiIsFormFieldElement"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"document"},"member":"activeElement"}]},"thenExpression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"document"},"member":"activeElement"},"member":"value"},"member":"slice"},"arguments":[{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"document"},"member":"activeElement"},"member":"selectionStart"},"right":0},{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"document"},"member":"activeElement"},"member":"selectionEnd"},"right":0}]},"elseExpression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getSelection"}},"member":"toString"}},"right":null}}},"isCurrentTarget":{"__symbolic":"function","parameters":["target","currentTarget"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"target"},"right":{"__symbolic":"reference","name":"currentTarget"}}},"tuiIsCurrentTarget":{"__symbolic":"reference","name":"isCurrentTarget"},"tuiIsElement":{"__symbolic":"function","parameters":["node"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"nodeType"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Node"},"member":"ELEMENT_NODE"}}},"tuiIsFormFieldElement":{"__symbolic":"function"},"isInsideIframe":{"__symbolic":"function","parameters":["windowRef"],"value":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"windowRef"},"member":"parent"},"right":{"__symbolic":"reference","name":"windowRef"}}},"tuiIsInsideIframe":{"__symbolic":"reference","name":"isInsideIframe"},"isNodeIn":{"__symbolic":"function","parameters":["node","selector"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"nodeType"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Node"},"member":"TEXT_NODE"}},"thenExpression":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"parentElement"}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getClosestElement"},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"parentElement"},{"__symbolic":"reference","name":"selector"}]}}}},"elseExpression":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"node"},"member":"nodeType"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Node"},"member":"ELEMENT_NODE"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"getClosestElement"},"arguments":[{"__symbolic":"reference","name":"node"},{"__symbolic":"reference","name":"selector"}]}}}}}},"tuiIsNodeIn":{"__symbolic":"reference","name":"isNodeIn"},"tuiPointToClientRect":{"__symbolic":"function","parameters":["x","y"],"defaults":[0,0],"value":{"left":{"__symbolic":"reference","name":"x"},"right":{"__symbolic":"reference","name":"x"},"top":{"__symbolic":"reference","name":"y"},"bottom":{"__symbolic":"reference","name":"y"},"width":0,"height":0}}},"origins":{"canScroll":"./can-scroll","tuiCanScroll":"./can-scroll","containsOrAfter":"./contains-or-after","tuiContainsOrAfter":"./contains-or-after","tuiCustomEvent":"./custom-event","getActualTarget":"./get-actual-target","tuiGetActualTarget":"./get-actual-target","getClipboardDataText":"./get-clipboard-data-text","tuiGetClipboardDataText":"./get-clipboard-data-text","getClosestElement":"./get-closest-element","getDocumentOrShadowRoot":"./get-document-or-shadow-root","tuiGetDocumentOrShadowRoot":"./get-document-or-shadow-root","getElementObscurers":"./get-element-obscurers","tuiGetElementObscures":"./get-element-obscurers","getElementOffset":"./get-element-offset","tuiGetElementOffset":"./get-element-offset","getScrollParent":"./get-scroll-parent","tuiGetScrollParent":"./get-scroll-parent","tuiGetSelectedText":"./get-selected-text","isCurrentTarget":"./is-current-target","tuiIsCurrentTarget":"./is-current-target","tuiIsElement":"./is-element","tuiIsFormFieldElement":"./is-form-field","isInsideIframe":"./is-inside-iframe","tuiIsInsideIframe":"./is-inside-iframe","isNodeIn":"./is-node-in","tuiIsNodeIn":"./is-node-in","tuiPointToClientRect":"./point-to-client-rect"},"importAs":"@taiga-ui/cdk/utils/dom"}
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* @param focused desired focused state
|
|
7
7
|
* @param preventScroll optionally prevent native browser scroll after focus
|
|
8
8
|
*/
|
|
9
|
-
export declare function setNativeMouseFocused(element:
|
|
9
|
+
export declare function setNativeMouseFocused(element: Element & HTMLOrSVGElement, focused?: boolean, preventScroll?: boolean): void;
|
|
10
10
|
export declare const tuiSetNativeMouseFocused: typeof setNativeMouseFocused;
|
package/utils/math/to-int.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @deprecated: use {@link tuiUniqBy} instead
|
|
3
3
|
*/
|
|
4
|
-
export declare function uniqBy<T extends
|
|
4
|
+
export declare function uniqBy<T extends Record<string, any>>(array: readonly T[], key: keyof T): readonly T[];
|
|
5
5
|
export declare const tuiUniqBy: typeof uniqBy;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|