@taiga-ui/cdk 3.51.0 → 3.52.0-canary.164e55d
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 +6 -0
- package/abstract/interactive.d.ts +9 -0
- package/abstract/portal-host.d.ts +4 -0
- package/abstract/portal-service.d.ts +3 -0
- package/abstract/taiga-ui-cdk-abstract.d.ts +3 -0
- package/abstract/theme-switcher.d.ts +6 -0
- package/bundles/taiga-ui-cdk-abstract.umd.js +34 -0
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +9 -0
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-coercion.umd.js +10 -0
- package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +8 -0
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +11 -0
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +12 -0
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +4 -0
- package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components.umd.js +4 -0
- package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +109 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +284 -0
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +26 -0
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +44 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-control.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +10 -0
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -0
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +18 -0
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +17 -0
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +9 -0
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +10 -0
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +9 -0
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +17 -0
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +10 -0
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-platform.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +12 -0
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +11 -0
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +5 -0
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +7 -0
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +4 -0
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +8 -0
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-exceptions.umd.js +4 -0
- package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js +3 -1
- package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +34 -1
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +7 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes.umd.js +4 -0
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +53 -5
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +109 -5
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-types.umd.js +3 -1
- package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +4 -0
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-color.umd.js +10 -0
- package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +59 -3
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +51 -0
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +7 -0
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +38 -0
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +42 -6
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-os.umd.js +14 -0
- package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js +19 -1
- package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils.umd.js +4 -0
- package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk.umd.js +4 -0
- package/bundles/taiga-ui-cdk.umd.js.map +1 -1
- package/classes/assert.d.ts +5 -0
- package/classes/taiga-ui-cdk-classes.d.ts +3 -0
- package/coercion/coerce-boolean-property.d.ts +4 -0
- package/coercion/taiga-ui-cdk-coercion.d.ts +3 -0
- package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +3 -0
- package/components/dialog-host/dialog-host.component.d.ts +3 -0
- package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +3 -0
- package/components/dropdown-host/dropdown-host.component.d.ts +3 -0
- package/components/dropdown-host/dropdown-portal.service.d.ts +3 -0
- package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +3 -0
- package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +3 -0
- package/components/taiga-ui-cdk-components.d.ts +3 -0
- package/constants/always-false-handler.d.ts +3 -0
- package/constants/always-true-handler.d.ts +3 -0
- package/constants/browser.d.ts +4 -0
- package/constants/empty.d.ts +5 -0
- package/constants/matcher.d.ts +19 -0
- package/constants/parent-animation.d.ts +6 -0
- package/constants/stringify.d.ts +3 -0
- package/constants/taiga-ui-cdk-constants.d.ts +3 -0
- package/constants/unicode-chars.d.ts +51 -0
- package/constants/used-icons.d.ts +6 -0
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/date-fillers.d.ts +11 -0
- package/date-time/date-format.d.ts +3 -0
- package/date-time/date-separator.d.ts +3 -0
- package/date-time/day-range.d.ts +33 -0
- package/date-time/day.d.ts +91 -0
- package/date-time/month-range.d.ts +3 -0
- package/date-time/month.d.ts +56 -0
- package/date-time/taiga-ui-cdk-date-time.d.ts +3 -0
- package/date-time/time.d.ts +36 -0
- package/date-time/year.d.ts +42 -0
- package/decorators/debounce.d.ts +4 -0
- package/decorators/default-prop.d.ts +9 -0
- package/decorators/pure.d.ts +18 -0
- package/decorators/required-setter.d.ts +9 -0
- package/decorators/taiga-ui-cdk-decorators.d.ts +3 -0
- package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +3 -0
- package/directives/auto-focus/handlers/ios.handler.d.ts +39 -0
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +3 -0
- package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +3 -0
- package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +3 -0
- package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +3 -0
- package/directives/control/taiga-ui-cdk-directives-control.d.ts +3 -0
- package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +3 -0
- package/directives/drag/drag.directive.d.ts +3 -0
- package/directives/drag/drag.module.d.ts +3 -0
- package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +3 -0
- package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +3 -0
- package/directives/element/taiga-ui-cdk-directives-element.d.ts +3 -0
- package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +3 -0
- package/directives/focus-visible/focus-visible.directive.d.ts +5 -0
- package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +3 -0
- package/directives/focusable/focusable.directive.d.ts +6 -0
- package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +3 -0
- package/directives/focused/focused.directive.d.ts +5 -0
- package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +3 -0
- package/directives/for/taiga-ui-cdk-directives-for.d.ts +3 -0
- package/directives/for-async/for-async.module.d.ts +3 -0
- package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +3 -0
- package/directives/high-dpi/high-dpi.directive.d.ts +3 -0
- package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +3 -0
- package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +3 -0
- package/directives/item/item.directive.d.ts +3 -0
- package/directives/item/taiga-ui-cdk-directives-item.d.ts +3 -0
- package/directives/let/let-context.d.ts +3 -0
- package/directives/let/let.directive.d.ts +10 -0
- package/directives/let/taiga-ui-cdk-directives-let.d.ts +3 -0
- package/directives/media/taiga-ui-cdk-directives-media.d.ts +3 -0
- package/directives/obscured/obscured.directive.d.ts +3 -0
- package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +3 -0
- package/directives/overscroll/overscroll.directive.d.ts +3 -0
- package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +3 -0
- package/directives/pan/pan.module.d.ts +3 -0
- package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +3 -0
- package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +3 -0
- package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +3 -0
- package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +3 -0
- package/directives/prevent-default/prevent-default.directive.d.ts +5 -0
- package/directives/prevent-default/prevent-default.module.d.ts +3 -0
- package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +3 -0
- package/directives/repeat-times/repeat-times.directive.d.ts +7 -0
- package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +3 -0
- package/directives/resize/resize.module.d.ts +3 -0
- package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +3 -0
- package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +3 -0
- package/directives/swipe/swipe.module.d.ts +3 -0
- package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +3 -0
- package/directives/taiga-ui-cdk-directives.d.ts +3 -0
- package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +3 -0
- package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +3 -0
- package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +3 -0
- package/directives/zoom/zoom.module.d.ts +3 -0
- package/enums/taiga-ui-cdk-enums.d.ts +3 -0
- package/esm2015/abstract/control.js +7 -1
- package/esm2015/abstract/interactive.js +11 -1
- package/esm2015/abstract/portal-host.js +6 -1
- package/esm2015/abstract/portal-service.js +4 -1
- package/esm2015/abstract/taiga-ui-cdk-abstract.js +4 -1
- package/esm2015/abstract/theme-switcher.js +7 -1
- package/esm2015/classes/assert.js +6 -1
- package/esm2015/classes/taiga-ui-cdk-classes.js +4 -1
- package/esm2015/coercion/coerce-boolean-property.js +7 -1
- package/esm2015/coercion/taiga-ui-cdk-coercion.js +4 -1
- package/esm2015/components/alert-host/alert-host.component.js +5 -1
- package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +4 -1
- package/esm2015/components/dialog-host/dialog-host.component.js +8 -1
- package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +4 -1
- package/esm2015/components/dropdown-host/dropdown-host.component.js +6 -1
- package/esm2015/components/dropdown-host/dropdown-portal.service.js +4 -1
- package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +4 -1
- package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +4 -1
- package/esm2015/components/taiga-ui-cdk-components.js +4 -1
- package/esm2015/constants/always-false-handler.js +5 -1
- package/esm2015/constants/always-true-handler.js +5 -1
- package/esm2015/constants/browser.js +5 -1
- package/esm2015/constants/empty.js +6 -1
- package/esm2015/constants/matcher.js +20 -1
- package/esm2015/constants/parent-animation.js +7 -1
- package/esm2015/constants/stringify.js +4 -1
- package/esm2015/constants/svg-node-filter.js +3 -1
- package/esm2015/constants/taiga-ui-cdk-constants.js +4 -1
- package/esm2015/constants/unicode-chars.js +52 -1
- package/esm2015/constants/used-icons.js +7 -1
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/date-fillers.js +12 -1
- package/esm2015/date-time/date-format.js +4 -1
- package/esm2015/date-time/date-separator.js +4 -1
- package/esm2015/date-time/day-range.js +34 -1
- package/esm2015/date-time/day.js +94 -1
- package/esm2015/date-time/month-range.js +4 -1
- package/esm2015/date-time/month.js +57 -1
- package/esm2015/date-time/taiga-ui-cdk-date-time.js +4 -1
- package/esm2015/date-time/time.js +37 -1
- package/esm2015/date-time/year.js +43 -1
- package/esm2015/decorators/debounce.js +5 -1
- package/esm2015/decorators/default-prop.js +10 -1
- package/esm2015/decorators/required-setter.js +10 -1
- package/esm2015/decorators/taiga-ui-cdk-decorators.js +4 -1
- package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +4 -1
- package/esm2015/directives/auto-focus/autofocus.options.js +3 -2
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +40 -1
- package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +4 -1
- package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +4 -1
- package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +4 -1
- package/esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js +4 -1
- package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +4 -1
- package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +4 -1
- package/esm2015/directives/drag/drag.directive.js +4 -1
- package/esm2015/directives/drag/drag.module.js +4 -1
- package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +4 -1
- package/esm2015/directives/droppable/droppable.directive.js +2 -1
- package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +4 -1
- package/esm2015/directives/element/element.directive.js +15 -1
- package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +4 -1
- package/esm2015/directives/focus-trap/focus-trap.directive.js +14 -1
- package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +4 -1
- package/esm2015/directives/focus-visible/focus-visible.directive.js +6 -1
- package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +4 -1
- package/esm2015/directives/focusable/focusable.directive.js +7 -1
- package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +4 -1
- package/esm2015/directives/focused/focused.directive.js +6 -1
- package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +4 -1
- package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +4 -1
- package/esm2015/directives/for-async/for-async.module.js +4 -1
- package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +4 -1
- package/esm2015/directives/high-dpi/high-dpi.directive.js +4 -1
- package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +4 -1
- package/esm2015/directives/hovered/hovered.service.js +4 -2
- package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +4 -1
- package/esm2015/directives/item/item.directive.js +4 -1
- package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +4 -1
- package/esm2015/directives/let/let-context.js +4 -1
- package/esm2015/directives/let/let.directive.js +11 -1
- package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +4 -1
- package/esm2015/directives/media/media.directive.js +4 -1
- package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +4 -1
- package/esm2015/directives/obscured/obscured.directive.js +4 -1
- package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +4 -1
- package/esm2015/directives/overscroll/overscroll.directive.js +7 -1
- package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +4 -1
- package/esm2015/directives/pan/pan.module.js +4 -1
- package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +4 -1
- package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +4 -1
- package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +4 -1
- package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +4 -1
- package/esm2015/directives/prevent-default/prevent-default.directive.js +6 -1
- package/esm2015/directives/prevent-default/prevent-default.module.js +4 -1
- package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +4 -1
- package/esm2015/directives/repeat-times/repeat-times.directive.js +8 -1
- package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +4 -1
- package/esm2015/directives/resize/resize.module.js +4 -1
- package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +4 -1
- package/esm2015/directives/resizer/resizer.directive.js +2 -1
- package/esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js +4 -1
- package/esm2015/directives/swipe/swipe.module.js +4 -1
- package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +4 -1
- package/esm2015/directives/taiga-ui-cdk-directives.js +4 -1
- package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +4 -1
- package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +4 -1
- package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +4 -1
- package/esm2015/directives/zoom/zoom.module.js +4 -1
- package/esm2015/enums/day-of-week.js +3 -1
- package/esm2015/enums/month-number.js +3 -1
- package/esm2015/enums/taiga-ui-cdk-enums.js +4 -1
- package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +4 -1
- package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +4 -1
- package/esm2015/observables/control-value.js +4 -1
- package/esm2015/observables/drag-and-drop-from.js +3 -1
- package/esm2015/observables/focus-visible-observable.js +6 -2
- package/esm2015/observables/is-alive.js +4 -1
- package/esm2015/observables/items-query-list-observable.js +7 -1
- package/esm2015/observables/mouse-drag-finish-from.js +5 -1
- package/esm2015/observables/scroll-from.js +4 -1
- package/esm2015/observables/taiga-ui-cdk-observables.js +4 -1
- package/esm2015/observables/typed-from-event.js +5 -1
- package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +4 -1
- package/esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js +4 -1
- package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +4 -1
- package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +4 -1
- package/esm2015/pipes/replace/replace.pipe.js +4 -2
- package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +4 -1
- package/esm2015/pipes/taiga-ui-cdk-pipes.js +4 -1
- package/esm2015/services/destroy.service.js +9 -1
- package/esm2015/services/directive-styles.service.js +4 -1
- package/esm2015/services/focus-visible.service.js +6 -1
- package/esm2015/services/id.service.js +4 -1
- package/esm2015/services/obscured.service.js +10 -2
- package/esm2015/services/pan.service.js +4 -2
- package/esm2015/services/parents-scroll.service.js +7 -2
- package/esm2015/services/resize.service.js +8 -2
- package/esm2015/services/static-request.service.js +5 -2
- package/esm2015/services/taiga-ui-cdk-services.js +4 -1
- package/esm2015/taiga-ui-cdk.js +4 -1
- package/esm2015/tokens/active-element.js +26 -4
- package/esm2015/tokens/alerts.js +4 -1
- package/esm2015/tokens/default-renderer.js +10 -2
- package/esm2015/tokens/dialogs.js +5 -1
- package/esm2015/tokens/ensure-base-href.js +4 -1
- package/esm2015/tokens/focusable-item-accessor.js +4 -1
- package/esm2015/tokens/is-android.js +4 -1
- package/esm2015/tokens/is-apple.js +4 -1
- package/esm2015/tokens/is-chromium.js +4 -1
- package/esm2015/tokens/is-cypress.js +5 -1
- package/esm2015/tokens/is-e2e.js +4 -1
- package/esm2015/tokens/is-firefox.js +4 -1
- package/esm2015/tokens/is-ios.js +4 -1
- package/esm2015/tokens/is-mobile.js +5 -1
- package/esm2015/tokens/is-playwright.js +4 -1
- package/esm2015/tokens/is-webkit.js +4 -1
- package/esm2015/tokens/platform.js +2 -1
- package/esm2015/tokens/range.js +4 -1
- package/esm2015/tokens/removed-element.js +4 -1
- package/esm2015/tokens/scroll-ref.js +4 -1
- package/esm2015/tokens/swipe-options.js +4 -1
- package/esm2015/tokens/taiga-ui-cdk-tokens.js +4 -1
- package/esm2015/tokens/take-only-trusted-events.js +7 -1
- package/esm2015/tokens/window-height.js +4 -1
- package/esm2015/tokens/zoom-options.js +4 -1
- package/esm2015/types/taiga-ui-cdk-types.js +4 -1
- package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +4 -1
- package/esm2015/utils/color/hex-to-rgba.js +2 -1
- package/esm2015/utils/color/hsv-to-rgb.js +4 -1
- package/esm2015/utils/color/rgb-to-hsv.js +2 -1
- package/esm2015/utils/color/rgba-to-hex.js +2 -1
- package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +4 -1
- package/esm2015/utils/dom/element-checks.js +2 -1
- package/esm2015/utils/dom/get-actual-target.js +4 -1
- package/esm2015/utils/dom/get-clipboard-data-text.js +4 -1
- package/esm2015/utils/dom/get-element-obscurers.js +10 -1
- package/esm2015/utils/dom/get-element-offset.js +8 -1
- package/esm2015/utils/dom/get-scroll-parent.js +7 -1
- package/esm2015/utils/dom/get-selected-text.js +9 -1
- package/esm2015/utils/dom/is-inside-iframe.js +4 -1
- package/esm2015/utils/dom/is-node-in.js +8 -1
- package/esm2015/utils/dom/retarget-boundary-crossing.js +9 -4
- package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +4 -1
- package/esm2015/utils/focus/blur-native-focused.js +4 -1
- package/esm2015/utils/focus/get-closest-focusable.js +5 -1
- package/esm2015/utils/focus/get-native-focused.js +6 -1
- package/esm2015/utils/focus/is-native-focused-in.js +8 -1
- package/esm2015/utils/focus/is-native-focused.js +9 -1
- package/esm2015/utils/focus/is-native-keyboard-focusable.js +7 -1
- package/esm2015/utils/focus/move-focus.js +8 -1
- package/esm2015/utils/focus/set-native-mouse-focused.js +8 -1
- package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +4 -1
- package/esm2015/utils/format/px.js +4 -1
- package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +4 -1
- package/esm2015/utils/math/clamp.js +8 -1
- package/esm2015/utils/math/normalize-to-int-number.js +9 -1
- package/esm2015/utils/math/quantize.js +7 -1
- package/esm2015/utils/math/round.js +8 -1
- package/esm2015/utils/math/sum.js +4 -1
- package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +4 -1
- package/esm2015/utils/math/to-radians.js +4 -1
- package/esm2015/utils/miscellaneous/create-options.js +2 -1
- package/esm2015/utils/miscellaneous/flat-length.js +6 -1
- package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +7 -1
- package/esm2015/utils/miscellaneous/is-number.js +2 -1
- package/esm2015/utils/miscellaneous/is-object.js +2 -1
- package/esm2015/utils/miscellaneous/is-string.js +2 -1
- package/esm2015/utils/miscellaneous/is-valid-url.js +8 -7
- package/esm2015/utils/miscellaneous/nullable-same.js +9 -1
- package/esm2015/utils/miscellaneous/object-from-entries.js +9 -1
- package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +4 -1
- package/esm2015/utils/os/is-apple-platform.js +11 -1
- package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +4 -1
- package/esm2015/utils/svg/svg-linear-gradient-processor.js +16 -2
- package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +4 -1
- package/esm2015/utils/taiga-ui-cdk-utils.js +4 -1
- package/exceptions/taiga-ui-cdk-exceptions.d.ts +3 -0
- package/fesm2015/taiga-ui-cdk-abstract.js +34 -0
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +9 -0
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-coercion.js +10 -0
- package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +8 -0
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +11 -0
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +12 -0
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +4 -0
- package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components.js +4 -0
- package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +109 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +284 -0
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +26 -0
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +44 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-control.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +10 -0
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +5 -0
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +18 -0
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +17 -0
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +9 -0
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +10 -0
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +9 -0
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +7 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +17 -0
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +10 -0
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-platform.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +12 -0
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +11 -0
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resizer.js +5 -0
- package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +7 -0
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives.js +4 -0
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +8 -0
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-exceptions.js +4 -0
- package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js +3 -1
- package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +34 -1
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-filter.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-keys.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +7 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes.js +4 -0
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +52 -5
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +108 -4
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-types.js +3 -1
- package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +4 -0
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-color.js +10 -0
- package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +59 -3
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +51 -0
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +7 -0
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +38 -0
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +42 -6
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-os.js +14 -0
- package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js +19 -1
- package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils.js +4 -0
- package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
- package/fesm2015/taiga-ui-cdk.js +4 -0
- package/fesm2015/taiga-ui-cdk.js.map +1 -1
- package/interfaces/control-value-transformer.d.ts +3 -0
- package/interfaces/day-like.d.ts +3 -0
- package/interfaces/focusable-element-accessor.d.ts +4 -0
- package/interfaces/month-like.d.ts +3 -0
- package/interfaces/taiga-ui-cdk-interfaces.d.ts +3 -0
- package/interfaces/year-like.d.ts +3 -0
- package/observables/control-value.d.ts +3 -0
- package/observables/is-alive.d.ts +3 -0
- package/observables/items-query-list-observable.d.ts +6 -0
- package/observables/mouse-drag-finish-from.d.ts +4 -0
- package/observables/scroll-from.d.ts +3 -0
- package/observables/taiga-ui-cdk-observables.d.ts +3 -0
- package/package.json +7 -5
- package/pipes/filter/filter.pipe.d.ts +7 -0
- package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +3 -0
- package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +3 -0
- package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +3 -0
- package/pipes/mapper/mapper.pipe.d.ts +7 -0
- package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +3 -0
- package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +3 -0
- package/pipes/taiga-ui-cdk-pipes.d.ts +3 -0
- package/schematics/constants/file-globs.js +3 -1
- package/schematics/index.d.ts +0 -1
- package/schematics/index.js +0 -1
- package/schematics/ng-add/index.js +1 -0
- package/schematics/ng-add/schema.d.ts +12 -0
- package/schematics/ng-update/interfaces/index.d.ts +12 -0
- package/schematics/ng-update/interfaces/index.js +15 -0
- package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.d.ts → interfaces/replacement-attribute-value.d.ts} +1 -1
- package/schematics/ng-update/interfaces/{replaceable-attribute.d.ts → replacement-attribute.d.ts} +1 -1
- package/schematics/ng-update/interfaces/{replacement-const.d.ts → replacement-identifier.d.ts} +1 -1
- package/schematics/ng-update/interfaces/replacement-service.d.ts +2 -2
- package/schematics/ng-update/interfaces/replacement-tag.d.ts +5 -0
- package/schematics/ng-update/interfaces/{type-to-rename.d.ts → replacement-type.d.ts} +1 -1
- package/schematics/ng-update/steps/icons/replace-imports.d.ts +2 -2
- package/schematics/ng-update/steps/rename-types.d.ts +2 -2
- package/schematics/ng-update/steps/rename-types.js +1 -1
- package/schematics/ng-update/steps/replace-enums.js +2 -2
- package/schematics/ng-update/steps/replace-identifier.d.ts +4 -0
- package/schematics/ng-update/steps/{replace-const.js → replace-identifier.js} +8 -8
- package/schematics/ng-update/steps/replace-services.js +1 -1
- package/schematics/ng-update/steps/show-warnings.js +5 -0
- package/schematics/ng-update/utils/templates/remove-inputs.d.ts +10 -0
- package/schematics/ng-update/utils/templates/remove-inputs.js +19 -0
- package/schematics/ng-update/utils/templates/replace-attr-values.d.ts +3 -3
- package/schematics/ng-update/utils/templates/replace-attr-values.js +2 -2
- package/schematics/ng-update/utils/templates/replace-attrs.d.ts +10 -0
- package/schematics/ng-update/utils/templates/replace-attrs.js +20 -0
- package/schematics/ng-update/utils/templates/replace-tags.d.ts +10 -0
- package/schematics/ng-update/utils/templates/replace-tags.js +19 -0
- package/schematics/ng-update/v3/constants/breakpoints.js +2 -0
- package/schematics/ng-update/v3/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +2 -2
- package/schematics/ng-update/v3/constants/enums.js +4 -0
- package/schematics/ng-update/v3/constants/templates.d.ts +12 -7
- package/schematics/ng-update/v3/constants/templates.js +5 -0
- package/schematics/ng-update/v3/constants/types.d.ts +2 -2
- package/schematics/ng-update/v3/index.d.ts +0 -1
- package/schematics/ng-update/v3/index.js +7 -16
- package/schematics/ng-update/v3/steps/migrate-date-time.js +18 -0
- package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +1 -1
- package/schematics/ng-update/v3/steps/migrate-progress.js +3 -1
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +6 -0
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +5 -0
- package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +1 -0
- package/schematics/ng-update/v3/steps/migrate-templates.js +19 -40
- package/schematics/ng-update/v3/steps/miscellaneous.js +5 -1
- package/schematics/ng-update/v3/steps/replace-functions.js +1 -1
- package/schematics/ng-update/v3-30/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3-30/index.js +1 -0
- package/schematics/ng-update/v3-35/constants/constants.d.ts +2 -2
- package/schematics/ng-update/v3-35/index.js +1 -0
- package/schematics/ng-update/v3-36/index.js +1 -0
- package/schematics/ng-update/v3-40/index.js +2 -1
- package/schematics/ng-update/v3-5/index.js +1 -0
- package/schematics/ng-update/v4/index.js +19 -6
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +33 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +32 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +6 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +7 -0
- package/schematics/ng-update/v4/steps/index.d.ts +3 -0
- package/schematics/ng-update/v4/steps/index.js +6 -0
- package/schematics/ng-update/v4/steps/migrate-templates.d.ts +3 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +44 -0
- package/schematics/ng-update/v4/steps/restore-tui-mapper.d.ts +1 -2
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +23 -67
- package/schematics/ng-update/v4/steps/restore-tui-matcher.d.ts +1 -2
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +23 -67
- package/schematics/ng-update/v4/steps/templates/migrate-badge.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +29 -0
- package/schematics/utils/add-import-to-component.js +3 -2
- package/schematics/utils/angular/ng-module.d.ts +3 -0
- package/schematics/utils/angular/ng-module.js +3 -0
- package/schematics/utils/angular-json-manipulations.js +7 -0
- package/schematics/utils/colored-log.js +1 -1
- package/schematics/utils/get-projects.d.ts +2 -2
- package/schematics/utils/get-projects.js +3 -1
- package/schematics/utils/is-ci.js +13 -11
- package/schematics/utils/progress.js +1 -0
- package/schematics/utils/push-to-array-property.js +1 -0
- package/schematics/utils/templates/elements.d.ts +19 -0
- package/schematics/utils/templates/elements.js +26 -2
- package/schematics/utils/templates/ng-component-input-manipulations.d.ts +44 -0
- package/schematics/utils/templates/ng-component-input-manipulations.js +47 -1
- package/services/destroy.service.d.ts +8 -0
- package/services/directive-styles.service.d.ts +3 -0
- package/services/focus-visible.service.d.ts +5 -0
- package/services/id.service.d.ts +3 -0
- package/services/obscured.service.d.ts +5 -0
- package/services/parents-scroll.service.d.ts +3 -0
- package/services/taiga-ui-cdk-services.d.ts +3 -0
- package/taiga-ui-cdk.d.ts +3 -0
- package/tokens/active-element.d.ts +3 -0
- package/tokens/alerts.d.ts +3 -0
- package/tokens/default-renderer.d.ts +6 -0
- package/tokens/dialogs.d.ts +3 -0
- package/tokens/ensure-base-href.d.ts +3 -0
- package/tokens/focusable-item-accessor.d.ts +3 -0
- package/tokens/is-android.d.ts +3 -0
- package/tokens/is-apple.d.ts +3 -0
- package/tokens/is-chromium.d.ts +3 -0
- package/tokens/is-cypress.d.ts +4 -0
- package/tokens/is-e2e.d.ts +3 -0
- package/tokens/is-firefox.d.ts +3 -0
- package/tokens/is-ios.d.ts +3 -0
- package/tokens/is-mobile.d.ts +3 -0
- package/tokens/is-playwright.d.ts +3 -0
- package/tokens/is-webkit.d.ts +3 -0
- package/tokens/range.d.ts +3 -0
- package/tokens/removed-element.d.ts +3 -0
- package/tokens/scroll-ref.d.ts +3 -0
- package/tokens/swipe-options.d.ts +3 -0
- package/tokens/taiga-ui-cdk-tokens.d.ts +3 -0
- package/tokens/take-only-trusted-events.d.ts +6 -0
- package/tokens/window-height.d.ts +3 -0
- package/tokens/zoom-options.d.ts +3 -0
- package/types/autocomplete.d.ts +1 -0
- package/types/date-mode.d.ts +5 -0
- package/types/event-with.d.ts +3 -0
- package/types/mapper.d.ts +9 -0
- package/types/matcher.d.ts +8 -0
- package/types/taiga-ui-cdk-types.d.ts +3 -0
- package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +3 -0
- package/utils/color/hsv-to-rgb.d.ts +3 -0
- package/utils/color/taiga-ui-cdk-utils-color.d.ts +3 -0
- package/utils/dom/get-actual-target.d.ts +3 -0
- package/utils/dom/get-clipboard-data-text.d.ts +3 -0
- package/utils/dom/get-element-obscurers.d.ts +9 -0
- package/utils/dom/get-element-offset.d.ts +7 -0
- package/utils/dom/get-scroll-parent.d.ts +6 -0
- package/utils/dom/get-selected-text.d.ts +8 -0
- package/utils/dom/is-inside-iframe.d.ts +3 -0
- package/utils/dom/is-node-in.d.ts +7 -0
- package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +3 -0
- package/utils/focus/blur-native-focused.d.ts +3 -0
- package/utils/focus/get-closest-focusable.d.ts +20 -0
- package/utils/focus/get-native-focused.d.ts +5 -0
- package/utils/focus/is-native-focused-in.d.ts +6 -0
- package/utils/focus/is-native-focused.d.ts +8 -0
- package/utils/focus/is-native-keyboard-focusable.d.ts +6 -0
- package/utils/focus/move-focus.d.ts +7 -0
- package/utils/focus/set-native-mouse-focused.d.ts +7 -0
- package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +3 -0
- package/utils/format/px.d.ts +3 -0
- package/utils/format/taiga-ui-cdk-utils-format.d.ts +3 -0
- package/utils/math/clamp.d.ts +7 -0
- package/utils/math/normalize-to-int-number.d.ts +8 -0
- package/utils/math/quantize.d.ts +6 -0
- package/utils/math/sum.d.ts +3 -0
- package/utils/math/taiga-ui-cdk-utils-math.d.ts +3 -0
- package/utils/math/to-radians.d.ts +3 -0
- package/utils/miscellaneous/create-options.d.ts +1 -0
- package/utils/miscellaneous/flat-length.d.ts +5 -0
- package/utils/miscellaneous/get-original-array-from-query-list.d.ts +6 -0
- package/utils/miscellaneous/is-string.js +1 -0
- package/utils/miscellaneous/nullable-same.d.ts +8 -0
- package/utils/miscellaneous/object-from-entries.d.ts +8 -0
- package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +3 -0
- package/utils/os/is-apple-platform.d.ts +10 -0
- package/utils/os/taiga-ui-cdk-utils-os.d.ts +3 -0
- package/utils/svg/svg-linear-gradient-processor.d.ts +14 -0
- package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +3 -0
- package/utils/taiga-ui-cdk-utils.d.ts +3 -0
- package/schematics/ng-update/steps/replace-const.d.ts +0 -4
- package/schematics/ng-update/v3/interfaces/replaceable-tag.d.ts +0 -5
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.d.ts +0 -3
- package/schematics/ng-update/v4/steps/replace-thumbnail-card.js +0 -58
- /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.d.ts +0 -0
- /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.js +0 -0
- /package/schematics/ng-update/interfaces/{replaceable-attribute.js → replacement-attribute-value.js} +0 -0
- /package/schematics/ng-update/interfaces/{replacement-const.js → replacement-attribute.js} +0 -0
- /package/schematics/ng-update/interfaces/{type-to-rename.js → replacement-identifier.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.js → interfaces/replacement-tag.js} +0 -0
- /package/schematics/ng-update/{v3/interfaces/replaceable-tag.js → interfaces/replacement-type.js} +0 -0
- /package/schematics/{utils → ng-update/utils/templates}/replace-tag.d.ts +0 -0
- /package/schematics/{utils → ng-update/utils/templates}/replace-tag.js +0 -0
@@ -1,20 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.replaceIdentifier = exports.replaceIdentifiers = void 0;
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
5
5
|
const add_unique_import_1 = require("../../utils/add-unique-import");
|
6
6
|
const colored_log_1 = require("../../utils/colored-log");
|
7
7
|
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
8
8
|
const import_manipulations_1 = require("../../utils/import-manipulations");
|
9
|
-
function
|
9
|
+
function replaceIdentifiers(options, constants) {
|
10
10
|
!options[`skip-logs`] &&
|
11
|
-
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing
|
12
|
-
constants.forEach(constToReplace =>
|
11
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing identifiers...`);
|
12
|
+
constants.forEach(constToReplace => replaceIdentifier(constToReplace));
|
13
13
|
!options[`skip-logs`] &&
|
14
|
-
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL}
|
14
|
+
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} identifiers replaced \n`);
|
15
15
|
}
|
16
|
-
exports.
|
17
|
-
function
|
16
|
+
exports.replaceIdentifiers = replaceIdentifiers;
|
17
|
+
function replaceIdentifier({ from, to }) {
|
18
18
|
const references = get_named_import_references_1.getNamedImportReferences(from.name, from.moduleSpecifier);
|
19
19
|
references.forEach(ref => {
|
20
20
|
if (ref.wasForgotten()) {
|
@@ -30,4 +30,4 @@ function replaceConst({ from, to }) {
|
|
30
30
|
}
|
31
31
|
});
|
32
32
|
}
|
33
|
-
exports.
|
33
|
+
exports.replaceIdentifier = replaceIdentifier;
|
@@ -28,7 +28,7 @@ function replaceService({ from, to, replaceMethods }, options) {
|
|
28
28
|
add_unique_import_1.addUniqueImport(parent.getSourceFile().getFilePath(), to.namedImport || to.name, to.moduleSpecifier);
|
29
29
|
return;
|
30
30
|
}
|
31
|
-
if (ng_morph_1.Node.
|
31
|
+
if (ng_morph_1.Node.isTypeReference(parent) && (replaceMethods === null || replaceMethods === void 0 ? void 0 : replaceMethods.length)) {
|
32
32
|
replaceProperties(parent, replaceMethods);
|
33
33
|
}
|
34
34
|
ref.replaceWithText(to.name);
|
@@ -27,6 +27,11 @@ function showWarning({ name, message, moduleSpecifier = `**/**` }, { logger }) {
|
|
27
27
|
startLinePos: ref.getStartLinePos(),
|
28
28
|
};
|
29
29
|
});
|
30
|
+
/**
|
31
|
+
* We have to twice iterate array with refs because otherwise we get error:
|
32
|
+
* > Attempted to get information from a node that was removed or forgotten.
|
33
|
+
* See this {@link https://ts-morph.com/manipulation/#strongwarningstrong warning}
|
34
|
+
*/
|
30
35
|
referencesMeta.forEach(({ sourceFile, filePath, startLinePos }) => {
|
31
36
|
logger.warn(`[WARNING] in ${filePath}: ${message}`);
|
32
37
|
sourceFile.insertText(startLinePos, `// TODO: (Taiga UI migration) ${message}\n`);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { UpdateRecorder } from '@angular-devkit/schematics';
|
2
|
+
import { DevkitFileSystem } from 'ng-morph';
|
3
|
+
import { RemovableInput } from '../../interfaces/removable-input';
|
4
|
+
import { TemplateResource } from '../../interfaces/template-resource';
|
5
|
+
export declare function removeInputs({ resource, recorder, fileSystem, data, }: {
|
6
|
+
fileSystem: DevkitFileSystem;
|
7
|
+
recorder: UpdateRecorder;
|
8
|
+
data: readonly RemovableInput[];
|
9
|
+
resource: TemplateResource;
|
10
|
+
}): void;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.removeInputs = void 0;
|
4
|
+
const ng_component_input_manipulations_1 = require("../../../utils/templates/ng-component-input-manipulations");
|
5
|
+
const template_resource_1 = require("../../../utils/templates/template-resource");
|
6
|
+
function removeInputs({ resource, recorder, fileSystem, data, }) {
|
7
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
8
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
9
|
+
data.forEach(({ inputName, tags }) => {
|
10
|
+
const offsets = [
|
11
|
+
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, inputName, tags),
|
12
|
+
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, `[${inputName}]`, tags),
|
13
|
+
];
|
14
|
+
offsets.forEach(([start, end]) => {
|
15
|
+
recorder.remove(start + templateOffset, end - start);
|
16
|
+
});
|
17
|
+
});
|
18
|
+
}
|
19
|
+
exports.removeInputs = removeInputs;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { UpdateRecorder } from '@angular-devkit/schematics';
|
2
2
|
import { DevkitFileSystem } from 'ng-morph';
|
3
|
+
import { ReplacementAttributeValue } from '../../interfaces/replacement-attribute-value';
|
3
4
|
import { TemplateResource } from '../../interfaces/template-resource';
|
4
|
-
|
5
|
-
export declare function replaceAttrValues({ resource, recorder, fileSystem, replaceableItems, }: {
|
5
|
+
export declare function replaceAttrValues({ resource, recorder, fileSystem, data, }: {
|
6
6
|
fileSystem: DevkitFileSystem;
|
7
7
|
recorder: UpdateRecorder;
|
8
|
-
|
8
|
+
data: ReplacementAttributeValue[];
|
9
9
|
resource: TemplateResource;
|
10
10
|
}): void;
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.replaceAttrValues = void 0;
|
4
4
|
const elements_1 = require("../../../utils/templates/elements");
|
5
5
|
const template_resource_1 = require("../../../utils/templates/template-resource");
|
6
|
-
function replaceAttrValues({ resource, recorder, fileSystem,
|
6
|
+
function replaceAttrValues({ resource, recorder, fileSystem, data, }) {
|
7
7
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
8
8
|
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
9
|
-
|
9
|
+
data.forEach(({ attrNames, values, withTagNames }) => {
|
10
10
|
const elements = [
|
11
11
|
...elements_1.findElementsWithAttributeOnTag(template, attrNames, withTagNames),
|
12
12
|
];
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { UpdateRecorder } from '@angular-devkit/schematics';
|
2
|
+
import { DevkitFileSystem } from 'ng-morph';
|
3
|
+
import { ReplacementAttribute } from '../../interfaces/replacement-attribute';
|
4
|
+
import { TemplateResource } from '../../interfaces/template-resource';
|
5
|
+
export declare function replaceAttrs({ resource, recorder, fileSystem, data, }: {
|
6
|
+
fileSystem: DevkitFileSystem;
|
7
|
+
recorder: UpdateRecorder;
|
8
|
+
resource: TemplateResource;
|
9
|
+
data: readonly ReplacementAttribute[];
|
10
|
+
}): void;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.replaceAttrs = void 0;
|
4
|
+
const elements_1 = require("../../../utils/templates/elements");
|
5
|
+
const template_resource_1 = require("../../../utils/templates/template-resource");
|
6
|
+
function replaceAttrs({ resource, recorder, fileSystem, data, }) {
|
7
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
8
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
9
|
+
data.forEach(({ from, to }) => {
|
10
|
+
const offsets = [
|
11
|
+
...elements_1.findAttributeOnElementWithTag(template, from.attrName, from.withTagNames || [], from.filterFn),
|
12
|
+
...elements_1.findAttributeOnElementWithAttrs(template, from.attrName, from.withAttrsNames || [], from.filterFn),
|
13
|
+
];
|
14
|
+
offsets.forEach(offset => {
|
15
|
+
recorder.remove(offset + templateOffset, from.attrName.length);
|
16
|
+
recorder.insertRight(offset + templateOffset, to.attrName);
|
17
|
+
});
|
18
|
+
});
|
19
|
+
}
|
20
|
+
exports.replaceAttrs = replaceAttrs;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { UpdateRecorder } from '@angular-devkit/schematics';
|
2
|
+
import { DevkitFileSystem } from 'ng-morph';
|
3
|
+
import { ReplacementTag } from '../../interfaces/replacement-tag';
|
4
|
+
import { TemplateResource } from '../../interfaces/template-resource';
|
5
|
+
export declare function replaceTags({ resource, recorder, fileSystem, data, }: {
|
6
|
+
fileSystem: DevkitFileSystem;
|
7
|
+
recorder: UpdateRecorder;
|
8
|
+
data: readonly ReplacementTag[];
|
9
|
+
resource: TemplateResource;
|
10
|
+
}): void;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.replaceTags = void 0;
|
4
|
+
const elements_1 = require("../../../utils/templates/elements");
|
5
|
+
const template_resource_1 = require("../../../utils/templates/template-resource");
|
6
|
+
const replace_tag_1 = require("./replace-tag");
|
7
|
+
function replaceTags({ resource, recorder, fileSystem, data, }) {
|
8
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
9
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
10
|
+
data.forEach(({ from, to, addAttributes }) => {
|
11
|
+
const elements = elements_1.findElementsByTagName(template, from);
|
12
|
+
elements.forEach(({ sourceCodeLocation }) => {
|
13
|
+
if (sourceCodeLocation) {
|
14
|
+
replace_tag_1.replaceTag(recorder, sourceCodeLocation, from, to, templateOffset, addAttributes);
|
15
|
+
}
|
16
|
+
});
|
17
|
+
});
|
18
|
+
}
|
19
|
+
exports.replaceTags = replaceTags;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DEPRECATED_BREAKPOINTS = void 0;
|
4
4
|
exports.DEPRECATED_BREAKPOINTS = [
|
5
|
+
// all previously actual breakpoints
|
5
6
|
{ from: `@media-retina`, to: `@tui-media-retina` },
|
6
7
|
{ from: `@media-retina-mobile`, to: `@tui-media-retina-mobile` },
|
7
8
|
{ from: `@media-retina-tablet`, to: `@tui-media-retina-tablet` },
|
@@ -16,6 +17,7 @@ exports.DEPRECATED_BREAKPOINTS = [
|
|
16
17
|
{ from: `@desktop-s-min`, to: `@tui-desktop-min` },
|
17
18
|
{ from: `@desktop-s-interval`, to: `@tui-desktop-interval` },
|
18
19
|
{ from: `@desktop-m-min`, to: `@tui-desktop-lg-min` },
|
20
|
+
// legacy breakpoints
|
19
21
|
{ from: `@mobile`, to: `@tui-mobile` },
|
20
22
|
{ from: `@mobile-min`, to: `@tui-mobile-min` },
|
21
23
|
{ from: `@mobile-interval`, to: `@tui-mobile-interval` },
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const CONSTANTS_TO_REPLACE:
|
1
|
+
import { ReplacementIdentifier } from '../../interfaces/replacement-identifier';
|
2
|
+
export declare const CONSTANTS_TO_REPLACE: ReplacementIdentifier[];
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const DEPRECATED_FUNCTIONS: readonly
|
1
|
+
import { ReplacementType } from '../../interfaces/replacement-type';
|
2
|
+
export declare const DEPRECATED_FUNCTIONS: readonly ReplacementType[];
|
@@ -182,18 +182,22 @@ exports.ENUMS_TO_REPLACE = [
|
|
182
182
|
Bittersweet: `support-06`,
|
183
183
|
Pinkie: `support-07`,
|
184
184
|
Charm: `support-08`,
|
185
|
+
// cspell:disable-next-line
|
185
186
|
Amethist: `support-09`,
|
186
187
|
Helio: `support-10`,
|
187
188
|
Lilac: `support-11`,
|
188
189
|
Malibu: `support-12`,
|
189
190
|
Havelock: `support-13`,
|
191
|
+
// cspell:disable-next-line
|
190
192
|
Picton: `support-14`,
|
191
193
|
Mint: `support-15`,
|
192
194
|
Fountain: `support-16`,
|
195
|
+
// cspell:disable-next-line
|
193
196
|
Puertorico: `support-17`,
|
194
197
|
Bay: `support-18`,
|
195
198
|
Forest: `support-19`,
|
196
199
|
York: `support-20`,
|
200
|
+
// cspell:disable-next-line
|
197
201
|
Feijoa: `support-21`,
|
198
202
|
},
|
199
203
|
keepAsType: false,
|
@@ -1,12 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { RemovableInput } from '../../interfaces/removable-input';
|
2
|
+
import { ReplacementAttribute } from '../../interfaces/replacement-attribute';
|
3
|
+
import { ReplacementAttributeValue } from '../../interfaces/replacement-attribute-value';
|
4
|
+
import { ReplacementTag } from '../../interfaces/replacement-tag';
|
2
5
|
import { AttributeToDirective } from '../interfaces/attribute-to-directive';
|
3
|
-
|
4
|
-
import { ReplaceableAttributeValue } from '../interfaces/replaceable-attribute-value';
|
5
|
-
import { ReplaceableTag } from '../interfaces/replaceable-tag';
|
6
|
-
export declare const ATTRS_TO_REPLACE: ReplaceableAttribute[];
|
6
|
+
export declare const ATTRS_TO_REPLACE: ReplacementAttribute[];
|
7
7
|
export declare const INPUTS_TO_REMOVE: RemovableInput[];
|
8
|
-
export declare const TAGS_TO_REPLACE:
|
8
|
+
export declare const TAGS_TO_REPLACE: ReplacementTag[];
|
9
9
|
export declare const ATTR_TO_DIRECTIVE: AttributeToDirective[];
|
10
|
+
/**
|
11
|
+
* @example `<div [someDirective]="true" />` => `<div someDirective />`
|
12
|
+
*
|
13
|
+
* Keeping it for future sake
|
14
|
+
*/
|
10
15
|
export declare const TRUTHY_BOOLEAN_INPUT_TO_HTML_BINARY_ATTRIBUTE: readonly string[];
|
11
16
|
export declare const TEMPLATE_COMMENTS: readonly [{
|
12
17
|
readonly tag: "tui-input-slider";
|
@@ -49,4 +54,4 @@ export declare const TEMPLATE_COMMENTS: readonly [{
|
|
49
54
|
readonly withAttr: "lastIndex";
|
50
55
|
readonly comment: "Use property [length] instead. See example: https://taiga-ui.dev/components/preview";
|
51
56
|
}];
|
52
|
-
export declare const REPLACE_ATTR_VALUE:
|
57
|
+
export declare const REPLACE_ATTR_VALUE: ReplacementAttributeValue[];
|
@@ -663,6 +663,11 @@ exports.ATTR_TO_DIRECTIVE = [
|
|
663
663
|
},
|
664
664
|
},
|
665
665
|
];
|
666
|
+
/**
|
667
|
+
* @example `<div [someDirective]="true" />` => `<div someDirective />`
|
668
|
+
*
|
669
|
+
* Keeping it for future sake
|
670
|
+
*/
|
666
671
|
exports.TRUTHY_BOOLEAN_INPUT_TO_HTML_BINARY_ATTRIBUTE = [];
|
667
672
|
exports.TEMPLATE_COMMENTS = [
|
668
673
|
{
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const TYPES_TO_RENAME: readonly
|
1
|
+
import { ReplacementType } from '../../interfaces/replacement-type';
|
2
|
+
export declare const TYPES_TO_RENAME: readonly ReplacementType[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.updateToV3 = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
6
6
|
const ng_morph_1 = require("ng-morph");
|
@@ -12,13 +12,12 @@ const colored_log_1 = require("../../utils/colored-log");
|
|
12
12
|
const get_execution_time_1 = require("../../utils/get-execution-time");
|
13
13
|
const remove_module_1 = require("../steps/remove-module");
|
14
14
|
const rename_types_1 = require("../steps/rename-types");
|
15
|
-
const replace_const_1 = require("../steps/replace-const");
|
16
15
|
const replace_deep_import_1 = require("../steps/replace-deep-import");
|
17
16
|
const replace_enums_1 = require("../steps/replace-enums");
|
17
|
+
const replace_identifier_1 = require("../steps/replace-identifier");
|
18
18
|
const replace_services_1 = require("../steps/replace-services");
|
19
19
|
const show_warnings_1 = require("../steps/show-warnings");
|
20
20
|
const get_file_system_1 = require("../utils/get-file-system");
|
21
|
-
const migrate_expand_templates_1 = require("../v3-5/steps/migrate-expand-templates");
|
22
21
|
const constants_1 = require("./constants/constants");
|
23
22
|
const enums_1 = require("./constants/enums");
|
24
23
|
const modules_1 = require("./constants/modules");
|
@@ -50,24 +49,13 @@ function updateToV3(options) {
|
|
50
49
|
]);
|
51
50
|
}
|
52
51
|
exports.updateToV3 = updateToV3;
|
53
|
-
function updateToV3_5(options) {
|
54
|
-
return (tree, _) => {
|
55
|
-
const fileSystem = get_file_system_1.getFileSystem(tree);
|
56
|
-
migrate_expand_templates_1.migrateExpandTemplates(fileSystem, options);
|
57
|
-
fileSystem.commitEdits();
|
58
|
-
ng_morph_1.saveActiveProject();
|
59
|
-
!options[`skip-logs`] &&
|
60
|
-
colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
61
|
-
};
|
62
|
-
}
|
63
|
-
exports.updateToV3_5 = updateToV3_5;
|
64
52
|
function main(options) {
|
65
53
|
return (tree, context) => {
|
66
54
|
const fileSystem = get_file_system_1.getFileSystem(tree);
|
67
55
|
replace_deep_import_1.replaceDeepImports(options);
|
68
56
|
replace_enums_1.replaceEnums(options, enums_1.ENUMS_TO_REPLACE);
|
69
57
|
rename_types_1.renameTypes(options, types_1.TYPES_TO_RENAME);
|
70
|
-
|
58
|
+
replace_identifier_1.replaceIdentifiers(options, constants_1.CONSTANTS_TO_REPLACE);
|
71
59
|
replace_services_1.replaceServices(options, services_1.SERVICES_TO_REPLACE);
|
72
60
|
replace_styles_1.replaceStyles();
|
73
61
|
show_warnings_1.showWarnings(context, warnings_1.MIGRATION_WARNINGS);
|
@@ -98,7 +86,9 @@ function addTaigaStyles(options) {
|
|
98
86
|
`– Manually replace "${taiga_styles_1.TAIGA_GLOBAL_OLD_STYLE}" with "${taiga_styles_1.TAIGA_GLOBAL_NEW_STYLE}" inside "styles" of angular.json (don't forget to install "@taiga-ui/styles")`);
|
99
87
|
return;
|
100
88
|
}
|
101
|
-
return angular_json_manipulations_1.addStylesToAngularJson(options, context, taigaStyles, existingStyles => !!(existingStyles === null || existingStyles === void 0 ? void 0 : existingStyles.some(
|
89
|
+
return angular_json_manipulations_1.addStylesToAngularJson(options, context, taigaStyles, existingStyles => !!(existingStyles === null || existingStyles === void 0 ? void 0 : existingStyles.some(
|
90
|
+
// eslint-disable-next-line @taiga-ui/experience/no-typeof
|
91
|
+
style => typeof style === `string` && style.includes(`tinkoff-theme`))), stylesToReplace, tree);
|
102
92
|
});
|
103
93
|
}
|
104
94
|
function showNormalizeWarning() {
|
@@ -110,6 +100,7 @@ function showNormalizeWarning() {
|
|
110
100
|
}
|
111
101
|
}
|
112
102
|
catch (_b) {
|
103
|
+
// noop
|
113
104
|
}
|
114
105
|
};
|
115
106
|
}
|
@@ -140,6 +140,24 @@ function replaceIdentifier(node, from, callback) {
|
|
140
140
|
function replaceIdentifierReferences(identifier, from, callback) {
|
141
141
|
identifier
|
142
142
|
.findReferencesAsNodes()
|
143
|
+
/**
|
144
|
+
* `findReferencesAsNodes` has strange behavior.
|
145
|
+
* Imagine schematics run on the following file:
|
146
|
+
* ```
|
147
|
+
* class Dummy {
|
148
|
+
* var = 5;
|
149
|
+
* method1() {
|
150
|
+
* const {var} = this; // (1)
|
151
|
+
* return var; // (2)
|
152
|
+
* }
|
153
|
+
* method2() {
|
154
|
+
* const {var} = this; // (3)
|
155
|
+
* }
|
156
|
+
* }
|
157
|
+
* ```
|
158
|
+
* If `identifier` is equal to `var` from `method1` (1),
|
159
|
+
* then `identifier.findReferencesAsNodes` will return array with 2 references: (2) and (3).
|
160
|
+
*/
|
143
161
|
.filter(ref => !areBothObjectDestructuring(ref, identifier))
|
144
162
|
.forEach(ref => {
|
145
163
|
if (ref.wasForgotten()) {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.migratePolymorpheus = void 0;
|
4
|
-
const replace_tag_1 = require("../../../utils/replace-tag");
|
5
4
|
const elements_1 = require("../../../utils/templates/elements");
|
6
5
|
const ng_component_input_manipulations_1 = require("../../../utils/templates/ng-component-input-manipulations");
|
7
6
|
const template_resource_1 = require("../../../utils/templates/template-resource");
|
7
|
+
const replace_tag_1 = require("../../utils/templates/replace-tag");
|
8
8
|
function migratePolymorpheus({ resource, fileSystem, recorder, }) {
|
9
9
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
10
10
|
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
@@ -8,7 +8,9 @@ const project_root_1 = require("../../../utils/project-root");
|
|
8
8
|
const elements_1 = require("../../../utils/templates/elements");
|
9
9
|
const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
|
10
10
|
const template_resource_1 = require("../../../utils/templates/template-resource");
|
11
|
-
exports.DEPRECATED_PROGRESS_PIPES_REG =
|
11
|
+
exports.DEPRECATED_PROGRESS_PIPES_REG =
|
12
|
+
// eslint-disable-next-line unicorn/no-unsafe-regex
|
13
|
+
/\s*\|\s*tuiProgressColorSegments(Async\s*\|\s*async)?/gi;
|
12
14
|
const PROPERTY_FOR_DEPRECATED_PIPES = `[color]`;
|
13
15
|
function migrateProgress(fileSystem, options) {
|
14
16
|
!options[`skip-logs`] &&
|
@@ -13,7 +13,9 @@ const MIN_LABELS_MIGRATION_METHOD_NAME = `tuiMigrationInputRangeMinLabel`;
|
|
13
13
|
const MAX_LABELS_MIGRATION_METHOD_NAME = `tuiMigrationInputRangeMaxLabel`;
|
14
14
|
function migrateInputRange(fileSystem, options) {
|
15
15
|
const templateResources = get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES);
|
16
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
16
17
|
const COMPONENTS_WITH_MIN_LABELS = new Set();
|
18
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
17
19
|
const COMPONENTS_WITH_MAX_LABELS = new Set();
|
18
20
|
let progressLog = progress_1.setupProgressLogger({
|
19
21
|
total: templateResources.length,
|
@@ -93,6 +95,10 @@ function addMinMaxLabelMethod(componentPath, methodName, methodCode) {
|
|
93
95
|
});
|
94
96
|
}
|
95
97
|
}
|
98
|
+
/**
|
99
|
+
* We should update virtual file tree after template manipulations
|
100
|
+
* otherwise all following ng-morph commands will overwrite all previous template manipulations
|
101
|
+
* */
|
96
102
|
function save(fileSystem) {
|
97
103
|
fileSystem.commitEdits();
|
98
104
|
ng_morph_1.saveActiveProject();
|
@@ -12,6 +12,7 @@ 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
|
15
16
|
const COMPONENTS_WITH_MIN_MAX_LABELS = new Set();
|
16
17
|
let progressLog = progress_1.setupProgressLogger({
|
17
18
|
total: templateResources.length,
|
@@ -21,6 +22,10 @@ function migrateInputSlider(fileSystem, options) {
|
|
21
22
|
!options[`skip-logs`] && progressLog(templateResource.componentPath);
|
22
23
|
replaceMinMaxLabels(templateResource, fileSystem, COMPONENTS_WITH_MIN_MAX_LABELS);
|
23
24
|
}
|
25
|
+
/**
|
26
|
+
* We should update virtual file tree
|
27
|
+
* otherwise all following ng-morph commands will overwrite all previous template manipulations
|
28
|
+
* */
|
24
29
|
fileSystem.commitEdits();
|
25
30
|
ng_morph_1.saveActiveProject();
|
26
31
|
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
@@ -24,6 +24,7 @@ function migrateTaigaProprietaryIcons(options) {
|
|
24
24
|
null;
|
25
25
|
}
|
26
26
|
catch (_b) {
|
27
|
+
// noop
|
27
28
|
}
|
28
29
|
if (yield angular_json_manipulations_1.isInvalidAngularJson(tree)) {
|
29
30
|
context.logger.warn(`[WARNING]: Schematics don't support this version of angular.json. ${MANUAL_MIGRATION_TIPS}`);
|
@@ -9,12 +9,15 @@ const ng_component_1 = require("../../../utils/angular/ng-component");
|
|
9
9
|
const colored_log_1 = require("../../../utils/colored-log");
|
10
10
|
const insert_todo_1 = require("../../../utils/insert-todo");
|
11
11
|
const progress_1 = require("../../../utils/progress");
|
12
|
-
const replace_tag_1 = require("../../../utils/replace-tag");
|
13
12
|
const elements_1 = require("../../../utils/templates/elements");
|
14
13
|
const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
|
15
14
|
const ng_component_input_manipulations_1 = require("../../../utils/templates/ng-component-input-manipulations");
|
16
15
|
const template_resource_1 = require("../../../utils/templates/template-resource");
|
16
|
+
const remove_inputs_1 = require("../../utils/templates/remove-inputs");
|
17
17
|
const replace_attr_values_1 = require("../../utils/templates/replace-attr-values");
|
18
|
+
const replace_attrs_1 = require("../../utils/templates/replace-attrs");
|
19
|
+
const replace_tag_1 = require("../../utils/templates/replace-tag");
|
20
|
+
const replace_tags_1 = require("../../utils/templates/replace-tags");
|
18
21
|
const templates_1 = require("../constants/templates");
|
19
22
|
const migrate_polymorpheus_1 = require("./migrate-polymorpheus");
|
20
23
|
const migrate_textfield_controller_1 = require("./migrate-textfield-controller");
|
@@ -23,15 +26,15 @@ function migrateTemplates(fileSystem, options) {
|
|
23
26
|
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating templates...`);
|
24
27
|
const componentWithTemplatesPaths = get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES);
|
25
28
|
const actions = [
|
26
|
-
|
27
|
-
|
29
|
+
replaceV3Tags,
|
30
|
+
replaceV3Attrs,
|
28
31
|
replaceAttrsByDirective,
|
29
32
|
replaceBreadcrumbs,
|
30
33
|
replaceFieldError,
|
31
34
|
addHTMLCommentTags,
|
32
35
|
addEditorProviders,
|
33
36
|
migrateTuiHideSelectedPipe,
|
34
|
-
|
37
|
+
removeV3Inputs,
|
35
38
|
migrate_polymorpheus_1.migratePolymorpheus,
|
36
39
|
migrate_textfield_controller_1.migrateTextfieldController,
|
37
40
|
replaceInputValues,
|
@@ -67,31 +70,16 @@ function replaceAttrsByDirective({ resource, fileSystem, }) {
|
|
67
70
|
});
|
68
71
|
});
|
69
72
|
}
|
70
|
-
function
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
...elements_1.findAttributeOnElementWithAttrs(template, from.attrName, from.withAttrsNames || [], from.filterFn),
|
77
|
-
];
|
78
|
-
offsets.forEach(offset => {
|
79
|
-
recorder.remove(offset + templateOffset, from.attrName.length);
|
80
|
-
recorder.insertRight(offset + templateOffset, to.attrName);
|
81
|
-
});
|
73
|
+
function replaceV3Attrs({ resource, recorder, fileSystem, }) {
|
74
|
+
replace_attrs_1.replaceAttrs({
|
75
|
+
resource,
|
76
|
+
recorder,
|
77
|
+
fileSystem,
|
78
|
+
data: templates_1.ATTRS_TO_REPLACE,
|
82
79
|
});
|
83
80
|
}
|
84
|
-
function
|
85
|
-
|
86
|
-
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
87
|
-
templates_1.TAGS_TO_REPLACE.forEach(({ from, to, addAttributes }) => {
|
88
|
-
const elements = elements_1.findElementsByTagName(template, from);
|
89
|
-
elements.forEach(({ sourceCodeLocation }) => {
|
90
|
-
if (sourceCodeLocation) {
|
91
|
-
replace_tag_1.replaceTag(recorder, sourceCodeLocation, from, to, templateOffset, addAttributes);
|
92
|
-
}
|
93
|
-
});
|
94
|
-
});
|
81
|
+
function replaceV3Tags({ resource, recorder, fileSystem, }) {
|
82
|
+
replace_tags_1.replaceTags({ resource, recorder, fileSystem, data: templates_1.TAGS_TO_REPLACE });
|
95
83
|
}
|
96
84
|
function addHTMLCommentTags({ resource, recorder, fileSystem, }) {
|
97
85
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
@@ -167,6 +155,7 @@ function addEditorProviders({ resource, fileSystem, }) {
|
|
167
155
|
add_unique_import_1.addUniqueImport(componentPath, `defaultEditorExtensions`, `@taiga-ui/addon-editor`);
|
168
156
|
}
|
169
157
|
}
|
158
|
+
// eslint-disable-next-line unicorn/no-unsafe-regex
|
170
159
|
const HIDE_SELECTED_PIPE_WITH_ARGS_REG = /\|\s*tuiHideSelected(\s*:\s*[^|'"]*)?/gi;
|
171
160
|
function migrateTuiHideSelectedPipe({ resource, fileSystem, recorder, }) {
|
172
161
|
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
@@ -221,19 +210,9 @@ function replaceInputValues({ resource, recorder, fileSystem, }) {
|
|
221
210
|
resource,
|
222
211
|
recorder,
|
223
212
|
fileSystem,
|
224
|
-
|
213
|
+
data: templates_1.REPLACE_ATTR_VALUE,
|
225
214
|
});
|
226
215
|
}
|
227
|
-
function
|
228
|
-
|
229
|
-
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
230
|
-
templates_1.INPUTS_TO_REMOVE.forEach(({ inputName, tags }) => {
|
231
|
-
const offsets = [
|
232
|
-
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, inputName, tags),
|
233
|
-
...ng_component_input_manipulations_1.getInputPropertyOffsets(template, `[${inputName}]`, tags),
|
234
|
-
];
|
235
|
-
offsets.forEach(([start, end]) => {
|
236
|
-
recorder.remove(start + templateOffset, end - start);
|
237
|
-
});
|
238
|
-
});
|
216
|
+
function removeV3Inputs({ resource, fileSystem, recorder, }) {
|
217
|
+
remove_inputs_1.removeInputs({ resource, recorder, fileSystem, data: templates_1.INPUTS_TO_REMOVE });
|
239
218
|
}
|
@@ -20,6 +20,10 @@ function miscellaneousMigrations(options) {
|
|
20
20
|
});
|
21
21
|
replaceEnumProperty({
|
22
22
|
enumName: `TuiCreditCardAutofillName`,
|
23
|
+
/**
|
24
|
+
* Do not mark `mounth` as incorrect.
|
25
|
+
* cspell:ignore mounth
|
26
|
+
*/
|
23
27
|
from: `CcExp_mounth`,
|
24
28
|
to: `CcExpMonth`,
|
25
29
|
});
|
@@ -37,7 +41,7 @@ function addWarningToMethod(className, method, message) {
|
|
37
41
|
const references = get_named_import_references_1.getNamedImportReferences(className);
|
38
42
|
references.forEach(ref => {
|
39
43
|
const parent = ref.getParent();
|
40
|
-
if (ng_morph_1.Node.
|
44
|
+
if (ng_morph_1.Node.isTypeReference(parent)) {
|
41
45
|
checkMethod(parent, method, message);
|
42
46
|
}
|
43
47
|
});
|
@@ -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 `) // e.g, `getClosestElement(el as Element, ...)`
|
78
78
|
? `(${firstArgText})`
|
79
79
|
: firstArgText;
|
80
80
|
parent.replaceWithText(`${element}.closest(${secondArg.getText()})`);
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const ICONS_TS:
|
1
|
+
import { ReplacementIdentifier } from '../../interfaces/replacement-identifier';
|
2
|
+
export declare const ICONS_TS: ReplacementIdentifier[];
|
@@ -8,6 +8,7 @@ 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
|
11
12
|
function updateToV3_30(options) {
|
12
13
|
return (tree, _) => {
|
13
14
|
if (!hasProprietaryIcons(tree)) {
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const ICONS_TS:
|
1
|
+
import { ReplacementIdentifier } from '../../interfaces/replacement-identifier';
|
2
|
+
export declare const ICONS_TS: ReplacementIdentifier[];
|
@@ -8,6 +8,7 @@ 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
|
11
12
|
function updateToV3_35(options) {
|
12
13
|
return (tree, _) => {
|
13
14
|
if (!hasProprietaryIcons(tree)) {
|