@taiga-ui/cdk 3.51.0-canary.d032cc6 → 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 +4 -2
- 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
@@ -10,6 +10,7 @@ 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
|
13
14
|
function updateToV3_36(options) {
|
14
15
|
return (tree, context) => {
|
15
16
|
if (!ng_morph_1.getPackageJsonDependency(tree, OLD_PACKAGE)) {
|
@@ -5,12 +5,13 @@ const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const constants_1 = require("../../constants");
|
6
6
|
const colored_log_1 = require("../../utils/colored-log");
|
7
7
|
const project_root_1 = require("../../utils/project-root");
|
8
|
-
const replace_tag_1 = require("../../utils/replace-tag");
|
9
8
|
const elements_1 = require("../../utils/templates/elements");
|
10
9
|
const get_component_templates_1 = require("../../utils/templates/get-component-templates");
|
11
10
|
const template_resource_1 = require("../../utils/templates/template-resource");
|
12
11
|
const get_file_system_1 = require("../utils/get-file-system");
|
13
12
|
const replace_text_1 = require("../utils/replace-text");
|
13
|
+
const replace_tag_1 = require("../utils/templates/replace-tag");
|
14
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
14
15
|
function updateToV3_40(options) {
|
15
16
|
return (tree, _) => {
|
16
17
|
const fileSystem = get_file_system_1.getFileSystem(tree);
|
@@ -6,6 +6,7 @@ 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
|
9
10
|
function updateToV3_5(options) {
|
10
11
|
return (tree, _) => {
|
11
12
|
const fileSystem = get_file_system_1.getFileSystem(tree);
|
@@ -2,21 +2,22 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.updateToV4 = void 0;
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
5
|
+
const ng_morph_1 = require("ng-morph");
|
5
6
|
const perf_hooks_1 = require("perf_hooks");
|
7
|
+
const constants_1 = require("../../constants");
|
6
8
|
const versions_1 = require("../../ng-add/constants/versions");
|
7
9
|
const colored_log_1 = require("../../utils/colored-log");
|
8
10
|
const get_execution_time_1 = require("../../utils/get-execution-time");
|
9
|
-
const
|
10
|
-
const
|
11
|
-
const
|
11
|
+
const project_root_1 = require("../../utils/project-root");
|
12
|
+
const replace_identifier_1 = require("../steps/replace-identifier");
|
13
|
+
const steps_1 = require("./steps");
|
14
|
+
const identifiers_to_replace_1 = require("./steps/constants/identifiers-to-replace");
|
12
15
|
function updateToV4(options) {
|
13
16
|
const t0 = perf_hooks_1.performance.now();
|
14
17
|
!options[`skip-logs`] &&
|
15
18
|
colored_log_1.titleLog(`\n\n${colored_log_1.START_SYMBOL} Your packages will be updated to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
|
16
19
|
return schematics_1.chain([
|
17
|
-
|
18
|
-
restore_tui_mapper_1.restoreTuiMapper(options),
|
19
|
-
restore_tui_matcher_1.restoreTuiMatcher(options),
|
20
|
+
main(options),
|
20
21
|
() => {
|
21
22
|
const executionTime = get_execution_time_1.getExecutionTime(t0, perf_hooks_1.performance.now());
|
22
23
|
!options[`skip-logs`] &&
|
@@ -25,3 +26,15 @@ function updateToV4(options) {
|
|
25
26
|
]);
|
26
27
|
}
|
27
28
|
exports.updateToV4 = updateToV4;
|
29
|
+
function main(options) {
|
30
|
+
return (tree, _context) => {
|
31
|
+
const project = ng_morph_1.createProject(tree, project_root_1.projectRoot(), constants_1.ALL_FILES);
|
32
|
+
const fileSystem = project.getFileSystem().fs;
|
33
|
+
replace_identifier_1.replaceIdentifiers(options, identifiers_to_replace_1.IDENTIFIERS_TO_REPLACE);
|
34
|
+
steps_1.restoreTuiMapper(options);
|
35
|
+
steps_1.restoreTuiMatcher(options);
|
36
|
+
steps_1.migrateTemplates(fileSystem, options);
|
37
|
+
fileSystem.commitEdits();
|
38
|
+
ng_morph_1.saveActiveProject();
|
39
|
+
};
|
40
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ATTRS_TO_REPLACE = void 0;
|
4
|
+
exports.ATTRS_TO_REPLACE = [
|
5
|
+
{
|
6
|
+
from: {
|
7
|
+
attrName: `brandLogo`,
|
8
|
+
withTagNames: [`tui-card`, `tui-thumbnail-card`],
|
9
|
+
},
|
10
|
+
to: { attrName: `iconLeft` },
|
11
|
+
},
|
12
|
+
{
|
13
|
+
from: {
|
14
|
+
attrName: `[brandLogo]`,
|
15
|
+
withTagNames: [`tui-card`, `tui-thumbnail-card`],
|
16
|
+
},
|
17
|
+
to: { attrName: `[iconLeft]` },
|
18
|
+
},
|
19
|
+
{
|
20
|
+
from: {
|
21
|
+
attrName: `[status]`,
|
22
|
+
withTagNames: [`tui-badge`],
|
23
|
+
},
|
24
|
+
to: { attrName: `[appearance]` },
|
25
|
+
},
|
26
|
+
{
|
27
|
+
from: {
|
28
|
+
attrName: `status`,
|
29
|
+
withTagNames: [`tui-badge`],
|
30
|
+
},
|
31
|
+
to: { attrName: `appearance` },
|
32
|
+
},
|
33
|
+
];
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IDENTIFIERS_TO_REPLACE = void 0;
|
4
|
+
exports.IDENTIFIERS_TO_REPLACE = [
|
5
|
+
{
|
6
|
+
from: { name: `TuiCardModule`, moduleSpecifier: `@taiga-ui/addon-commerce` },
|
7
|
+
to: { name: `TuiThumbnailCardModule`, moduleSpecifier: `@taiga-ui/addon-commerce` },
|
8
|
+
},
|
9
|
+
{
|
10
|
+
from: { name: `TuiCardComponent`, moduleSpecifier: `@taiga-ui/addon-commerce` },
|
11
|
+
to: {
|
12
|
+
name: `TuiThumbnailCardComponent`,
|
13
|
+
moduleSpecifier: `@taiga-ui/addon-commerce`,
|
14
|
+
},
|
15
|
+
},
|
16
|
+
{
|
17
|
+
from: { name: `TuiBadgeModule`, moduleSpecifier: `@taiga-ui/experimental` },
|
18
|
+
to: { name: `TuiBadgeModule`, moduleSpecifier: `@taiga-ui/kit` },
|
19
|
+
},
|
20
|
+
{
|
21
|
+
from: { name: `TuiTextAreaModule`, moduleSpecifier: `@taiga-ui/kit` },
|
22
|
+
to: { name: `TuiTextareaModule`, moduleSpecifier: `@taiga-ui/kit` },
|
23
|
+
},
|
24
|
+
{
|
25
|
+
from: { name: `TuiTextAreaDirective`, moduleSpecifier: `@taiga-ui/kit` },
|
26
|
+
to: { name: `TuiTextareaDirective`, moduleSpecifier: `@taiga-ui/kit` },
|
27
|
+
},
|
28
|
+
{
|
29
|
+
from: { name: `TuiTextAreaComponent`, moduleSpecifier: `@taiga-ui/kit` },
|
30
|
+
to: { name: `TuiTextareaComponent`, moduleSpecifier: `@taiga-ui/kit` },
|
31
|
+
},
|
32
|
+
];
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./migrate-templates"), exports);
|
5
|
+
tslib_1.__exportStar(require("./restore-tui-mapper"), exports);
|
6
|
+
tslib_1.__exportStar(require("./restore-tui-matcher"), exports);
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.migrateTemplates = void 0;
|
4
|
+
const constants_1 = require("../../../constants");
|
5
|
+
const colored_log_1 = require("../../../utils/colored-log");
|
6
|
+
const progress_1 = require("../../../utils/progress");
|
7
|
+
const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
|
8
|
+
const template_resource_1 = require("../../../utils/templates/template-resource");
|
9
|
+
const remove_inputs_1 = require("../../utils/templates/remove-inputs");
|
10
|
+
const replace_attrs_1 = require("../../utils/templates/replace-attrs");
|
11
|
+
const replace_tags_1 = require("../../utils/templates/replace-tags");
|
12
|
+
const attrs_to_replace_1 = require("./constants/attrs-to-replace");
|
13
|
+
const inputs_to_remove_1 = require("./constants/inputs-to-remove");
|
14
|
+
const tags_to_replace_1 = require("./constants/tags-to-replace");
|
15
|
+
const migrate_badge_1 = require("./templates/migrate-badge");
|
16
|
+
function migrateTemplates(fileSystem, options) {
|
17
|
+
!options[`skip-logs`] &&
|
18
|
+
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating templates...`);
|
19
|
+
const componentWithTemplatesPaths = get_component_templates_1.getComponentTemplates(constants_1.ALL_TS_FILES);
|
20
|
+
const actions = [
|
21
|
+
getAction({ action: replace_tags_1.replaceTags, requiredData: tags_to_replace_1.TAGS_TO_REPLACE }),
|
22
|
+
getAction({ action: replace_attrs_1.replaceAttrs, requiredData: attrs_to_replace_1.ATTRS_TO_REPLACE }),
|
23
|
+
getAction({ action: remove_inputs_1.removeInputs, requiredData: inputs_to_remove_1.INPUTS_TO_REMOVE }),
|
24
|
+
migrate_badge_1.migrateBadgeValue,
|
25
|
+
];
|
26
|
+
const progressLog = progress_1.setupProgressLogger({
|
27
|
+
total: componentWithTemplatesPaths.length,
|
28
|
+
});
|
29
|
+
componentWithTemplatesPaths.forEach(resource => {
|
30
|
+
const path = fileSystem.resolve(template_resource_1.getPathFromTemplateResource(resource));
|
31
|
+
const recorder = fileSystem.edit(path);
|
32
|
+
actions.forEach((action, actionIndex) => {
|
33
|
+
const isLastAction = actionIndex === actions.length - 1;
|
34
|
+
!options[`skip-logs`] && progressLog(action.name, isLastAction);
|
35
|
+
action({ resource, fileSystem, recorder });
|
36
|
+
});
|
37
|
+
});
|
38
|
+
!options[`skip-logs`] &&
|
39
|
+
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} templates migrated \n`);
|
40
|
+
}
|
41
|
+
exports.migrateTemplates = migrateTemplates;
|
42
|
+
function getAction({ action, requiredData, }) {
|
43
|
+
return ({ resource, fileSystem, recorder, }) => action({ resource, fileSystem, recorder, data: requiredData });
|
44
|
+
}
|
@@ -2,83 +2,39 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.restoreTuiMapper = void 0;
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
5
|
-
const ts_morph_1 = require("ts-morph");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
5
|
const colored_log_1 = require("../../../utils/colored-log");
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const replace_substrings_1 = require("./utils/replace-substrings");
|
6
|
+
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
7
|
+
const replace_identifier_1 = require("../../steps/replace-identifier");
|
11
8
|
function restoreTuiMapper(options) {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
renameTuiTypedMapper(options, fileSystem);
|
16
|
-
!options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
17
|
-
};
|
9
|
+
updateTuiMapper(options);
|
10
|
+
renameTuiTypedMapper(options);
|
11
|
+
!options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
18
12
|
}
|
19
13
|
exports.restoreTuiMapper = restoreTuiMapper;
|
20
|
-
function updateTuiMapper(options
|
14
|
+
function updateTuiMapper(options) {
|
21
15
|
!options[`skip-logs`] &&
|
22
16
|
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} updating TuiMapper typing to the typed version`);
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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;
|
17
|
+
const refs = get_named_import_references_1.getNamedImportReferences(`TuiMapper`, `@taiga-ui/cdk`);
|
18
|
+
for (const ref of refs) {
|
19
|
+
if (ref.wasForgotten()) {
|
20
|
+
return;
|
39
21
|
}
|
40
|
-
const
|
41
|
-
if (
|
42
|
-
|
22
|
+
const parent = ref.getParent();
|
23
|
+
if (ng_morph_1.Node.isTypeReference(parent)) {
|
24
|
+
const typeArguments = parent.getTypeArguments();
|
25
|
+
if (!typeArguments || typeArguments.length !== 2) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const [inputType] = typeArguments;
|
29
|
+
inputType.replaceWithText(`[${inputType.getText()}, ...any]`);
|
43
30
|
}
|
44
|
-
|
45
|
-
replacements.push({
|
46
|
-
start: inputType.getStart(),
|
47
|
-
from: inputType.getText(),
|
48
|
-
to: `[${inputType.getText()}, ...any]`,
|
49
|
-
});
|
50
|
-
return node;
|
51
|
-
});
|
52
|
-
return replacements;
|
31
|
+
}
|
53
32
|
}
|
54
|
-
function renameTuiTypedMapper(options
|
33
|
+
function renameTuiTypedMapper(options) {
|
55
34
|
!options[`skip-logs`] &&
|
56
35
|
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} renaming TuiTypedMapper to TuiMapper`);
|
57
|
-
|
58
|
-
|
59
|
-
|
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;
|
36
|
+
replace_identifier_1.replaceIdentifier({
|
37
|
+
from: { name: `TuiTypedMapper`, moduleSpecifier: `@taiga-ui/cdk` },
|
38
|
+
to: { name: `TuiMapper`, moduleSpecifier: `@taiga-ui/cdk` },
|
82
39
|
});
|
83
|
-
return replacements;
|
84
40
|
}
|
@@ -2,83 +2,39 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.restoreTuiMatcher = void 0;
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
5
|
-
const ts_morph_1 = require("ts-morph");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
5
|
const colored_log_1 = require("../../../utils/colored-log");
|
8
|
-
const
|
9
|
-
const
|
10
|
-
const replace_substrings_1 = require("./utils/replace-substrings");
|
6
|
+
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
7
|
+
const replace_identifier_1 = require("../../steps/replace-identifier");
|
11
8
|
function restoreTuiMatcher(options) {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
renameTuiTypedMatcher(options, fileSystem);
|
16
|
-
!options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
17
|
-
};
|
9
|
+
updateTuiMatcher(options);
|
10
|
+
renameTuiTypedMatcher(options);
|
11
|
+
!options[`skip-logs`] && colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} successfully migrated \n`);
|
18
12
|
}
|
19
13
|
exports.restoreTuiMatcher = restoreTuiMatcher;
|
20
|
-
function updateTuiMatcher(options
|
14
|
+
function updateTuiMatcher(options) {
|
21
15
|
!options[`skip-logs`] &&
|
22
16
|
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} updating TuiMatcher typing to the typed version`);
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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;
|
17
|
+
const refs = get_named_import_references_1.getNamedImportReferences(`TuiMatcher`, `@taiga-ui/cdk`);
|
18
|
+
for (const ref of refs) {
|
19
|
+
if (ref.wasForgotten()) {
|
20
|
+
return;
|
39
21
|
}
|
40
|
-
const
|
41
|
-
if (
|
42
|
-
|
22
|
+
const parent = ref.getParent();
|
23
|
+
if (ng_morph_1.Node.isTypeReference(parent)) {
|
24
|
+
const typeArguments = parent.getTypeArguments();
|
25
|
+
if (!typeArguments || typeArguments.length !== 1) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const [inputType] = typeArguments;
|
29
|
+
inputType.replaceWithText(`[${inputType.getText()}, ...any]`);
|
43
30
|
}
|
44
|
-
|
45
|
-
replacements.push({
|
46
|
-
start: inputType.getStart(),
|
47
|
-
from: inputType.getText(),
|
48
|
-
to: `[${inputType.getText()}, ...any]`,
|
49
|
-
});
|
50
|
-
return node;
|
51
|
-
});
|
52
|
-
return replacements;
|
31
|
+
}
|
53
32
|
}
|
54
|
-
function renameTuiTypedMatcher(options
|
33
|
+
function renameTuiTypedMatcher(options) {
|
55
34
|
!options[`skip-logs`] &&
|
56
35
|
colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} renaming TuiTypedMatcher to TuiMatcher`);
|
57
|
-
|
58
|
-
|
59
|
-
|
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;
|
36
|
+
replace_identifier_1.replaceIdentifier({
|
37
|
+
from: { name: `TuiTypedMatcher`, moduleSpecifier: `@taiga-ui/cdk` },
|
38
|
+
to: { name: `TuiMatcher`, moduleSpecifier: `@taiga-ui/cdk` },
|
82
39
|
});
|
83
|
-
return replacements;
|
84
40
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { UpdateRecorder } from '@angular-devkit/schematics';
|
2
|
+
import { DevkitFileSystem } from 'ng-morph';
|
3
|
+
import { TemplateResource } from '../../../interfaces';
|
4
|
+
export declare function migrateBadgeValue({ resource, recorder, fileSystem, }: {
|
5
|
+
fileSystem: DevkitFileSystem;
|
6
|
+
recorder: UpdateRecorder;
|
7
|
+
resource: TemplateResource;
|
8
|
+
}): void;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.migrateBadgeValue = void 0;
|
4
|
+
const elements_1 = require("../../../../utils/templates/elements");
|
5
|
+
const template_resource_1 = require("../../../../utils/templates/template-resource");
|
6
|
+
function migrateBadgeValue({ resource, recorder, fileSystem, }) {
|
7
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
8
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
9
|
+
const elements = elements_1.findElementsWithAttributeOnTag(template, [`[value]`, `value`], [`tui-badge`]);
|
10
|
+
elements.forEach(({ attrs, sourceCodeLocation }) => {
|
11
|
+
var _a;
|
12
|
+
const attr = attrs.find(attr => attr.name === `[value]` || attr.name === `value`);
|
13
|
+
if (!attr) {
|
14
|
+
return;
|
15
|
+
}
|
16
|
+
const attrValue = attr === null || attr === void 0 ? void 0 : attr.value;
|
17
|
+
const insertTo = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.endTag.startOffset;
|
18
|
+
if (!attrValue || !insertTo) {
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
recorder.insertRight(insertTo + templateOffset, attr.name === `value` ? attrValue : `{{ ${attrValue} }}`);
|
22
|
+
const attrOffset = (_a = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.attrs) === null || _a === void 0 ? void 0 : _a[attr.name];
|
23
|
+
if (attrOffset) {
|
24
|
+
const { startOffset, endOffset } = attrOffset;
|
25
|
+
recorder.remove(templateOffset + startOffset - 1, endOffset - startOffset + 1);
|
26
|
+
}
|
27
|
+
});
|
28
|
+
}
|
29
|
+
exports.migrateBadgeValue = migrateBadgeValue;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.addImportToComponent = void 0;
|
4
|
-
const
|
4
|
+
const ng_morph_1 = require("ng-morph");
|
5
|
+
// TODO: delete after adding to ng-morph
|
5
6
|
function addImportToComponent(classDeclaration, moduleName, { unique = true } = {}) {
|
6
|
-
|
7
|
+
ng_morph_1.pushToDecoratorArrayProperty(classDeclaration, `Component`, `imports`, moduleName, {
|
7
8
|
unique,
|
8
9
|
forceToArray: true,
|
9
10
|
});
|
@@ -1,3 +1,6 @@
|
|
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
|
+
*/
|
3
6
|
export declare function findNgModule(ngComponent: ClassDeclaration): ClassDeclaration | null;
|
@@ -7,6 +7,9 @@ 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
|
+
*/
|
10
13
|
function findNgModule(ngComponent) {
|
11
14
|
const allNgModules = getNgModules(constants_1.ALL_TS_FILES);
|
12
15
|
return (allNgModules.find(module => {
|
@@ -12,7 +12,13 @@ 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
|
15
16
|
.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
|
16
22
|
.catch(() => true));
|
17
23
|
});
|
18
24
|
}
|
@@ -26,6 +32,7 @@ function hasTaigaIcons(assets) {
|
|
26
32
|
}));
|
27
33
|
}
|
28
34
|
function addStylesToAngularJson(options, context, taigaStyles, filter, stylesToReplace, tree) {
|
35
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
29
36
|
const MANUAL_MIGRATION_TIPS = `Add styles ${taigaStyles.join(`,`)} to angular.json manually.`;
|
30
37
|
return workspace_1.updateWorkspace(workspace => {
|
31
38
|
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 = ` `; // @note: if you use \t then we have big gaps
|
25
25
|
exports.START_SYMBOL = `🚀`;
|
26
26
|
exports.FINISH_SYMBOL = `🏆`;
|
27
27
|
exports.REPLACE_SYMBOL = `⚡️`;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import {
|
1
|
+
import { workspaces } from '@angular-devkit/core';
|
2
2
|
import { TuiSchema } from '../ng-add/schema';
|
3
|
-
export declare function getProjects(options: TuiSchema, workspace: WorkspaceDefinition): ProjectDefinition[];
|
3
|
+
export declare function getProjects(options: TuiSchema, workspace: workspaces.WorkspaceDefinition): workspaces.ProjectDefinition[];
|
@@ -6,7 +6,9 @@ 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 =
|
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()) || ``;
|
10
12
|
const projectFromContext = workspace.projects.get(nameFromContext);
|
11
13
|
return projectFromContext ? [projectFromContext] : projects;
|
12
14
|
}
|
@@ -1,18 +1,20 @@
|
|
1
1
|
"use strict";
|
2
|
+
/// <reference types="node" />
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
4
|
exports.tuiIsCI = void 0;
|
4
5
|
function tuiIsCI() {
|
5
6
|
return (process.env.TUI_CI === `true` ||
|
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
|
7
|
+
!!process.env.CI || // Another CI
|
8
|
+
!!process.env.GITHUB_ACTION || // Github CI
|
9
|
+
!!process.env.GITLAB_CI || // Gitlab CI
|
10
|
+
!!process.env.CIRCLECI || // Circle CI
|
11
|
+
!!process.env.TF_BUILD || // Azure CI
|
12
|
+
!!process.env.CIRRUS_CI || // Cirrus CI
|
13
|
+
!!process.env.BUILDKITE || // Build Kite CI
|
14
|
+
!!process.env.HEROKU_TEST_RUN_ID || // Heroku CI
|
15
|
+
!!process.env.CODEBUILD_BUILD_ID || // CodeBuild CI
|
16
|
+
!!process.env.TEAMCITY_VERSION || // TeamCity CI
|
17
|
+
!!process.env.BUILD_ID // Jenkins/Hudson
|
18
|
+
);
|
17
19
|
}
|
18
20
|
exports.tuiIsCI = tuiIsCI;
|