@taiga-ui/cdk 3.49.1 → 3.50.1-canary.eacd5b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/control.d.ts +0 -6
- package/abstract/interactive.d.ts +0 -9
- package/abstract/portal-host.d.ts +1 -4
- package/abstract/portal-service.d.ts +0 -3
- package/abstract/taiga-ui-cdk-abstract.d.ts +0 -3
- package/abstract/theme-switcher.d.ts +0 -6
- package/bundles/taiga-ui-cdk-abstract.umd.js +0 -32
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +0 -9
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +0 -10
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +0 -8
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +0 -11
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +0 -10
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +0 -4
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components.umd.js +0 -4
- package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +0 -108
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +0 -284
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +0 -26
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +1 -44
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-control.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +0 -10
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +0 -5
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +0 -18
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +0 -17
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +0 -9
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +0 -10
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +0 -9
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +1 -7
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +0 -17
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +0 -10
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-platform.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +0 -12
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +0 -11
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +0 -5
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +0 -7
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +0 -4
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +0 -8
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +0 -4
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js +1 -3
- package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +1 -34
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +1 -7
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes.umd.js +0 -4
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +5 -53
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +5 -109
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-types.umd.js +1 -3
- package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +0 -4
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +0 -10
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +2 -53
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +0 -51
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +0 -7
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +0 -38
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +6 -42
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +0 -14
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +1 -19
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +0 -4
- package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk.umd.js +0 -4
- package/bundles/taiga-ui-cdk.umd.js.map +1 -1
- package/classes/assert.d.ts +0 -5
- package/classes/taiga-ui-cdk-classes.d.ts +0 -3
- package/coercion/coerce-boolean-property.d.ts +0 -4
- package/coercion/taiga-ui-cdk-coercion.d.ts +0 -3
- package/components/alert-host/alert-host.component.d.ts +2 -2
- package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +0 -3
- package/components/dialog-host/dialog-host.component.d.ts +0 -3
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +0 -3
- package/components/dropdown-host/dropdown-host.component.d.ts +0 -3
- package/components/dropdown-host/dropdown-portal.service.d.ts +0 -3
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +0 -3
- package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +0 -3
- package/components/taiga-ui-cdk-components.d.ts +0 -3
- package/constants/always-false-handler.d.ts +0 -3
- package/constants/always-true-handler.d.ts +0 -3
- package/constants/browser.d.ts +0 -4
- package/constants/empty.d.ts +0 -5
- package/constants/matcher.d.ts +0 -19
- package/constants/parent-animation.d.ts +0 -6
- package/constants/stringify.d.ts +0 -3
- package/constants/taiga-ui-cdk-constants.d.ts +0 -3
- package/constants/unicode-chars.d.ts +0 -51
- package/constants/used-icons.d.ts +1 -7
- package/date-time/date-fillers.d.ts +0 -11
- package/date-time/date-format.d.ts +0 -3
- package/date-time/date-separator.d.ts +0 -3
- package/date-time/day-range.d.ts +0 -33
- package/date-time/day.d.ts +0 -91
- package/date-time/month-range.d.ts +0 -3
- package/date-time/month.d.ts +0 -56
- package/date-time/taiga-ui-cdk-date-time.d.ts +0 -3
- package/date-time/time.d.ts +0 -36
- package/date-time/year.d.ts +0 -42
- package/decorators/debounce.d.ts +0 -4
- package/decorators/default-prop.d.ts +0 -9
- package/decorators/pure.d.ts +0 -18
- package/decorators/required-setter.d.ts +0 -9
- package/decorators/taiga-ui-cdk-decorators.d.ts +0 -3
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +0 -3
- package/directives/auto-focus/handlers/ios.handler.d.ts +0 -39
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +0 -3
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +0 -3
- package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +0 -3
- package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +0 -3
- package/directives/control/taiga-ui-cdk-directives-control.d.ts +0 -3
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +0 -3
- package/directives/drag/drag.directive.d.ts +0 -3
- package/directives/drag/drag.module.d.ts +0 -3
- package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +0 -3
- package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +0 -3
- package/directives/element/taiga-ui-cdk-directives-element.d.ts +0 -3
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +0 -3
- package/directives/focus-visible/focus-visible.directive.d.ts +0 -5
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +0 -3
- package/directives/focusable/focusable.directive.d.ts +0 -6
- package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +0 -3
- package/directives/focused/focused.directive.d.ts +0 -5
- package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +0 -3
- package/directives/for/taiga-ui-cdk-directives-for.d.ts +0 -3
- package/directives/for-async/for-async.module.d.ts +0 -3
- package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +0 -3
- package/directives/high-dpi/high-dpi.directive.d.ts +0 -3
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +0 -3
- package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +0 -3
- package/directives/item/item.directive.d.ts +0 -3
- package/directives/item/taiga-ui-cdk-directives-item.d.ts +0 -3
- package/directives/let/let-context.d.ts +0 -3
- package/directives/let/let.directive.d.ts +0 -10
- package/directives/let/taiga-ui-cdk-directives-let.d.ts +0 -3
- package/directives/media/taiga-ui-cdk-directives-media.d.ts +0 -3
- package/directives/obscured/obscured.directive.d.ts +0 -3
- package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +0 -3
- package/directives/overscroll/overscroll.directive.d.ts +0 -3
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +0 -3
- package/directives/pan/pan.module.d.ts +0 -3
- package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +0 -3
- package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +0 -3
- package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +0 -3
- package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +0 -3
- package/directives/prevent-default/prevent-default.directive.d.ts +0 -5
- package/directives/prevent-default/prevent-default.module.d.ts +0 -3
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +0 -3
- package/directives/repeat-times/repeat-times.directive.d.ts +0 -7
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +0 -3
- package/directives/resize/resize.module.d.ts +0 -3
- package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +0 -3
- package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +0 -3
- package/directives/swipe/swipe.module.d.ts +0 -3
- package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +0 -3
- package/directives/taiga-ui-cdk-directives.d.ts +0 -3
- package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +0 -3
- package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +0 -3
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +0 -3
- package/directives/zoom/zoom.module.d.ts +0 -3
- package/enums/taiga-ui-cdk-enums.d.ts +0 -3
- package/esm2015/abstract/control.js +1 -7
- package/esm2015/abstract/interactive.js +1 -11
- package/esm2015/abstract/portal-host.js +1 -4
- package/esm2015/abstract/portal-service.js +1 -4
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +1 -4
- package/esm2015/abstract/theme-switcher.js +1 -7
- package/esm2015/classes/assert.js +1 -6
- package/esm2015/classes/taiga-ui-cdk-classes.js +1 -4
- package/esm2015/coercion/coerce-boolean-property.js +1 -7
- package/esm2015/coercion/taiga-ui-cdk-coercion.js +1 -4
- package/esm2015/components/alert-host/alert-host.component.js +1 -5
- package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +1 -4
- package/esm2015/components/dialog-host/dialog-host.component.js +1 -8
- package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +1 -4
- package/esm2015/components/dropdown-host/dropdown-host.component.js +1 -4
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +1 -4
- package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +1 -4
- package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +1 -4
- package/esm2015/components/taiga-ui-cdk-components.js +1 -4
- package/esm2015/constants/always-false-handler.js +1 -5
- package/esm2015/constants/always-true-handler.js +1 -5
- package/esm2015/constants/browser.js +1 -5
- package/esm2015/constants/empty.js +1 -6
- package/esm2015/constants/matcher.js +1 -20
- package/esm2015/constants/parent-animation.js +1 -7
- package/esm2015/constants/stringify.js +1 -4
- package/esm2015/constants/svg-node-filter.js +1 -3
- package/esm2015/constants/taiga-ui-cdk-constants.js +1 -4
- package/esm2015/constants/unicode-chars.js +1 -52
- package/esm2015/constants/used-icons.js +1 -7
- package/esm2015/date-time/date-fillers.js +1 -12
- package/esm2015/date-time/date-format.js +1 -4
- package/esm2015/date-time/date-separator.js +1 -4
- package/esm2015/date-time/day-range.js +1 -34
- package/esm2015/date-time/day.js +1 -94
- package/esm2015/date-time/month-range.js +1 -4
- package/esm2015/date-time/month.js +1 -57
- package/esm2015/date-time/taiga-ui-cdk-date-time.js +1 -4
- package/esm2015/date-time/time.js +1 -37
- package/esm2015/date-time/year.js +1 -43
- package/esm2015/decorators/debounce.js +1 -5
- package/esm2015/decorators/default-prop.js +1 -10
- package/esm2015/decorators/required-setter.js +1 -10
- package/esm2015/decorators/taiga-ui-cdk-decorators.js +1 -4
- package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +1 -4
- package/esm2015/directives/auto-focus/autofocus.options.js +2 -3
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +1 -40
- package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +1 -4
- package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +1 -4
- package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +1 -4
- package/esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js +1 -4
- package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +1 -4
- package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +1 -4
- package/esm2015/directives/drag/drag.directive.js +1 -4
- package/esm2015/directives/drag/drag.module.js +1 -4
- package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +1 -4
- package/esm2015/directives/droppable/droppable.directive.js +1 -2
- package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +1 -4
- package/esm2015/directives/element/element.directive.js +1 -15
- package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +1 -4
- package/esm2015/directives/focus-trap/focus-trap.directive.js +1 -14
- package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +1 -4
- package/esm2015/directives/focus-visible/focus-visible.directive.js +1 -6
- package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +1 -4
- package/esm2015/directives/focusable/focusable.directive.js +1 -7
- package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +1 -4
- package/esm2015/directives/focused/focused.directive.js +1 -6
- package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +1 -4
- package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +1 -4
- package/esm2015/directives/for-async/for-async.module.js +1 -4
- package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +1 -4
- package/esm2015/directives/high-dpi/high-dpi.directive.js +1 -4
- package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +1 -4
- package/esm2015/directives/hovered/hovered.service.js +2 -4
- package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +1 -4
- package/esm2015/directives/item/item.directive.js +1 -4
- package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +1 -4
- package/esm2015/directives/let/let-context.js +1 -4
- package/esm2015/directives/let/let.directive.js +1 -11
- package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +1 -4
- package/esm2015/directives/media/media.directive.js +1 -4
- package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +1 -4
- package/esm2015/directives/obscured/obscured.directive.js +1 -4
- package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +1 -4
- package/esm2015/directives/overscroll/overscroll.directive.js +1 -7
- package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +1 -4
- package/esm2015/directives/pan/pan.module.js +1 -4
- package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +1 -4
- package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +1 -4
- package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +1 -4
- package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +1 -4
- package/esm2015/directives/prevent-default/prevent-default.directive.js +1 -6
- package/esm2015/directives/prevent-default/prevent-default.module.js +1 -4
- package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +1 -4
- package/esm2015/directives/repeat-times/repeat-times.directive.js +1 -8
- package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +1 -4
- package/esm2015/directives/resize/resize.module.js +1 -4
- package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +1 -4
- package/esm2015/directives/resizer/resizer.directive.js +1 -2
- package/esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js +1 -4
- package/esm2015/directives/swipe/swipe.module.js +1 -4
- package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +1 -4
- package/esm2015/directives/taiga-ui-cdk-directives.js +1 -4
- package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +1 -4
- package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +1 -4
- package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +1 -4
- package/esm2015/directives/zoom/zoom.module.js +1 -4
- package/esm2015/enums/day-of-week.js +1 -3
- package/esm2015/enums/month-number.js +1 -3
- package/esm2015/enums/taiga-ui-cdk-enums.js +1 -4
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +1 -4
- package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +1 -4
- package/esm2015/observables/control-value.js +1 -4
- package/esm2015/observables/drag-and-drop-from.js +1 -3
- package/esm2015/observables/focus-visible-observable.js +2 -6
- package/esm2015/observables/is-alive.js +1 -4
- package/esm2015/observables/items-query-list-observable.js +1 -7
- package/esm2015/observables/mouse-drag-finish-from.js +1 -5
- package/esm2015/observables/scroll-from.js +1 -4
- package/esm2015/observables/taiga-ui-cdk-observables.js +1 -4
- package/esm2015/observables/typed-from-event.js +1 -5
- package/esm2015/pipes/filter/filter.pipe.js +1 -1
- package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +1 -4
- package/esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js +1 -4
- package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +1 -4
- package/esm2015/pipes/mapper/mapper.pipe.js +1 -1
- package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +1 -4
- package/esm2015/pipes/replace/replace.pipe.js +2 -4
- package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +1 -4
- package/esm2015/pipes/taiga-ui-cdk-pipes.js +1 -4
- package/esm2015/services/destroy.service.js +1 -9
- package/esm2015/services/directive-styles.service.js +1 -4
- package/esm2015/services/focus-visible.service.js +1 -6
- package/esm2015/services/id.service.js +1 -4
- package/esm2015/services/obscured.service.js +2 -10
- package/esm2015/services/pan.service.js +2 -4
- package/esm2015/services/parents-scroll.service.js +2 -7
- package/esm2015/services/resize.service.js +2 -8
- package/esm2015/services/static-request.service.js +2 -5
- package/esm2015/services/taiga-ui-cdk-services.js +1 -4
- package/esm2015/taiga-ui-cdk.js +1 -4
- package/esm2015/tokens/active-element.js +4 -26
- package/esm2015/tokens/alerts.js +1 -4
- package/esm2015/tokens/default-renderer.js +2 -10
- package/esm2015/tokens/dialogs.js +1 -5
- package/esm2015/tokens/ensure-base-href.js +1 -4
- package/esm2015/tokens/focusable-item-accessor.js +1 -4
- package/esm2015/tokens/is-android.js +1 -4
- package/esm2015/tokens/is-apple.js +1 -4
- package/esm2015/tokens/is-chromium.js +1 -4
- package/esm2015/tokens/is-cypress.js +1 -5
- package/esm2015/tokens/is-e2e.js +1 -4
- package/esm2015/tokens/is-firefox.js +1 -4
- package/esm2015/tokens/is-ios.js +1 -4
- package/esm2015/tokens/is-mobile.js +1 -5
- package/esm2015/tokens/is-playwright.js +1 -4
- package/esm2015/tokens/is-webkit.js +1 -4
- package/esm2015/tokens/platform.js +1 -2
- package/esm2015/tokens/range.js +1 -4
- package/esm2015/tokens/removed-element.js +1 -4
- package/esm2015/tokens/scroll-ref.js +1 -4
- package/esm2015/tokens/swipe-options.js +1 -4
- package/esm2015/tokens/taiga-ui-cdk-tokens.js +1 -4
- package/esm2015/tokens/take-only-trusted-events.js +1 -7
- package/esm2015/tokens/window-height.js +1 -4
- package/esm2015/tokens/zoom-options.js +1 -4
- package/esm2015/types/mapper.js +1 -1
- package/esm2015/types/matcher.js +1 -1
- package/esm2015/types/taiga-ui-cdk-types.js +1 -4
- package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +1 -4
- package/esm2015/utils/color/hex-to-rgba.js +1 -2
- package/esm2015/utils/color/hsv-to-rgb.js +1 -4
- package/esm2015/utils/color/rgb-to-hsv.js +1 -2
- package/esm2015/utils/color/rgba-to-hex.js +1 -2
- package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +1 -4
- package/esm2015/utils/dom/element-checks.js +1 -2
- package/esm2015/utils/dom/get-actual-target.js +1 -4
- package/esm2015/utils/dom/get-clipboard-data-text.js +1 -4
- package/esm2015/utils/dom/get-element-obscurers.js +1 -10
- package/esm2015/utils/dom/get-element-offset.js +1 -8
- package/esm2015/utils/dom/get-scroll-parent.js +1 -7
- package/esm2015/utils/dom/get-selected-text.js +1 -9
- package/esm2015/utils/dom/is-inside-iframe.js +1 -4
- package/esm2015/utils/dom/is-node-in.js +1 -8
- package/esm2015/utils/dom/retarget-boundary-crossing.js +3 -3
- package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +1 -4
- package/esm2015/utils/focus/blur-native-focused.js +1 -4
- package/esm2015/utils/focus/get-closest-focusable.js +1 -5
- package/esm2015/utils/focus/get-native-focused.js +1 -6
- package/esm2015/utils/focus/is-native-focused-in.js +1 -8
- package/esm2015/utils/focus/is-native-focused.js +1 -9
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +1 -7
- package/esm2015/utils/focus/move-focus.js +1 -8
- package/esm2015/utils/focus/set-native-mouse-focused.js +1 -8
- package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +1 -4
- package/esm2015/utils/format/px.js +1 -4
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +1 -4
- package/esm2015/utils/math/clamp.js +1 -8
- package/esm2015/utils/math/normalize-to-int-number.js +1 -9
- package/esm2015/utils/math/quantize.js +1 -7
- package/esm2015/utils/math/round.js +1 -8
- package/esm2015/utils/math/sum.js +1 -4
- package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +1 -4
- package/esm2015/utils/math/to-radians.js +1 -4
- package/esm2015/utils/miscellaneous/create-options.js +1 -2
- package/esm2015/utils/miscellaneous/flat-length.js +1 -6
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +1 -7
- package/esm2015/utils/miscellaneous/is-number.js +1 -2
- package/esm2015/utils/miscellaneous/is-object.js +1 -2
- package/esm2015/utils/miscellaneous/is-string.js +1 -2
- package/esm2015/utils/miscellaneous/is-valid-url.js +7 -8
- package/esm2015/utils/miscellaneous/nullable-same.js +1 -9
- package/esm2015/utils/miscellaneous/object-from-entries.js +1 -9
- package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +1 -4
- package/esm2015/utils/os/is-apple-platform.js +1 -11
- package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +1 -4
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +2 -16
- package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +1 -4
- package/esm2015/utils/taiga-ui-cdk-utils.js +1 -4
- package/exceptions/taiga-ui-cdk-exceptions.d.ts +0 -3
- package/fesm2015/taiga-ui-cdk-abstract.js +0 -32
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +0 -9
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +0 -10
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +0 -8
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +0 -11
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +0 -10
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +0 -4
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components.js +0 -4
- package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +0 -108
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +0 -284
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +0 -26
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +1 -44
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-control.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +0 -10
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +0 -5
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +0 -18
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +0 -17
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +0 -9
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +0 -10
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +0 -9
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +1 -7
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +0 -17
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +0 -10
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-platform.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +0 -12
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +0 -11
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resizer.js +0 -5
- package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +0 -7
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives.js +0 -4
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +0 -8
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +0 -4
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js +1 -3
- package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +1 -34
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +1 -7
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes.js +0 -4
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +5 -52
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +4 -108
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-types.js +1 -3
- package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +0 -4
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +0 -10
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +2 -53
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +0 -51
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +0 -7
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +0 -38
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +6 -42
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +0 -14
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +1 -19
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js +0 -4
- package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
- package/fesm2015/taiga-ui-cdk.js +0 -4
- package/fesm2015/taiga-ui-cdk.js.map +1 -1
- package/interfaces/control-value-transformer.d.ts +0 -3
- package/interfaces/day-like.d.ts +0 -3
- package/interfaces/focusable-element-accessor.d.ts +0 -4
- package/interfaces/month-like.d.ts +0 -3
- package/interfaces/taiga-ui-cdk-interfaces.d.ts +0 -3
- package/interfaces/year-like.d.ts +0 -3
- package/observables/control-value.d.ts +0 -3
- package/observables/is-alive.d.ts +0 -3
- package/observables/items-query-list-observable.d.ts +0 -6
- package/observables/mouse-drag-finish-from.d.ts +0 -4
- package/observables/scroll-from.d.ts +0 -3
- package/observables/taiga-ui-cdk-observables.d.ts +0 -3
- package/package.json +1 -1
- package/pipes/filter/filter.pipe.d.ts +1 -8
- package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +0 -3
- package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +0 -3
- package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +0 -3
- package/pipes/mapper/mapper.pipe.d.ts +1 -8
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +0 -3
- package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +0 -3
- package/pipes/taiga-ui-cdk-pipes.d.ts +0 -3
- package/schematics/constants/file-globs.js +1 -3
- package/schematics/ng-add/index.js +0 -1
- package/schematics/ng-add/schema.d.ts +0 -12
- package/schematics/ng-update/steps/show-warnings.js +0 -5
- package/schematics/ng-update/v3/constants/breakpoints.js +0 -2
- package/schematics/ng-update/v3/constants/enums.js +0 -4
- package/schematics/ng-update/v3/constants/templates.d.ts +0 -5
- package/schematics/ng-update/v3/constants/templates.js +0 -5
- package/schematics/ng-update/v3/index.js +1 -5
- package/schematics/ng-update/v3/steps/migrate-date-time.js +0 -18
- package/schematics/ng-update/v3/steps/migrate-progress.js +1 -3
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +0 -6
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +0 -5
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +0 -1
- package/schematics/ng-update/v3/steps/migrate-templates.js +0 -1
- package/schematics/ng-update/v3/steps/miscellaneous.js +0 -4
- package/schematics/ng-update/v3/steps/replace-functions.js +1 -1
- package/schematics/ng-update/v3-30/index.js +0 -1
- package/schematics/ng-update/v3-35/index.js +0 -1
- package/schematics/ng-update/v3-36/index.js +0 -1
- package/schematics/ng-update/v3-40/index.js +0 -1
- package/schematics/ng-update/v3-5/index.js +0 -1
- package/schematics/ng-update/v4/index.js +4 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.d.ts +3 -0
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +84 -0
- package/schematics/ng-update/v4/steps/restore-tui-matcher.d.ts +3 -0
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +84 -0
- package/schematics/ng-update/v4/steps/utils/replace-substrings.d.ts +6 -0
- package/schematics/ng-update/v4/steps/utils/replace-substrings.js +19 -0
- package/schematics/utils/add-import-to-component.js +0 -1
- package/schematics/utils/angular/ng-module.d.ts +0 -3
- package/schematics/utils/angular/ng-module.js +0 -3
- package/schematics/utils/angular-json-manipulations.js +0 -7
- package/schematics/utils/colored-log.js +1 -1
- package/schematics/utils/get-projects.js +1 -3
- package/schematics/utils/is-ci.js +11 -13
- package/schematics/utils/progress.js +0 -1
- package/schematics/utils/push-to-array-property.js +0 -1
- package/schematics/utils/templates/elements.d.ts +0 -19
- package/schematics/utils/templates/elements.js +2 -26
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +0 -44
- package/schematics/utils/templates/ng-component-input-manipulations.js +1 -47
- package/services/destroy.service.d.ts +0 -8
- package/services/directive-styles.service.d.ts +0 -3
- package/services/focus-visible.service.d.ts +0 -5
- package/services/id.service.d.ts +0 -3
- package/services/obscured.service.d.ts +0 -5
- package/services/parents-scroll.service.d.ts +0 -3
- package/services/taiga-ui-cdk-services.d.ts +0 -3
- package/taiga-ui-cdk.d.ts +0 -3
- package/tokens/active-element.d.ts +0 -3
- package/tokens/alerts.d.ts +0 -3
- package/tokens/default-renderer.d.ts +0 -6
- package/tokens/dialogs.d.ts +0 -3
- package/tokens/ensure-base-href.d.ts +0 -3
- package/tokens/focusable-item-accessor.d.ts +0 -3
- package/tokens/is-android.d.ts +0 -3
- package/tokens/is-apple.d.ts +0 -3
- package/tokens/is-chromium.d.ts +0 -3
- package/tokens/is-cypress.d.ts +0 -4
- package/tokens/is-e2e.d.ts +0 -3
- package/tokens/is-firefox.d.ts +0 -3
- package/tokens/is-ios.d.ts +0 -3
- package/tokens/is-mobile.d.ts +0 -3
- package/tokens/is-playwright.d.ts +0 -3
- package/tokens/is-webkit.d.ts +0 -3
- package/tokens/range.d.ts +0 -3
- package/tokens/removed-element.d.ts +0 -3
- package/tokens/scroll-ref.d.ts +0 -3
- package/tokens/swipe-options.d.ts +0 -3
- package/tokens/taiga-ui-cdk-tokens.d.ts +0 -3
- package/tokens/take-only-trusted-events.d.ts +0 -6
- package/tokens/window-height.d.ts +0 -3
- package/tokens/zoom-options.d.ts +0 -3
- package/types/autocomplete.d.ts +0 -1
- package/types/date-mode.d.ts +0 -5
- package/types/event-with.d.ts +0 -3
- package/types/mapper.d.ts +1 -10
- package/types/matcher.d.ts +2 -11
- package/types/taiga-ui-cdk-types.d.ts +0 -3
- package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +0 -3
- package/utils/color/hsv-to-rgb.d.ts +0 -3
- package/utils/color/taiga-ui-cdk-utils-color.d.ts +0 -3
- package/utils/dom/get-actual-target.d.ts +0 -3
- package/utils/dom/get-clipboard-data-text.d.ts +0 -3
- package/utils/dom/get-element-obscurers.d.ts +0 -9
- package/utils/dom/get-element-offset.d.ts +0 -7
- package/utils/dom/get-scroll-parent.d.ts +0 -6
- package/utils/dom/get-selected-text.d.ts +0 -8
- package/utils/dom/is-inside-iframe.d.ts +0 -3
- package/utils/dom/is-node-in.d.ts +0 -7
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +0 -3
- package/utils/focus/blur-native-focused.d.ts +0 -3
- package/utils/focus/get-closest-focusable.d.ts +0 -20
- package/utils/focus/get-native-focused.d.ts +0 -5
- package/utils/focus/is-native-focused-in.d.ts +0 -6
- package/utils/focus/is-native-focused.d.ts +0 -8
- package/utils/focus/is-native-keyboard-focusable.d.ts +0 -6
- package/utils/focus/move-focus.d.ts +0 -7
- package/utils/focus/set-native-mouse-focused.d.ts +0 -7
- package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +0 -3
- package/utils/format/px.d.ts +0 -3
- package/utils/format/taiga-ui-cdk-utils-format.d.ts +0 -3
- package/utils/math/clamp.d.ts +0 -7
- package/utils/math/normalize-to-int-number.d.ts +0 -8
- package/utils/math/quantize.d.ts +0 -6
- package/utils/math/sum.d.ts +0 -3
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +0 -3
- package/utils/math/to-radians.d.ts +0 -3
- package/utils/miscellaneous/create-options.d.ts +0 -1
- package/utils/miscellaneous/flat-length.d.ts +0 -5
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -6
- package/utils/miscellaneous/is-string.js +0 -1
- package/utils/miscellaneous/nullable-same.d.ts +0 -8
- package/utils/miscellaneous/object-from-entries.d.ts +0 -8
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +0 -3
- package/utils/os/is-apple-platform.d.ts +0 -10
- package/utils/os/taiga-ui-cdk-utils-os.d.ts +0 -3
- package/utils/svg/svg-linear-gradient-processor.d.ts +0 -14
- package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +0 -3
- package/utils/taiga-ui-cdk-utils.d.ts +0 -3
@@ -12,7 +12,6 @@ const get_component_templates_1 = require("../../../../utils/templates/get-compo
|
|
12
12
|
const ng_component_input_manipulations_1 = require("../../../../utils/templates/ng-component-input-manipulations");
|
13
13
|
function migrateInputSlider(fileSystem, options) {
|
14
14
|
const templateResources = get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES);
|
15
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
16
15
|
const COMPONENTS_WITH_MIN_MAX_LABELS = new Set();
|
17
16
|
let progressLog = progress_1.setupProgressLogger({
|
18
17
|
total: templateResources.length,
|
@@ -22,10 +21,6 @@ function migrateInputSlider(fileSystem, options) {
|
|
22
21
|
!options[`skip-logs`] && progressLog(templateResource.componentPath);
|
23
22
|
replaceMinMaxLabels(templateResource, fileSystem, COMPONENTS_WITH_MIN_MAX_LABELS);
|
24
23
|
}
|
25
|
-
/**
|
26
|
-
* We should update virtual file tree
|
27
|
-
* otherwise all following ng-morph commands will overwrite all previous template manipulations
|
28
|
-
* */
|
29
24
|
fileSystem.commitEdits();
|
30
25
|
ng_morph_1.saveActiveProject();
|
31
26
|
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
@@ -24,7 +24,6 @@ function migrateTaigaProprietaryIcons(options) {
|
|
24
24
|
null;
|
25
25
|
}
|
26
26
|
catch (_b) {
|
27
|
-
// noop
|
28
27
|
}
|
29
28
|
if (yield angular_json_manipulations_1.isInvalidAngularJson(tree)) {
|
30
29
|
context.logger.warn(`[WARNING]: Schematics don't support this version of angular.json. ${MANUAL_MIGRATION_TIPS}`);
|
@@ -167,7 +167,6 @@ function addEditorProviders({ resource, fileSystem, }) {
|
|
167
167
|
add_unique_import_1.addUniqueImport(componentPath, `defaultEditorExtensions`, `@taiga-ui/addon-editor`);
|
168
168
|
}
|
169
169
|
}
|
170
|
-
// eslint-disable-next-line unicorn/no-unsafe-regex
|
171
170
|
const HIDE_SELECTED_PIPE_WITH_ARGS_REG = /\|\s*tuiHideSelected(\s*:\s*[^|'"]*)?/gi;
|
172
171
|
function migrateTuiHideSelectedPipe({ resource, fileSystem, recorder, }) {
|
173
172
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
@@ -74,7 +74,7 @@ function replaceClosestElement(references) {
|
|
74
74
|
else if (ng_morph_1.Node.isCallExpression(parent)) {
|
75
75
|
const [firstArg, secondArg] = parent.getArguments();
|
76
76
|
const firstArgText = firstArg.getText();
|
77
|
-
const element = firstArgText.includes(` as `)
|
77
|
+
const element = firstArgText.includes(` as `)
|
78
78
|
? `(${firstArgText})`
|
79
79
|
: firstArgText;
|
80
80
|
parent.replaceWithText(`${element}.closest(${secondArg.getText()})`);
|
@@ -8,7 +8,6 @@ const get_file_system_1 = require("../utils/get-file-system");
|
|
8
8
|
const replace_text_1 = require("../utils/replace-text");
|
9
9
|
const constants_1 = require("./constants/constants");
|
10
10
|
const icons_1 = require("./constants/icons");
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
12
11
|
function updateToV3_30(options) {
|
13
12
|
return (tree, _) => {
|
14
13
|
if (!hasProprietaryIcons(tree)) {
|
@@ -8,7 +8,6 @@ const get_file_system_1 = require("../utils/get-file-system");
|
|
8
8
|
const replace_text_1 = require("../utils/replace-text");
|
9
9
|
const constants_1 = require("./constants/constants");
|
10
10
|
const icons_1 = require("./constants/icons");
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
12
11
|
function updateToV3_35(options) {
|
13
12
|
return (tree, _) => {
|
14
13
|
if (!hasProprietaryIcons(tree)) {
|
@@ -10,7 +10,6 @@ const replace_text_1 = require("../utils/replace-text");
|
|
10
10
|
const OLD_PACKAGE = `@taiga-ui/addon-editor`;
|
11
11
|
const NEW_PACKAGE = `@tinkoff/tui-editor`;
|
12
12
|
const NEW_PACKAGE_VERSION = `^1.0.1`;
|
13
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
14
13
|
function updateToV3_36(options) {
|
15
14
|
return (tree, context) => {
|
16
15
|
if (!ng_morph_1.getPackageJsonDependency(tree, OLD_PACKAGE)) {
|
@@ -11,7 +11,6 @@ const get_component_templates_1 = require("../../utils/templates/get-component-t
|
|
11
11
|
const template_resource_1 = require("../../utils/templates/template-resource");
|
12
12
|
const get_file_system_1 = require("../utils/get-file-system");
|
13
13
|
const replace_text_1 = require("../utils/replace-text");
|
14
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
15
14
|
function updateToV3_40(options) {
|
16
15
|
return (tree, _) => {
|
17
16
|
const fileSystem = get_file_system_1.getFileSystem(tree);
|
@@ -6,7 +6,6 @@ const versions_1 = require("../../ng-add/constants/versions");
|
|
6
6
|
const colored_log_1 = require("../../utils/colored-log");
|
7
7
|
const get_file_system_1 = require("../utils/get-file-system");
|
8
8
|
const migrate_expand_templates_1 = require("./steps/migrate-expand-templates");
|
9
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
10
9
|
function updateToV3_5(options) {
|
11
10
|
return (tree, _) => {
|
12
11
|
const fileSystem = get_file_system_1.getFileSystem(tree);
|
@@ -1,19 +1,22 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.updateToV4 = void 0;
|
4
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
5
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
6
5
|
const perf_hooks_1 = require("perf_hooks");
|
7
6
|
const versions_1 = require("../../ng-add/constants/versions");
|
8
7
|
const colored_log_1 = require("../../utils/colored-log");
|
9
8
|
const get_execution_time_1 = require("../../utils/get-execution-time");
|
10
9
|
const replace_thumbnail_card_1 = require("./steps/replace-thumbnail-card");
|
10
|
+
const restore_tui_mapper_1 = require("./steps/restore-tui-mapper");
|
11
|
+
const restore_tui_matcher_1 = require("./steps/restore-tui-matcher");
|
11
12
|
function updateToV4(options) {
|
12
13
|
const t0 = perf_hooks_1.performance.now();
|
13
14
|
!options[`skip-logs`] &&
|
14
15
|
colored_log_1.titleLog(`\n\n${colored_log_1.START_SYMBOL} Your packages will be updated to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
15
16
|
return schematics_1.chain([
|
16
17
|
replace_thumbnail_card_1.replaceThumbnailCard(options),
|
18
|
+
restore_tui_mapper_1.restoreTuiMapper(options),
|
19
|
+
restore_tui_matcher_1.restoreTuiMatcher(options),
|
17
20
|
() => {
|
18
21
|
const executionTime = get_execution_time_1.getExecutionTime(t0, perf_hooks_1.performance.now());
|
19
22
|
!options[`skip-logs`] &&
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.restoreTuiMapper = void 0;
|
4
|
+
const ng_morph_1 = require("ng-morph");
|
5
|
+
const ts_morph_1 = require("ts-morph");
|
6
|
+
const constants_1 = require("../../../constants");
|
7
|
+
const colored_log_1 = require("../../../utils/colored-log");
|
8
|
+
const project_root_1 = require("../../../utils/project-root");
|
9
|
+
const get_file_system_1 = require("../../utils/get-file-system");
|
10
|
+
const replace_substrings_1 = require("./utils/replace-substrings");
|
11
|
+
function restoreTuiMapper(options) {
|
12
|
+
return (tree, _) => {
|
13
|
+
const fileSystem = get_file_system_1.getFileSystem(tree);
|
14
|
+
updateTuiMapper(options, fileSystem);
|
15
|
+
renameTuiTypedMapper(options, fileSystem);
|
16
|
+
!options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
17
|
+
};
|
18
|
+
}
|
19
|
+
exports.restoreTuiMapper = restoreTuiMapper;
|
20
|
+
function updateTuiMapper(options, fileSystem) {
|
21
|
+
!options[`skip-logs`] &&
|
22
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} updating TuiMapper typing to the typed version`);
|
23
|
+
ng_morph_1.getSourceFiles(constants_1.ALL_TS_FILES).forEach(sourceFile => {
|
24
|
+
const replacements = findTuiMapperFirstTypeArgReplacements(sourceFile);
|
25
|
+
const sourceText = sourceFile.getFullText();
|
26
|
+
const transformed = replace_substrings_1.replaceSubstrings(sourceText, replacements);
|
27
|
+
sourceFile.replaceWithText(transformed);
|
28
|
+
});
|
29
|
+
fileSystem.commitEdits();
|
30
|
+
ng_morph_1.saveActiveProject();
|
31
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
32
|
+
}
|
33
|
+
function findTuiMapperFirstTypeArgReplacements(sourceFile) {
|
34
|
+
const replacements = [];
|
35
|
+
sourceFile.transform(traversal => {
|
36
|
+
const node = traversal.visitChildren();
|
37
|
+
if (!ts_morph_1.ts.isTypeReferenceNode(node) || node.typeName.getText() !== `TuiMapper`) {
|
38
|
+
return node;
|
39
|
+
}
|
40
|
+
const typeArguments = node.typeArguments;
|
41
|
+
if (!typeArguments || typeArguments.length !== 2) {
|
42
|
+
return node;
|
43
|
+
}
|
44
|
+
const [inputType] = typeArguments;
|
45
|
+
replacements.push({
|
46
|
+
start: inputType.getStart(),
|
47
|
+
from: inputType.getText(),
|
48
|
+
to: `[${inputType.getText()}, ...any]`,
|
49
|
+
});
|
50
|
+
return node;
|
51
|
+
});
|
52
|
+
return replacements;
|
53
|
+
}
|
54
|
+
function renameTuiTypedMapper(options, fileSystem) {
|
55
|
+
!options[`skip-logs`] &&
|
56
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} renaming TuiTypedMapper to TuiMapper`);
|
57
|
+
ng_morph_1.getSourceFiles(constants_1.ALL_TS_FILES).forEach(sourceFile => {
|
58
|
+
const replacements = findTuiTypedMapperReplacements(sourceFile);
|
59
|
+
const sourceText = sourceFile.getFullText();
|
60
|
+
const transformed = replace_substrings_1.replaceSubstrings(sourceText, replacements);
|
61
|
+
sourceFile.replaceWithText(transformed);
|
62
|
+
sourceFile.organizeImports();
|
63
|
+
});
|
64
|
+
fileSystem.commitEdits();
|
65
|
+
ng_morph_1.saveActiveProject();
|
66
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
67
|
+
}
|
68
|
+
function findTuiTypedMapperReplacements(sourceFile) {
|
69
|
+
const replacements = [];
|
70
|
+
sourceFile.transform(traversal => {
|
71
|
+
const node = traversal.visitChildren();
|
72
|
+
if (!ts_morph_1.ts.isTypeReferenceNode(node) ||
|
73
|
+
node.typeName.getText() !== `TuiTypedMapper`) {
|
74
|
+
return node;
|
75
|
+
}
|
76
|
+
replacements.push({
|
77
|
+
start: node.getStart(),
|
78
|
+
from: `TuiTypedMapper`,
|
79
|
+
to: `TuiMapper`,
|
80
|
+
});
|
81
|
+
return node;
|
82
|
+
});
|
83
|
+
return replacements;
|
84
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.restoreTuiMatcher = void 0;
|
4
|
+
const ng_morph_1 = require("ng-morph");
|
5
|
+
const ts_morph_1 = require("ts-morph");
|
6
|
+
const constants_1 = require("../../../constants");
|
7
|
+
const colored_log_1 = require("../../../utils/colored-log");
|
8
|
+
const project_root_1 = require("../../../utils/project-root");
|
9
|
+
const get_file_system_1 = require("../../utils/get-file-system");
|
10
|
+
const replace_substrings_1 = require("./utils/replace-substrings");
|
11
|
+
function restoreTuiMatcher(options) {
|
12
|
+
return (tree, _) => {
|
13
|
+
const fileSystem = get_file_system_1.getFileSystem(tree);
|
14
|
+
updateTuiMatcher(options, fileSystem);
|
15
|
+
renameTuiTypedMatcher(options, fileSystem);
|
16
|
+
!options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
17
|
+
};
|
18
|
+
}
|
19
|
+
exports.restoreTuiMatcher = restoreTuiMatcher;
|
20
|
+
function updateTuiMatcher(options, fileSystem) {
|
21
|
+
!options[`skip-logs`] &&
|
22
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} updating TuiMatcher typing to the typed version`);
|
23
|
+
ng_morph_1.getSourceFiles(constants_1.ALL_TS_FILES).forEach(sourceFile => {
|
24
|
+
const replacements = findTuiMatcherFirstTypeArgReplacements(sourceFile);
|
25
|
+
const sourceText = sourceFile.getFullText();
|
26
|
+
const transformed = replace_substrings_1.replaceSubstrings(sourceText, replacements);
|
27
|
+
sourceFile.replaceWithText(transformed);
|
28
|
+
});
|
29
|
+
fileSystem.commitEdits();
|
30
|
+
ng_morph_1.saveActiveProject();
|
31
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
32
|
+
}
|
33
|
+
function findTuiMatcherFirstTypeArgReplacements(sourceFile) {
|
34
|
+
const replacements = [];
|
35
|
+
sourceFile.transform(traversal => {
|
36
|
+
const node = traversal.visitChildren();
|
37
|
+
if (!ts_morph_1.ts.isTypeReferenceNode(node) || node.typeName.getText() !== `TuiMatcher`) {
|
38
|
+
return node;
|
39
|
+
}
|
40
|
+
const typeArguments = node.typeArguments;
|
41
|
+
if (!typeArguments || typeArguments.length !== 1) {
|
42
|
+
return node;
|
43
|
+
}
|
44
|
+
const [inputType] = typeArguments;
|
45
|
+
replacements.push({
|
46
|
+
start: inputType.getStart(),
|
47
|
+
from: inputType.getText(),
|
48
|
+
to: `[${inputType.getText()}, ...any]`,
|
49
|
+
});
|
50
|
+
return node;
|
51
|
+
});
|
52
|
+
return replacements;
|
53
|
+
}
|
54
|
+
function renameTuiTypedMatcher(options, fileSystem) {
|
55
|
+
!options[`skip-logs`] &&
|
56
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} renaming TuiTypedMatcher to TuiMatcher`);
|
57
|
+
ng_morph_1.getSourceFiles(constants_1.ALL_TS_FILES).forEach(sourceFile => {
|
58
|
+
const replacements = findTuiTypedMatcherReplacements(sourceFile);
|
59
|
+
const sourceText = sourceFile.getFullText();
|
60
|
+
const transformed = replace_substrings_1.replaceSubstrings(sourceText, replacements);
|
61
|
+
sourceFile.replaceWithText(transformed);
|
62
|
+
sourceFile.organizeImports();
|
63
|
+
});
|
64
|
+
fileSystem.commitEdits();
|
65
|
+
ng_morph_1.saveActiveProject();
|
66
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
67
|
+
}
|
68
|
+
function findTuiTypedMatcherReplacements(sourceFile) {
|
69
|
+
const replacements = [];
|
70
|
+
sourceFile.transform(traversal => {
|
71
|
+
const node = traversal.visitChildren();
|
72
|
+
if (!ts_morph_1.ts.isTypeReferenceNode(node) ||
|
73
|
+
node.typeName.getText() !== `TuiTypedMatcher`) {
|
74
|
+
return node;
|
75
|
+
}
|
76
|
+
replacements.push({
|
77
|
+
start: node.getStart(),
|
78
|
+
from: `TuiTypedMatcher`,
|
79
|
+
to: `TuiMatcher`,
|
80
|
+
});
|
81
|
+
return node;
|
82
|
+
});
|
83
|
+
return replacements;
|
84
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.replaceSubstrings = void 0;
|
4
|
+
function replaceSubstring(text, replacement) {
|
5
|
+
return (text.slice(0, replacement.start) +
|
6
|
+
replacement.to +
|
7
|
+
text.slice(replacement.start + replacement.from.length));
|
8
|
+
}
|
9
|
+
function replaceSubstrings(text, replacements) {
|
10
|
+
let transformed = text;
|
11
|
+
let acc = 0;
|
12
|
+
for (const replacement of replacements) {
|
13
|
+
replacement.start += acc;
|
14
|
+
transformed = replaceSubstring(transformed, replacement);
|
15
|
+
acc += replacement.to.length - replacement.from.length;
|
16
|
+
}
|
17
|
+
return transformed;
|
18
|
+
}
|
19
|
+
exports.replaceSubstrings = replaceSubstrings;
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.addImportToComponent = void 0;
|
4
4
|
const push_to_array_property_1 = require("ng-morph/ng/helpers/push-to-array-property");
|
5
|
-
// TODO: delete after adding to ng-morph
|
6
5
|
function addImportToComponent(classDeclaration, moduleName, { unique = true } = {}) {
|
7
6
|
push_to_array_property_1.pushToArrayProperty(classDeclaration, `Component`, `imports`, moduleName, {
|
8
7
|
unique,
|
@@ -1,6 +1,3 @@
|
|
1
1
|
import { ClassDeclaration, Pattern, Query, StructureType } from 'ng-morph';
|
2
2
|
export declare function getNgModules(pattern: Pattern, query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>>): ClassDeclaration[];
|
3
|
-
/**
|
4
|
-
* Find NgModule where the component was declared.
|
5
|
-
*/
|
6
3
|
export declare function findNgModule(ngComponent: ClassDeclaration): ClassDeclaration | null;
|
@@ -7,9 +7,6 @@ function getNgModules(pattern, query) {
|
|
7
7
|
return ng_morph_1.getClasses(pattern, query).filter(declaration => !!declaration.getDecorator(`NgModule`));
|
8
8
|
}
|
9
9
|
exports.getNgModules = getNgModules;
|
10
|
-
/**
|
11
|
-
* Find NgModule where the component was declared.
|
12
|
-
*/
|
13
10
|
function findNgModule(ngComponent) {
|
14
11
|
const allNgModules = getNgModules(constants_1.ALL_TS_FILES);
|
15
12
|
return (allNgModules.find(module => {
|
@@ -12,13 +12,7 @@ const get_projects_1 = require("./get-projects");
|
|
12
12
|
function isInvalidAngularJson(tree) {
|
13
13
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
14
14
|
return (workspace_1.getWorkspace(tree)
|
15
|
-
// eslint-disable-next-line no-restricted-syntax
|
16
15
|
.then(() => false)
|
17
|
-
/**
|
18
|
-
* Possible error – "Invalid format version detected - Expected:[ 1 ] Found: [ 2 ]"
|
19
|
-
* @see https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader.ts#L67-L69
|
20
|
-
*/
|
21
|
-
// eslint-disable-next-line no-restricted-syntax
|
22
16
|
.catch(() => true));
|
23
17
|
});
|
24
18
|
}
|
@@ -32,7 +26,6 @@ function hasTaigaIcons(assets) {
|
|
32
26
|
}));
|
33
27
|
}
|
34
28
|
function addStylesToAngularJson(options, context, taigaStyles, filter, stylesToReplace, tree) {
|
35
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
36
29
|
const MANUAL_MIGRATION_TIPS = `Add styles ${taigaStyles.join(`,`)} to angular.json manually.`;
|
37
30
|
return workspace_1.updateWorkspace(workspace => {
|
38
31
|
const projects = get_projects_1.getProjects(options, workspace);
|
@@ -21,7 +21,7 @@ function titleLog(message) {
|
|
21
21
|
console.info(`\x1B[35m`, message);
|
22
22
|
}
|
23
23
|
exports.titleLog = titleLog;
|
24
|
-
exports.SMALL_TAB_SYMBOL = ` `;
|
24
|
+
exports.SMALL_TAB_SYMBOL = ` `;
|
25
25
|
exports.START_SYMBOL = `🚀`;
|
26
26
|
exports.FINISH_SYMBOL = `🏆`;
|
27
27
|
exports.REPLACE_SYMBOL = `⚡️`;
|
@@ -6,9 +6,7 @@ function getProjects(options, workspace) {
|
|
6
6
|
const projects = Array.from(workspace.projects.entries())
|
7
7
|
.filter(([_, project]) => project.targets.get(`build`))
|
8
8
|
.map(([_, project]) => project);
|
9
|
-
const nameFromContext =
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
11
|
-
options.project || ((_a = workspace.extensions.defaultProject) === null || _a === void 0 ? void 0 : _a.toString()) || ``;
|
9
|
+
const nameFromContext = options.project || ((_a = workspace.extensions.defaultProject) === null || _a === void 0 ? void 0 : _a.toString()) || ``;
|
12
10
|
const projectFromContext = workspace.projects.get(nameFromContext);
|
13
11
|
return projectFromContext ? [projectFromContext] : projects;
|
14
12
|
}
|
@@ -1,20 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
/// <reference types="node" />
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
3
|
exports.tuiIsCI = void 0;
|
5
4
|
function tuiIsCI() {
|
6
5
|
return (process.env.TUI_CI === `true` ||
|
7
|
-
!!process.env.CI ||
|
8
|
-
!!process.env.GITHUB_ACTION ||
|
9
|
-
!!process.env.GITLAB_CI ||
|
10
|
-
!!process.env.CIRCLECI ||
|
11
|
-
!!process.env.TF_BUILD ||
|
12
|
-
!!process.env.CIRRUS_CI ||
|
13
|
-
!!process.env.BUILDKITE ||
|
14
|
-
!!process.env.HEROKU_TEST_RUN_ID ||
|
15
|
-
!!process.env.CODEBUILD_BUILD_ID ||
|
16
|
-
!!process.env.TEAMCITY_VERSION ||
|
17
|
-
!!process.env.BUILD_ID
|
18
|
-
);
|
6
|
+
!!process.env.CI ||
|
7
|
+
!!process.env.GITHUB_ACTION ||
|
8
|
+
!!process.env.GITLAB_CI ||
|
9
|
+
!!process.env.CIRCLECI ||
|
10
|
+
!!process.env.TF_BUILD ||
|
11
|
+
!!process.env.CIRRUS_CI ||
|
12
|
+
!!process.env.BUILDKITE ||
|
13
|
+
!!process.env.HEROKU_TEST_RUN_ID ||
|
14
|
+
!!process.env.CODEBUILD_BUILD_ID ||
|
15
|
+
!!process.env.TEAMCITY_VERSION ||
|
16
|
+
!!process.env.BUILD_ID);
|
19
17
|
}
|
20
18
|
exports.tuiIsCI = tuiIsCI;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.setupProgressLogger = void 0;
|
4
|
-
/// <reference types="node" />
|
5
4
|
const readline_1 = require("readline");
|
6
5
|
const colored_log_1 = require("./colored-log");
|
7
6
|
const is_ci_1 = require("./is-ci");
|
@@ -21,7 +21,6 @@ function pushToObjectArrayProperty(objectExpression, propertyName, initializer,
|
|
21
21
|
.some(element => element.getText() === initializer)) {
|
22
22
|
return;
|
23
23
|
}
|
24
|
-
// eslint-disable-next-line @taiga-ui/experience/no-typeof
|
25
24
|
if (typeof index === `number`) {
|
26
25
|
importsInitializer.insertElement(index, initializer);
|
27
26
|
}
|
@@ -3,28 +3,9 @@ export declare function findElementsByFn(nodes: ChildNode[], predicateFn: (el: E
|
|
3
3
|
export declare function findElementsInTemplateByFn(html: string, predicateFn: (el: Element) => boolean): Element[];
|
4
4
|
export declare function findElementsByTagName(html: string, tagName: string): Element[];
|
5
5
|
export declare function findElementsByTagNames(html: string, tagNames: string[]): Element[];
|
6
|
-
/**
|
7
|
-
* Parses a HTML fragment and traverses all AST nodes in order find elements that
|
8
|
-
* include the specified attribute.
|
9
|
-
*/
|
10
6
|
export declare function findElementsWithAttribute(html: string, attributeName: string): Element[];
|
11
|
-
/**
|
12
|
-
* Parses a HTML fragment and traverses all AST nodes in order find elements that include the specified attribute and tag name.
|
13
|
-
* @param html
|
14
|
-
* @param attributeName
|
15
|
-
*/
|
16
7
|
export declare function findElementsWithAttributeOnTag(html: string, attributeNames: string[], tagNames?: string[]): Element[];
|
17
|
-
/**
|
18
|
-
* Finds elements with explicit tag names that also contain the specified attribute. Returns the
|
19
|
-
* attribute start offset based on the specified HTML.
|
20
|
-
*/
|
21
8
|
export declare function findAttributeOnElementWithTag(html: string, name: string, tagNames: string[], filterFn?: (element: Element) => boolean): number[];
|
22
|
-
/**
|
23
|
-
* Finds elements that contain the given attribute and contain at least one of the other
|
24
|
-
* specified attributes. Returns the primary attribute's start offset based on the specified HTML.
|
25
|
-
*/
|
26
9
|
export declare function findAttributeOnElementWithAttrs(html: string, name: string, attrs: string[], filterFn?: (element: Element) => boolean): number[];
|
27
|
-
/** Shorthand function that checks if the specified element contains the given attribute. */
|
28
10
|
export declare function hasElementAttribute(element: Element, attributeName: string): boolean;
|
29
|
-
/** Gets the start offset of the given attribute from a Parse5 element. */
|
30
11
|
export declare function getStartOffsetOfAttribute(element: Element, attributeName: string): number;
|
@@ -20,7 +20,6 @@ function findElementsByFn(nodes, predicateFn) {
|
|
20
20
|
}
|
21
21
|
exports.findElementsByFn = findElementsByFn;
|
22
22
|
function findElementsInTemplateByFn(html, predicateFn) {
|
23
|
-
// utf8 with BOM adds an extra character to the beginning of the string
|
24
23
|
if (html.charCodeAt(0) === 0xfeff) {
|
25
24
|
html = html.slice(1);
|
26
25
|
}
|
@@ -36,19 +35,10 @@ function findElementsByTagNames(html, tagNames) {
|
|
36
35
|
return findElementsInTemplateByFn(html, el => tagNames.includes(el.tagName));
|
37
36
|
}
|
38
37
|
exports.findElementsByTagNames = findElementsByTagNames;
|
39
|
-
/**
|
40
|
-
* Parses a HTML fragment and traverses all AST nodes in order find elements that
|
41
|
-
* include the specified attribute.
|
42
|
-
*/
|
43
38
|
function findElementsWithAttribute(html, attributeName) {
|
44
39
|
return findElementsInTemplateByFn(html, el => { var _a; return (_a = el.attrs) === null || _a === void 0 ? void 0 : _a.some(attr => attr.name === attributeName.toLowerCase()); });
|
45
40
|
}
|
46
41
|
exports.findElementsWithAttribute = findElementsWithAttribute;
|
47
|
-
/**
|
48
|
-
* Parses a HTML fragment and traverses all AST nodes in order find elements that include the specified attribute and tag name.
|
49
|
-
* @param html
|
50
|
-
* @param attributeName
|
51
|
-
*/
|
52
42
|
function findElementsWithAttributeOnTag(html, attributeNames, tagNames = []) {
|
53
43
|
return findElementsInTemplateByFn(html, el => {
|
54
44
|
var _a;
|
@@ -57,39 +47,25 @@ function findElementsWithAttributeOnTag(html, attributeNames, tagNames = []) {
|
|
57
47
|
});
|
58
48
|
}
|
59
49
|
exports.findElementsWithAttributeOnTag = findElementsWithAttributeOnTag;
|
60
|
-
|
61
|
-
* Finds elements with explicit tag names that also contain the specified attribute. Returns the
|
62
|
-
* attribute start offset based on the specified HTML.
|
63
|
-
*/
|
64
|
-
function findAttributeOnElementWithTag(html, name, tagNames,
|
65
|
-
// eslint-disable-next-line no-restricted-syntax
|
66
|
-
filterFn = () => true) {
|
50
|
+
function findAttributeOnElementWithTag(html, name, tagNames, filterFn = () => true) {
|
67
51
|
return findElementsWithAttribute(html, name)
|
68
52
|
.filter(element => (tagNames.includes(element.tagName) || tagNames.includes(`*`)) &&
|
69
53
|
filterFn(element))
|
70
54
|
.map(element => getStartOffsetOfAttribute(element, name));
|
71
55
|
}
|
72
56
|
exports.findAttributeOnElementWithTag = findAttributeOnElementWithTag;
|
73
|
-
|
74
|
-
* Finds elements that contain the given attribute and contain at least one of the other
|
75
|
-
* specified attributes. Returns the primary attribute's start offset based on the specified HTML.
|
76
|
-
*/
|
77
|
-
function findAttributeOnElementWithAttrs(html, name, attrs,
|
78
|
-
// eslint-disable-next-line no-restricted-syntax
|
79
|
-
filterFn = () => true) {
|
57
|
+
function findAttributeOnElementWithAttrs(html, name, attrs, filterFn = () => true) {
|
80
58
|
return findElementsWithAttribute(html, name)
|
81
59
|
.filter(element => attrs.some(attr => hasElementAttribute(element, attr)) &&
|
82
60
|
filterFn(element))
|
83
61
|
.map(element => getStartOffsetOfAttribute(element, name));
|
84
62
|
}
|
85
63
|
exports.findAttributeOnElementWithAttrs = findAttributeOnElementWithAttrs;
|
86
|
-
/** Shorthand function that checks if the specified element contains the given attribute. */
|
87
64
|
function hasElementAttribute(element, attributeName) {
|
88
65
|
var _a;
|
89
66
|
return (_a = element.attrs) === null || _a === void 0 ? void 0 : _a.some(attr => attr.name === attributeName.toLowerCase());
|
90
67
|
}
|
91
68
|
exports.hasElementAttribute = hasElementAttribute;
|
92
|
-
/** Gets the start offset of the given attribute from a Parse5 element. */
|
93
69
|
function getStartOffsetOfAttribute(element, attributeName) {
|
94
70
|
var _a, _b, _c;
|
95
71
|
return (((_c = (_b = (_a = element.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b[attributeName.toLowerCase()]) === null || _c === void 0 ? void 0 : _c.startOffset) || 0);
|
@@ -1,31 +1,6 @@
|
|
1
1
|
import { DevkitFileSystem } from 'ng-morph/project/classes/devkit-file-system';
|
2
2
|
import { Element } from 'parse5';
|
3
3
|
import { TemplateResource } from '../../ng-update/interfaces/template-resource';
|
4
|
-
/**
|
5
|
-
* Replace component input property by new value
|
6
|
-
* ___
|
7
|
-
* Example:
|
8
|
-
* 1. Before
|
9
|
-
* ```html
|
10
|
-
* <tui-input-slider secondary="123"></tui-input-slider>
|
11
|
-
* ```
|
12
|
-
* 2. Execute
|
13
|
-
* ```ts
|
14
|
-
* const wasModified = replaceInputProperty({
|
15
|
-
* templateResource,
|
16
|
-
* fileSystem,
|
17
|
-
* componentSelector: 'tui-input-slider',
|
18
|
-
* from: 'secondary',
|
19
|
-
* to: 'tuiTextfieldCustomContent',
|
20
|
-
* });
|
21
|
-
* ```
|
22
|
-
* 3. After
|
23
|
-
* ```html
|
24
|
-
* <tui-input-slider tuiTextfieldCustomContent="123"></tui-input-slider>
|
25
|
-
* ```
|
26
|
-
* ___
|
27
|
-
* @return true if something was changed
|
28
|
-
*/
|
29
4
|
export declare function replaceInputProperty({ templateResource, fileSystem, componentSelector, from, to, newValue, filterFn, }: {
|
30
5
|
componentSelector: string[] | string;
|
31
6
|
fileSystem: DevkitFileSystem;
|
@@ -35,21 +10,7 @@ export declare function replaceInputProperty({ templateResource, fileSystem, com
|
|
35
10
|
templateResource: TemplateResource;
|
36
11
|
to: string;
|
37
12
|
}): boolean;
|
38
|
-
/**
|
39
|
-
* @example
|
40
|
-
* // 10 symbols before property `size` and string `size="s"` has 8-symbols length
|
41
|
-
* const template = '<tui-card size="s"></tui-card>';
|
42
|
-
*
|
43
|
-
* getInputPropertyOffsets(template, 'size', ['tui-card']) // [[10, 18]]
|
44
|
-
*/
|
45
13
|
export declare function getInputPropertyOffsets(html: string, attrName: string, tags: string[], filterFn?: (element: Element) => boolean): Array<[number, number]>;
|
46
|
-
/**
|
47
|
-
* @example
|
48
|
-
* // `<tui-card size="` has 16-symbols length
|
49
|
-
* const template = '<tui-card size="xl"></tui-card>';
|
50
|
-
*
|
51
|
-
* getInputPropertyValueOffsets(template, 'size', ['tui-card']) // [ [16, 18] ]
|
52
|
-
*/
|
53
14
|
export declare function getInputPropertyValueOffsets(template: string, attrName: string, tags: string[]): Array<[number, number]>;
|
54
15
|
export declare function replaceInputPropertyByDirective({ templateResource, fileSystem, componentSelector, inputProperty, directive, directiveModule, filterFn, }: {
|
55
16
|
componentSelector: string[] | string;
|
@@ -63,11 +24,6 @@ export declare function replaceInputPropertyByDirective({ templateResource, file
|
|
63
24
|
inputProperty: string;
|
64
25
|
templateResource: TemplateResource;
|
65
26
|
}): void;
|
66
|
-
/**
|
67
|
-
* After removing property from the tag (which uses multi lines inside template) it can leave redundant space.
|
68
|
-
* It is not critical because html is valid even with this extra space.
|
69
|
-
* TODO: Find a way to fix it
|
70
|
-
*/
|
71
27
|
export declare function removeInputProperty({ templateResource, fileSystem, componentSelector, inputProperty, filterFn, }: {
|
72
28
|
componentSelector: string;
|
73
29
|
fileSystem: DevkitFileSystem;
|